[asterisk-users] IAX2 variable sharing
Tim Panton
thp at westhawk.co.uk
Mon Aug 11 15:15:45 CDT 2008
Erm, I've been out of the loop, but in 1.6 there's
the IAXVAR dialplan function that does _exactly_ what you want.
I don't know if it's been backported to 1.4, but I think there was a
patch
at one point.
Tim.
On 11 Aug 2008, at 20:43, Richard Lyman wrote:
> TP'n to follow broken flow.
>
> As i stated, you must use a 'user to user' (friend) as the iax2_user
> structure has struct ast_variable *vars, the iax2_peer (and
> iax2_trunk_peer) do NOT.
>
> Therefore you cannot pass *channel variables* when using peer-user
> setups, only user-user setups.
>
> Which means, you must setup both sides as user (which 'friend' on both
> sides will do).
>
> There are associated security issues with this setup (which is why
> is it
> not advised), especially when you do not fully understand this
> interaction.
> (which you appear to not understand)
>
> I have visually confirmed this is still true in up to asterisk 1.4.19
>
> Ruddy Gbaguidi wrote:
>> It doesn't seems to be working ...
>> What I wanted to do is on the first server, Set a channel variable...
>> then dial the number.
>> When I received the call on the remote server, use that variable ...
>> Is it possible ?
>>
>> Richard Lyman wrote:
>>
>>> Ruddy Gbaguidi wrote:
>>>
>>>
>>>> Hi all
>>>> Back in the 1.2 days I think, there were some discussions about
>>>> how two
>>>> asterisk
>>>> servers can share channel variables through an IAX protocol.
>>>> I don't see anything in 1.4 at least to be able to make it done.
>>>>
>>>> Thanks
>>>>
>>>>
>>>>
>>> Back in 1.2 you had to use type 'friend' to pass vars, as the 'peer'
>>> structure didn't have vars, only 'user' did.
>>>
>>> It is/was probably the same with 1.4
>>>
>>>
>>>
>>> _______________________________________________
>>> -- Bandwidth and Colocation Provided by http://www.api-digital.com
>>> --
>>>
>>> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
>>> Register Now: http://www.astricon.net
>>>
>>> asterisk-users mailing list
>>> To UNSUBSCRIBE or update options visit:
>>> http://lists.digium.com/mailman/listinfo/asterisk-users
>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>> Internal Virus Database is out of date.
>>> Checked by AVG.
>>> Version: 8.0.100 / Virus Database: 269.23.16/1448 - Release Date:
>>> 5/16/2008 7:42 PM
>>>
>>>
>>
>>
>> _______________________________________________
>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>>
>> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
>> Register Now: http://www.astricon.net
>>
>> asterisk-users mailing list
>> To UNSUBSCRIBE or update options visit:
>> http://lists.digium.com/mailman/listinfo/asterisk-users
>>
>>
>
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> AstriCon 2008 - September 22 - 25 Phoenix, Arizona
> Register Now: http://www.astricon.net
>
> 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