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

Stephen Wilde wstephen80 at gmail.com
Tue Nov 16 15:43:14 PST 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20101117/c5873cad/attachment.html 


More information about the FreeSWITCH-users mailing list