[Asterisk-Users] Working example of ALERT_INFO with Cisco ATAs?

Olle E. Johansson oej at edvina.net
Thu Sep 8 01:27:33 MST 2005


Brian Capouch wrote:
> Olle E. Johansson wrote:
> 
>>
>> Try setting _ALERT_INFO
>>
> 
The reason for this is that if you set *any* variable with one
underscore prefixing the name, that variable will be copied to the new
channel created by dial() - without the underscore. If you create a
variable called ALERT_INFO in the current channel, where the dial plan
is executed, it will not be reachable from the new channel.

This is the function used by the function that adds new SIP headers.
Basically, chan_sip creates a variable called _SIPADDHEADER01 in the
current channel and reads that later on in the new channel.

Regards,
/Olle

---
Astricon - where you will learn more about channel variables!
...and much more
http://www.astricon.net/2005/ - October 12-14, Anaheim, CA



More information about the asterisk-users mailing list