[Asterisk-Users] Channel Variable

Bill Seddon bill.seddon at lyquidity.com
Sat Jan 8 02:21:18 MST 2005


<<Does anyone know how to get the channel ID on the other side of the
call?>>

 

Assaf, I don't know if there is such an ID available.  However if there is
not, the value you want is pushed out in one of the events that Asterisk
publishes to AGI connections when a call is constructed.  As it result it
ought to be possible to write an AGI script using, say, Perl to capture this
value and write it back as a Dialplan variable.

 

Bill Seddon

 

  _____  

From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Assaf
Benharoosh
Sent: January 08, 2005 12:27 AM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: [Asterisk-Users] Channel Variable

 

Hi all,

Does anyone know how to get the channel ID on the other side of the call? 

For example: When SIP/50 calls SIP/21, and the call is answered by SIP/21 I
get:

 

SIP/21-6735 answered SIP/50-b456

 

${CHANNEL} will show me SIP/50-b456. 

Is there a parameter or a workaround to get the SIP/21-6735 part?

 

Thanks.

Assaf Benharoosh

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050108/40ea9f2d/attachment.htm


More information about the asterisk-users mailing list