Hi All, I am new to Asterisk and want to perform following on my test project. I have 2 Asterisk servers SA and SB and an IAX trunk from SA to SB. Now I set some variables on SB in the same context where an IAX call lands. My question is , is it possible to access these variables in dialplan of SA? If yes then how? I know about IAXVAR application where variables set in source server of IAX channel can be access from destination server... Any help is greatly appreciated. ---Asterisk User -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090907/7666bb0f/attachment.htm
On Monday 07 September 2009 05:55:12 Asterisk User wrote:> I am new to Asterisk and want to perform following on my test project. > I have 2 Asterisk servers SA and SB and an IAX trunk from SA to SB. > Now I set some variables on SB in the same context where an IAX call lands. > My question is , is it possible to access these variables in dialplan of > SA? > > If yes then how? > > I know about IAXVAR application where variables set in source server of IAX > channel can be access from destination server...For the variable to be accessed on the destination server, you must explicitly set the IAXVAR variable on the source server. This method does not merely access arbitrary variables on the source server but only variables which have been sent through this mechanism. Just as a version note, you need to be running 1.6.0 or higher to get the IAXVAR mechanism. -- Tilghman Lesher Digium, Inc. | Senior Software Developer twitter: Corydon76 | IRC: Corydon76-dig (Freenode) Check us out at: www.digium.com & www.asterisk.org
Thanks Tilghman for your quick reply. I know that we should set variables through IAXVAR on source server to access them on Destination server. I just wanted to know the reverse case, where IAX channel variables set on destination server are accessible on Source server or not. Thanks again for your inputs. --- Asterisk user -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20090908/91735797/attachment.htm
On Tuesday 08 September 2009 00:14:53 Asterisk User wrote:> Thanks Tilghman for your quick reply. > > I know that we should set variables through IAXVAR on source server to > access them on Destination server. > I just wanted to know the reverse case, where IAX channel variables set on > destination server are accessible on Source server or not. > Thanks again for your inputs.They are not. IAXVARs are only sent during the NEW, which is a one-way packet. -- Tilghman Lesher Digium, Inc. | Senior Software Developer twitter: Corydon76 | IRC: Corydon76-dig (Freenode) Check us out at: www.digium.com & www.asterisk.org