Hi,<div><br></div><div>I&#39;m trying to implement the dialplan but I&#39;m not sure (due to my poor experience in ftreeswitch) if this is the best way.</div><div><br></div><div>My necessity is to try sequentially some providers until the call is delivered to destination.</div>
<div><br></div><div>I have write my own &quot;mod_routecall&quot; that set some channel variables based on called number and so set the dialstrings for each provider with the correct order of tries.</div><div><br></div><div>
In this way I want that freeswitch make sequentially 5 tries in different providers.</div><div><br></div><div>It&#39;s also present the limit_execute because for each provider I have a maximum number of call that I can send.</div>
<div><br></div><div>My Dialplan is:</div><div><br></div><div><div>&lt;context name=&quot;default&quot;&gt;</div><div>  &lt;extension name=&quot;startup&quot;&gt;</div><div>    &lt;condition&gt;</div><div><br></div><div>      &lt;action application=&quot;routecall&quot;/&gt;</div>
<div><br></div><div>      &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot; /&gt;</div></div><div><div><br></div><div>      &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=NORMAL_TEMPORARY_FAILURE,NO_ROUTE_DESTINATION,DESTINATION_OUT_OF_ORDER,NORMAL_CIRCUIT_CONGESTION,SWITCH_CONGESTION&quot;/&gt;</div>
<div><br></div><div>      &lt;action application=&quot;limit_execute&quot; data=&quot;hash outbound ${hash0} ${limit0} bridge ${dialstring0}&quot; /&gt;</div><div><br></div><div>      &lt;action application=&quot;limit_execute&quot; data=&quot;hash outbound ${hash1} ${limit1} bridge ${dialstring1}&quot; /&gt;</div>
<div><br></div><div>      &lt;action application=&quot;limit_execute&quot; data=&quot;hash outbound ${hash2} ${limit2} bridge ${dialstring2}&quot; /&gt;</div><div><br></div><div>      &lt;action application=&quot;limit_execute&quot; data=&quot;hash outbound ${hash3} ${limit3} bridge ${dialstring3}&quot; /&gt;</div>
<div><br></div><div>      &lt;action application=&quot;limit_execute&quot; data=&quot;hash outbound ${hash4} ${limit4} bridge ${dialstring4}&quot; /&gt;</div><div><br></div><div>    &lt;/condition&gt;</div><div>  &lt;/extension&gt;</div>
<div>&lt;/context&gt;</div></div><div><br></div><div><br></div><div>Is this dialplan correct? There is a best way to do that?</div><div><br></div><div>Thanks in advance,</div><div><br></div><div>Stephen</div>