Dialplan: is this the correct way?
Hi, I'm trying to implement the dialplan but I'm not sure (due to my poor experience in ftreeswitch) if this is the best way. My necessity is to try sequentially some providers until the call is delivered to destination. I have write my own "mod_routecall" that set some channel variables based on called number and so set the dialstrings for each provider with the correct order of tries. In this way I want that freeswitch make sequentially 5 tries in different providers. It's also present the limit_execute because for each provider I have a maximum number of call that I can send. My Dialplan is: <context name="default"> <extension name="startup"> <condition> <action application="routecall"/> <action application="set" data="hangup_after_bridge=true" /> <action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,NO_ROUTE_DESTINATION,DESTINATION_OUT_OF_ORDER,NORMAL_CIRCUIT_CONGESTION,SWITCH_CONGESTION"/> <action application="limit_execute" data="hash outbound ${hash0} ${limit0} bridge ${dialstring0}" /> <action application="limit_execute" data="hash outbound ${hash1} ${limit1} bridge ${dialstring1}" /> <action application="limit_execute" data="hash outbound ${hash2} ${limit2} bridge ${dialstring2}" /> <action application="limit_execute" data="hash outbound ${hash3} ${limit3} bridge ${dialstring3}" /> <action application="limit_execute" data="hash outbound ${hash4} ${limit4} bridge ${dialstring4}" /> </condition> </extension> </context> Is this dialplan correct? There is a best way to do that? Thanks in advance, Stephen
hi, the bridge application has a sequential bridging option. take a look at http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_bridge#Calling_multiple... is this not enough? -nandy On Wed, Nov 17, 2010 at 7:43 AM, Stephen Wilde <wstephen80@gmail.com> wrote:
Hi,
I'm trying to implement the dialplan but I'm not sure (due to my poor experience in ftreeswitch) if this is the best way.
My necessity is to try sequentially some providers until the call is delivered to destination.
I have write my own "mod_routecall" that set some channel variables based on called number and so set the dialstrings for each provider with the correct order of tries.
In this way I want that freeswitch make sequentially 5 tries in different providers.
It's also present the limit_execute because for each provider I have a maximum number of call that I can send.
My Dialplan is:
<context name="default"> <extension name="startup"> <condition>
<action application="routecall"/>
<action application="set" data="hangup_after_bridge=true" />
<action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,NO_ROUTE_DESTINATION,DESTINATION_OUT_OF_ORDER,NORMAL_CIRCUIT_CONGESTION,SWITCH_CONGESTION"/>
<action application="limit_execute" data="hash outbound ${hash0} ${limit0} bridge ${dialstring0}" />
<action application="limit_execute" data="hash outbound ${hash1} ${limit1} bridge ${dialstring1}" />
<action application="limit_execute" data="hash outbound ${hash2} ${limit2} bridge ${dialstring2}" />
<action application="limit_execute" data="hash outbound ${hash3} ${limit3} bridge ${dialstring3}" />
<action application="limit_execute" data="hash outbound ${hash4} ${limit4} bridge ${dialstring4}" />
</condition> </extension> </context>
Is this dialplan correct? There is a best way to do that?
Thanks in advance,
Stephen
_______________________________________________ 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
Hi, with sequential bridge it's possible to limite the number of call for each provider? All providers I have connected accept a maximum number of call (for example max 30 calls to provider1, max 60 calls to provider 2 and so on). For this reason I have used the limit_execute. Bu I repeat, I'm not sure if my choice is the correct way. Stephen On Wed, Nov 17, 2010 at 5:34 AM, Nandy Dagondon <gcd@i.ph> wrote:
hi,
the bridge application has a sequential bridging option. take a look at
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_bridge#Calling_multiple...
is this not enough?
-nandy
On Wed, Nov 17, 2010 at 7:43 AM, Stephen Wilde <wstephen80@gmail.com>wrote:
Hi,
I'm trying to implement the dialplan but I'm not sure (due to my poor experience in ftreeswitch) if this is the best way.
My necessity is to try sequentially some providers until the call is delivered to destination.
I have write my own "mod_routecall" that set some channel variables based on called number and so set the dialstrings for each provider with the correct order of tries.
In this way I want that freeswitch make sequentially 5 tries in different providers.
It's also present the limit_execute because for each provider I have a maximum number of call that I can send.
My Dialplan is:
<context name="default"> <extension name="startup"> <condition>
<action application="routecall"/>
<action application="set" data="hangup_after_bridge=true" />
<action application="set" data="continue_on_fail=NORMAL_TEMPORARY_FAILURE,NO_ROUTE_DESTINATION,DESTINATION_OUT_OF_ORDER,NORMAL_CIRCUIT_CONGESTION,SWITCH_CONGESTION"/>
<action application="limit_execute" data="hash outbound ${hash0} ${limit0} bridge ${dialstring0}" />
<action application="limit_execute" data="hash outbound ${hash1} ${limit1} bridge ${dialstring1}" />
<action application="limit_execute" data="hash outbound ${hash2} ${limit2} bridge ${dialstring2}" />
<action application="limit_execute" data="hash outbound ${hash3} ${limit3} bridge ${dialstring3}" />
<action application="limit_execute" data="hash outbound ${hash4} ${limit4} bridge ${dialstring4}" />
</condition> </extension> </context>
Is this dialplan correct? There is a best way to do that?
Thanks in advance,
Stephen
_______________________________________________ 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
_______________________________________________ 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 (2)
-
Nandy Dagondon
-
Stephen Wilde