[Freeswitch-users] <application="set" data="call_timeout=5"/> VS {call_timeout=15}

Steven Ayre steveayre at gmail.com
Fri Sep 5 12:43:38 MSD 2014


Please ignore the above - that's not the case for that variable


On 5 September 2014 09:41, Steven Ayre <steveayre at gmail.com> wrote:

> The 'set' application sets the variable on the a-leg, while the {} sets
> the variable on the b-leg. When the b-leg call is being placed it only
> checks its own copy of the variable.
>
> Use 'export' instead of 'set' and you'll get the behaviour you're
> expecting.
>
>
> On 4 September 2014 21:45, Phillip Jones <pjintheusa at gmail.com> wrote:
>
>> Hi there,
>>
>> I am testing carrier failover via the dialplan.
>>
>> Can anyone tell why me the following two dial plans act differently? In
>> my mind they are the same so I am flummoxed.
>>
>>
>> <extension name="treatment_followme_route">
>>      <condition field="${Treatment}" expression="^SEQUENTIAL$"/>
>>  <condition field="${ForwardingNumber}" expression="^100">
>>  <action application="set" data="ignore_early_media=true"/>
>> <action application="set" data="continue_on_fail=true"/>
>>
>> *<action application="set" data="call_timeout=5"/>*
>> <action application="bridge" data="user/1001|user/1001"/>
>>  *<action application="set" data="call_timeout=20"/>*
>> <action application="bridge" data="user/1002|user/1002"/>
>>  ...
>>       </condition>
>> </extension>
>>
>> VERUS:
>>
>> <extension name="treatment_followme_route">
>>      <condition field="${Treatment}" expression="^SEQUENTIAL$"/>
>>  <condition field="${ForwardingNumber}" expression="^100">
>>  <action application="set" data="ignore_early_media=true"/>
>> <action application="set" data="continue_on_fail=true"/>
>>
>> <action application="bridge" data="*{call_timeout=5}*
>> user/1001|user/1001"/>
>>  <action application="bridge" data="*{call_timeout=20*
>> }user/1002|user/1002"/>
>> ..
>>        </condition>
>>     </extension>
>>
>>
>> First dial plan will dial user 1001 *once* followed by 1002 *once *-
>> which is correct for my purposes
>>
>> Second will dial user 1001 *twice *followed by 1002 *twice*
>>
>> Why would {call_timeout=15} change the nature of that bridge and <action
>> application="set" data="call_timeout=5"/> not?
>>
>>
>>
>>
>> Thanks
>>
>>
>> Phil
>>
>>
>>
>>
>> _________________________________________________________________________
>> 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
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140905/9343ab7c/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list