[Freeswitch-users] Best place to set variables?

ocset ocset at the800group.com
Fri Jun 15 17:12:56 MSD 2012


Hi

In the FreeSWITCH-Cookbook, there is the following example

<extension name="ring_sequentially">
<condition field="destination_number" expression="^(2001)$">
<action application="set" data="continue_on_fail=true"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="bridge" 
data={ignore_early_media=true}sofia/internal/userA at local.pbx.com"/>
<action application="bridge" 
data={ignore_early_media=true}sofia/internal/userB at local.pbx.com"/>
</condition>
</extension>

Is there any reason why the "ignore_early_media=true" was not set before 
the bridge commands as is done with the "continue_on_fail"  and 
"hangup_after_bridge" variables?

Example:

<extension name="ring_sequentially">
<condition field="destination_number" expression="^(2001)$">
<action application="set" data="continue_on_fail=true"/>
<action application="set" data="hangup_after_bridge=true"/>
<action application="set" data="ignore_early_media=true"/>
<action application="bridge" data=sofia/internal/userA at local.pbx.com"/>
<action application="bridge" data=sofia/internal/userB at local.pbx.com"/>
</condition>
</extension>

Thanks
O



Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list