[Freeswitch-users] Dialplan: is this the correct way?

Nandy Dagondon gcd at i.ph
Tue Nov 16 20:34:42 PST 2010


hi,

the bridge application has a sequential bridging option. take a look at
http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_bridge#Calling_multiple_destinations

is this not enough?

-nandy

On Wed, Nov 17, 2010 at 7:43 AM, Stephen Wilde <wstephen80 at 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 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/20101117/6947e65d/attachment.html 


More information about the FreeSWITCH-users mailing list