Sponsor: VoiceMeUp - Corporate & Wholesale VoIP Services

VoIP Mailing List Archives
Mailing list archives for the VoIP community
 SearchSearch 

[asterisk-users] Function IMPORT and Local channels


 
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users
View previous topic :: View next topic  
Author Message
ethy.brito at inexo.co...
Guest





PostPosted: Mon Apr 27, 2015 9:52 pm    Post subject: [asterisk-users] Function IMPORT and Local channels Reply with quote

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

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
ethy.brito at inexo.co...
Guest





PostPosted: Mon Apr 27, 2015 9:56 pm    Post subject: [asterisk-users] Function IMPORT and Local channels Reply with quote

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

Quote:

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.

MY MISTAKE HERE!!

the correct instance is:

${IMPORT(Local/1234@example-abcd;2,CDR(dstchannel))}

Stupid cut and paste error.

sorry for that.

Ethy

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
ethy.brito at inexo.co...
Guest





PostPosted: Wed Apr 29, 2015 3:27 pm    Post subject: [asterisk-users] Function IMPORT and Local channels Reply with quote

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

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

Quote:

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.

MY MISTAKE HERE!!

the correct instance is:

${IMPORT(Local/1234@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@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

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
http://lists.digium.com/mailman/listinfo/asterisk-users
Back to top
Display posts from previous:   
Post new topic   Reply to topic    VoIP Mailing List Archives Forum Index -> Asterisk Users All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

VoiceMeUp - Corporate & Wholesale VoIP Services