[asterisk-users] IAX2 passing back and forth variables
Ruddy Gbaguidi
plugworld at micnes.com
Sat May 19 13:16:50 CDT 2012
Hi all,
I have two asterisk servers A and B.
And I would like from A, dial to B passing some IAX variables.
Then B handles the calls, setup some other variables that become available
to A which can continue.
So far, I have used IAXVAR function.
It works when sending call from A to B
But variables setup on B are not available on A.
Any idea how I can do it ?
Here are my dialplans.
+++++++++++
SERVER A
+++++++++++
[contextA]
exten => s,1,Set(IAXVAR(TESTVAR1)=abcd)
exten => s,n,Dial(IAX2/serverb/s,30,g)
exten => s,n,Noop( The out variable is : ${IAXVAR(TESTVAR2)} ) ; <----
Does not work
+++++++++++
SERVER B
+++++++++++
[contextB]
exten => s,1,Noop( ${IAXVAR(TESTVAR1)} ) <----- Does work
exten => s,n,Set(IAXVAR(TESTVAR2))
exten => s,n,Hangup
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20120519/ac562893/attachment.htm>
More information about the asterisk-users
mailing list