[asterisk-users] Function IMPORT and Local channels

Ethy H. Brito ethy.brito at inexo.com.br
Wed Apr 29 15:27:38 CDT 2015


On Mon, 27 Apr 2015 23:56:30 -0300
"Ethy H. Brito" <ethy.brito at inexo.com.br> wrote:

> On Mon, 27 Apr 2015 23:52:30 -0300
> "Ethy H. Brito" <ethy.brito at inexo.com.br> wrote:
> 
> > 
> > Hi all
> > 
> > These questions were asked back in 2009 at lists.digium.com and got
> > unanswered:
> > 
> > - Has someone been successful in using IMPORT on a Local channel ? 
> > - Is there a known limitation in doing so ?
> > 
> > I run into the same problem.
> > 
> > ${IMPORT(Local/1234 at example-abcd;2,CALLERID(dstchannel))} returns
> > nothing. But I can read the dstchannel for it into the CDR.
> 
> MY MISTAKE HERE!!
> 
> the correct instance is:
> 
> ${IMPORT(Local/1234 at example-abcd;2,CDR(dstchannel))}
> 
> Stupid cut and paste error.
> 
> sorry for that.

Opps!! Maybe I got no answers up to this moment because I did not explained my
mistake correctly.

What I meant was that I made a mistake when choosing from where to copy the text into the mail. My coding is correct.

The problem of having IMPORT returning nothing to CDR(dstchannel) when channel
is "Local/...", is there. 

mysql> select channel,dstchannel from cdr where channel like "Local%" or dstchannel like "Local%" limit 2;
+-------------------------+-------------------------+
| channel                 | dstchannel              |
+-------------------------+-------------------------+
| SIP/jane_doe-0069ff70   | Local/1234 at trunk-1908;1 |
| Local/1234 at trunk-1908;2 | SIP/john_doe-00811c40   |
+-------------------------+-------------------------+

Shouldn't "same => n,Set(test=${IMPORT(Local/1234 at trunk-1908;2,CDR(dstchannel))})" yield to test=SIP/john_doe-00811c40 ?

Regards

Ethy



More information about the asterisk-users mailing list