[Freeswitch-users] Gateway Failover

Gregor Nanger gregor at infomedia.si
Fri Nov 3 20:11:36 UTC 2017


Hi Tihomir :-)

Can I set like this:

[bridge_pre_execute_aleg_app=set, bridge_pre_execute_aleg_data=
myVar=1111111]sofia/gateway/gw1/1234|[bridge_pre_execute_aleg_app=set,
bridge_pre_execute_aleg_data=myVar=22222]sofia/gateway/gw1/1234

2017-11-03 21:05 GMT+01:00 Tihomir Culjaga <tculjaga at gmail.com>:

> just set on a leg :=)
>
> e.g. use
>
> [bridge_pre_execute_aleg_app=set, bridge_pre_execute_aleg_data=
> myVar=myVal]sofia/gateway/gw1/1234
>
>
>
> On 1 November 2017 at 10:23, Srigo Kanapathipillai <ksrigo at gmail.com>
> wrote:
>
>> If you want to see your variable in leg a and b, in the second scenario,
>> you shld  use export instead of set.
>>
>> In scenario 1, need to test i dn't remember it.
>>
>> Srigo
>>
>> Sent from my iPhone
>>
>> On 1 Nov 2017, at 09:25, Gregor Nanger <gregor at infomedia.si> wrote:
>>
>> Thank you for your response. Guess I should try and see.
>>
>> Do you think that in your scenario variable is also set in A leg, because
>> I need to have this variable than in Cdr?
>>
>> On Wed, Nov 1, 2017, 02:58 Srigo Kanapathipillai <ksrigo at gmail.com>
>> wrote:
>>
>>> Hi,
>>>
>>> If I'm not wrong, i can see two way of doing it:
>>>
>>> 1. You can define your leg variable in [] (not {}).
>>> Eg:
>>> Sofia/gateway1|[var=2]sofia/gateway2
>>>
>>> 2.
>>> <action application="set" data="continue_on_fail=true"/>
>>> <action application="bridge" data="sofia/gateway1"/>
>>> <action application="set" data="var=2"/>
>>> <action application="bridge" data="sofia/gateway2"/>
>>>
>>>
>>> Srigo
>>> Sent from my iPhone
>>>
>>> On 1 Nov 2017, at 01:12, Gregor Nanger <gregor at infomedia.si> wrote:
>>>
>>> Hi, need some advice.
>>>
>>> Is it possible to set variable on failover scenario?
>>>
>>> I have failover in bridge /gateway1|/gateway2, but would like to set
>>> variable on a leg when failover occurs. Something like:
>>>
>>> /gateway1/|{myvariable=2}​/gateway2
>>>
>>> Is this possible?
>>>
>>> Thank you, Gregor
>>>
>>> ____________________________________________________________
>>> _____________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://confluence.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>>
>>> ____________________________________________________________
>>> _____________
>>> Professional FreeSWITCH Consulting Services:
>>> consulting at freeswitch.org
>>> http://www.freeswitchsolutions.com
>>>
>>> Official FreeSWITCH Sites
>>> http://www.freeswitch.org
>>> http://confluence.freeswitch.org
>>> http://www.cluecon.com
>>>
>>> FreeSWITCH-users mailing list
>>> FreeSWITCH-users at lists.freeswitch.org
>>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>>> http://www.freeswitch.org
>>
>> --
>> Gregor Nanger
>>
>> *CTO*
>> t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485
>> • Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia
>> • www.infomedia.si
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>>
>> _________________________________________________________________________
>> Professional FreeSWITCH Consulting Services:
>> consulting at freeswitch.org
>> http://www.freeswitchsolutions.com
>>
>> Official FreeSWITCH Sites
>> http://www.freeswitch.org
>> http://confluence.freeswitch.org
>> http://www.cluecon.com
>>
>> FreeSWITCH-users mailing list
>> FreeSWITCH-users at lists.freeswitch.org
>> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
>> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
>> http://www.freeswitch.org
>>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://confluence.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>



-- 
Gregor Nanger

*CTO*
t./f.: 00386 (0) 7 6000 308/309 • m:. 00386 (0)41 756485
• Infomedia d.o.o. • Jerebova 3, Novo mesto, Slovenia
• www.infomedia.si
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20171103/8e4fb632/attachment-0001.html>


More information about the FreeSWITCH-users mailing list