Asterisk : share variable between multiple channels [ImportVar]
Some times, you can have multiple live channels running on your asterisk dialplan
and you want to, in the channel 1 thread, read another channel variable.
You can use asterisk ImportVar application.
[Description]
ImportVar(newvar=channelname|variable): This application imports a variable
from the specified channel (as opposed to the current one) and stores it as
a variable in the current channel (the channel that is calling this
application). Variables created by this application have the same inheritance
properties as those created with the Set application. See the documentation for
Set for more information.
March 8, 2009 | Filed Under Tricks
Comments
Leave a Reply