[asterisk-users] Help setting IAX variables.

Tilghman Lesher tlesher at digium.com
Mon Sep 7 09:41:35 CDT 2009


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



More information about the asterisk-users mailing list