Function IMPORT And Local Channels
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@example-abcd;2,CALLERID(dstchannel))} returns nothing. But I can read the dstchannel for it into the CDR.
Asterisk is 11.7.0~dfsg-1ubuntu1
Regards
Ethy
2 thoughts on - Function IMPORT And Local Channels
MY MISTAKE HERE!!
the correct instance is:
${IMPORT(Local/1234@example-abcd;2,CDR(dstchannel))}
Stupid cut and paste error.
sorry for that.
Ethy
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@trunk-1908;1 |
| Local/1234@trunk-1908;2 | SIP/john_doe-00811c40 |
+————————-+————————-+
Shouldn’t “same => n,Set(test=${IMPORT(Local/1234@trunk-1908;2,CDR(dstchannel))})” yield to test=SIP/john_doe-00811c40 ?
Regards
Ethy