[asterisk-users] Passing a variable from one Asterisk boxtoanother
Yuan LIU
yliu11 at hotmail.com
Mon Apr 16 13:43:41 MST 2007
>From: "Jesus Mogollon" <gocho26 at gmail.com>
>Date: Mon, 16 Apr 2007 13:33:16 -0400
>
>Hi Craig
>
> I've been developing a Recording Server app (which I will be giving back
>to the community) and one of the requirements is for the recording to be
>offloaded to several machines. Because of the filename is being set prior
>to
>the recording, I need to pass this variable to the slave server. I'm using
>1.2.13 (heavily patched) and I came across your email. Any chance of
>getting
>your port? Thanks for your help...
If there are only a limited number of variables to pass, you may as well do
this in dial plan using SIPHEADER.
Yuan Liu
>Jesus Mogollon
>
>On 2/22/07, Craig Guy <cguy at bigpond.net.au> wrote:
>>
>>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.
More information about the asterisk-users
mailing list