Bill,
Are you sure there's an AGI enviroment variable that gives me that? I couldn't find any:
 
 -- accountcode =
 -- callerid = "Assaf Benharoosh" <21>
 -- channel = SIP/26-f39a
 -- context = extensions
 -- dnid = 45
 -- enhanced = 0.0
 -- extension = 45
 -- language = en
 -- priority = 1
 -- rdnis = unknown
 -- request = agi-test.agi
 -- type = SIP
 -- uniqueid = 1105227054.140
 
I'm trying to get the other side channel string. If I run the AGI before the dial- is it all possible?
 
Assaf Benharoosh
MCP, MCSA, MCSE
[EMAIL PROTECTED]
Frantic, LLC.
246 West 38th Street
2nd Floor
New York, NY 10018
T: (212) 302-5790
F: (646) 201-9418
C: (516) 805-7981
 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Seddon
Sent: Saturday, January 08, 2005 4:21 AM
To: 'Asterisk Users Mailing List - Non-Commercial Discussion'
Subject: RE: [Asterisk-Users] Channel Variable

<<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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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

_______________________________________________
Asterisk-Users mailing list
[email protected]
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to