Hi all, Can I create a dialplan for incoming calls that do the following? <condition field="destination_number" expression=" ^0123456789$"> <action application="export" data="originate_timeout=5"/> <action application="transfer" data="100 XML default"/> If 100 did not respond: <action application="export" data="originate_timeout=15"/> <action application="transfer" data="101 XML default"/> If 103 did not respond: <action application="export" data="originate_timeout=99"/> <action application="transfer" data="102 XML default"/> </condition> Can anyone help me to understand how I have to set dialplan for do this? Alessio.
I think this will do what you want. It will try extension 100 for 5 seconds, then 101 for 15 seconds, then 102 for 99 seconds. You could also use groups in addition to users. <action application="bridge" data="[call_timeout=5]user/100@domain| [call_timeout=15]user/101@domain|[call_timeout=99]user/102@domain"/> http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_bridge#From_the_Dialpla... Nick On Thu, Nov 15, 2012 at 5:22 AM, Alessio <alessio@asistar.it> wrote:
Hi all, Can I create a dialplan for incoming calls that do the following?
<condition field="destination_number" expression=" ^0123456789$"> <action application="export" data="originate_timeout=5"/> <action application="transfer" data="100 XML default"/>
If 100 did not respond:
<action application="export" data="originate_timeout=15"/> <action application="transfer" data="101 XML default"/>
If 103 did not respond:
<action application="export" data="originate_timeout=99"/> <action application="transfer" data="102 XML default"/>
</condition>
Can anyone help me to understand how I have to set dialplan for do this?
Alessio.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Transfer is to move the incoming call to another point in the dialplan (and change the destination_number field). If you want an outgoing call you need the bridge app instead, to make the call and join it to the incoming channel. As for extensions, there's a difference between dial plan extensions and user extensions. For users bridge to user/username. If you really need to try another dial plan extension with a timeout (and you probably don't) try bridging with the loopback endpoint. Steve on iPhone On 15 Nov 2012, at 10:22, Alessio <alessio@asistar.it> wrote:
Hi all, Can I create a dialplan for incoming calls that do the following?
<condition field="destination_number" expression=" ^0123456789$"> <action application="export" data="originate_timeout=5"/> <action application="transfer" data="100 XML default"/>
If 100 did not respond:
<action application="export" data="originate_timeout=15"/> <action application="transfer" data="101 XML default"/>
If 103 did not respond:
<action application="export" data="originate_timeout=99"/> <action application="transfer" data="102 XML default"/>
</condition>
Can anyone help me to understand how I have to set dialplan for do this?
Alessio.
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (3)
-
Alessio
-
Nick Vines
-
Steven Ayre