[Asterisk-Users] Channel Variable
Assaf Benharoosh
ab at franticllc.com
Sat Jan 8 16:38:40 MST 2005
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
ab at franticllc.com <blocked::mailto:ab at franticllc.com>
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: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] 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: 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/8fd954b8/attachment.htm
More information about the asterisk-users
mailing list