[asterisk-users] Passing a variable from one Asterisk box
toanother
Craig Guy
cguy at bigpond.net.au
Wed Feb 21 22:48:24 MST 2007
Hi Richard,
there was a thread regarding this a while ago on the dev list which resulted
in a patch being made to allow variable passing via IAX2 channels. See
http://bugs.digium.com/view.php?id=7619 for the patch which I think is in
SVN or anyhow, is not in 1.2
I have recently backported this patch to 1.2 and have a patch which is
tested against 1.2.12, 1.2.12.1 and 1.2.15, but should work against at least
1.2.13 and 1.2.14. The patch introduces a new dialplan function called
IAXVAR, Email me if interested.
Craig
----- Original Message -----
From: "Richard Lyman" <pchammer at dynx.net>
To: "Asterisk Users Mailing List - Non-Commercial Discussion"
<asterisk-users at lists.digium.com>
Sent: Wednesday, February 21, 2007 7:27 AM
Subject: Re: [asterisk-users] Passing a variable from one Asterisk box
toanother
> Richard Lyman wrote:
>> Eric Bishop wrote:
>>> Hi all,
>>>
>>> We currently have 2 Asterisk boxes and we pass calls to a fro. All works
>>> great except we now need to pass variables between them.
>>>
>>> For example now on box 1 we have:
>>>
>>> exten => _23XX,1,SetVar(Foo=1234)
>>> exten => _23XX,2,Dial(SIP/${EXTEN:0}@Box2)
>>>
>>> When the call dials into Box 2 the variable Foo does not get passed...
>>>
>>> Does anyone have any clever ideas?
>> as noted in asterisk/docs/README.variables (iirc)
>>
>> you should see that variable inheritance can occur by prefacing the
>> variable with '_' or '__'
>>
>> also, depending on the age of your asterisk you might want to start using
>> 'Set' vice 'SetVar'
>>
>> also, having ${EXTEN:0} , the :0 doesn't do anything, so you should not
>> use it and just have ${EXTEN}
>>
>> i hope this helps
>>
>>
> sadly replying to my own post, but, i forgot to mention that
> passing variables with IAX2 can be an issue sometimes when you use
> user and peer (the user side can pass vars the peer side can not, or
> doesn't accept them iirc)
>
> this does not happen using friend, but that has its own issues... check
> the wiki for more thoughts about this.
>
>
>
> _______________________________________________
> --Bandwidth and Colocation provided by Easynews.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
More information about the asterisk-users
mailing list