Indeed... there&#39;s a specific ISDN clearing cause for it - 34 &quot;no circuit/channel available&quot; (NORMAL_CIRCUIT_CONGESTION). That maps to SIP 503 Service Unavailable (RFC3398).<br><br>Unallocated number implies it&#39;s not allocated anywhere and therefore shouldn&#39;t reroute, while 503 suggests you should try another route.<br>

<br>-Steve<br><br><br><br><div class="gmail_quote">On 26 April 2011 09:35, David Ponzone <span dir="ltr">&lt;<a href="mailto:david.ponzone@ipeva.fr">david.ponzone@ipeva.fr</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

<div style="word-wrap: break-word;">Charles,<div><br></div><div>if you may, I would recommend you change the behaviour of this GW sending back a 404 when it&#39;s full...</div><div>That&#39;s odd.</div><div>It should rather use: 503 Service unavailable.</div>

<div><br></div><div><div>
<span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><span style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"><div style="word-wrap: break-word;">

<div><font face="&#39;Helvetica Neue&#39;"><font color="#1c00ff">David Ponzone  </font><font color="#000000" size="3"><span style="font-size: 12px;">Direction Technique</span></font></font></div><div><font face="&#39;Helvetica Neue&#39;"><font size="3"><span style="font-size: 13px;">email: <a href="mailto:david.ponzone@ipeva.fr" target="_blank">david.ponzone@ipeva.fr</a></span></font></font></div>

<div><font face="&#39;Helvetica Neue&#39;"><font size="3"><span style="font-size: 13px;">tel:      01 74 03 18 97</span></font></font></div><div><font face="&#39;Helvetica Neue&#39;"><font size="3"><span style="font-size: 13px;">gsm:   06 66 98 76 34</span></font></font></div>

<div><font face="&#39;Helvetica Neue&#39;"><br></font></div><div><font color="#1c00ff" face="&#39;Helvetica Neue&#39;">Service Client<span> </span></font><font face="&#39;Helvetica Neue&#39;"><font color="#ff0000">IP</font></font><font color="#1c00ff" face="&#39;Helvetica Neue&#39;">eva</font></div>

<div><font color="#1c00ff" face="&#39;Helvetica Neue&#39;"><span style="color: rgb(0, 0, 0); font-family: Helvetica;"><div><font face="&#39;Helvetica Neue&#39;"><font size="3"><span style="font-size: 13px;">tel:      0811 46 26 26</span></font></font></div>

<div><font face="&#39;Helvetica Neue&#39;" size="3"><span style="font-size: 13px;"><div style="margin: 0px; color: rgb(0, 34, 243);"><span style="text-decoration: underline;"><a>www.ipeva.fr</a></span><span style="color: rgb(101, 104, 149);">  -   <span style="color: rgb(0, 34, 243); text-decoration: underline;"><a>www.ipeva-studio.com</a></span></span></div>

<div style="margin: 0px; color: rgb(0, 34, 243);"><span style="text-decoration: underline;"><br></span></div><div style="margin: 0px; color: rgb(0, 34, 243);"><span><div style="margin: 0px; text-align: justify; color: rgb(192, 192, 192);">

<i>Ce message et toutes les pièces jointes sont confidentiels et établis à l&#39;intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisée est interdite. Tout message électronique est susceptible d&#39;altération. </i><b><i>IPeva</i></b><i> décline toute responsabilité au titre de ce message s&#39;il a été altéré, déformé ou falsifié. Si vous n&#39;êtes pas destinataire de ce message, merci de le détruire immédiatement et d&#39;avertir l&#39;expéditeur.</i></div>

<div style="text-decoration: underline; text-align: justify;"><font color="#c0c0c0"><i><br></i></font></div></span></div></span></font></div></span></font></div></div></span><br></span><br>
</div>
<br><div><div>Le 21/04/2011 à 04:45, fieldpeak a écrit :</div><div><div></div><div class="h5"><br><blockquote type="cite"><div>Thanks All, it is resolved now with below config.<br><br>2011/4/20, Kristian Kielhofner &lt;<a href="mailto:kris@kriskinc.com" target="_blank">kris@kriskinc.com</a>&gt;:<br>

<blockquote type="cite">Try this:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">&lt;extension name=&quot;9_GW&quot; &gt;<br></blockquote><blockquote type="cite">  &lt;condition field=&quot;destination_number&quot; expression=&quot;^(9\d+)$&quot;&gt;<br>

</blockquote><blockquote type="cite">    &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=true&quot;/&gt;<br></blockquote><blockquote type="cite">    &lt;action application=&quot;set&quot; data=&quot;failure_causes=UNALLOCATED_NUMBER&quot;/&gt;<br>

</blockquote><blockquote type="cite">    &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=true&quot;/&gt;<br></blockquote><blockquote type="cite">    &lt;action application=&quot;bridge&quot; data=&quot;sofia/internal/$<a href="mailto:1@192.168.200.201" target="_blank">1@192.168.200.201</a>&quot;/&gt;<br>

</blockquote><blockquote type="cite">    &lt;action application=&quot;bridge&quot; data=&quot;sofia/internal/$<a href="mailto:1@192.168.200.202" target="_blank">1@192.168.200.202</a>&quot;/&gt;<br></blockquote><blockquote type="cite">

 &lt;/condition&gt;<br></blockquote><blockquote type="cite">&lt;/extension&gt;<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">On Wed, Apr 20, 2011 at 10:58 AM, fieldpeak &lt;<a href="mailto:fieldpeak@gmail.com" target="_blank">fieldpeak@gmail.com</a>&gt; wrote:<br>

</blockquote><blockquote type="cite"><blockquote type="cite">Hi Steve,<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">

Thanks for your so rich stuff provided.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">however, i tried to use error code to route as below, it failed (did<br>

</blockquote></blockquote><blockquote type="cite"><blockquote type="cite">not route the next GW when recevied UNALLOCATED_NUMBER), can you<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">please point out is there any place wrong in the dailplan? attached is<br>

</blockquote></blockquote><blockquote type="cite"><blockquote type="cite">the log, thanks.<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite">

<blockquote type="cite">&lt;extension name=&quot;9_GW&quot; &gt;<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">
  &lt;condition field=&quot;destination_number&quot; expression=&quot;^(9\d+)$&quot;&gt;<br>
</blockquote></blockquote><blockquote type="cite"><blockquote type="cite">     &lt;action application=&quot;set&quot; data=&quot;continue_on_fail=true&quot;/&gt;<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">

    &lt;action application=&quot;set&quot; data=&quot;hangup_after_bridge=false&quot;/&gt;<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">     &lt;action application=&quot;bridge&quot;<br></blockquote>

</blockquote><blockquote type="cite"><blockquote type="cite">data=&quot;sofia/internal/$<a href="mailto:1@192.168.200.201" target="_blank">1@192.168.200.201</a>&quot;/&gt;<br></blockquote></blockquote><blockquote type="cite">

<blockquote type="cite"> &lt;/condition&gt;<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">  &lt;condition field=&quot;brige_hangup_cause&quot; expression=&quot;UNALLOCATED_NUMBER&quot;&gt;<br>

</blockquote></blockquote><blockquote type="cite"><blockquote type="cite">   &lt;action application=&quot;bridge&quot; data=&quot;sofia/internal/$<a href="mailto:1@192.168.200.202" target="_blank">1@192.168.200.202</a>&quot;/&gt;<br>

</blockquote></blockquote><blockquote type="cite"><blockquote type="cite">  &lt;/condition&gt;<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite">

<blockquote type="cite"> &lt;/extension&gt;<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">Regards,<br></blockquote>

</blockquote><blockquote type="cite"><blockquote type="cite">Charles<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">

2011/4/20, Steven Ayre &lt;<a href="mailto:steveayre@gmail.com" target="_blank">steveayre@gmail.com</a>&gt;:<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">If you know the number of calls the GW can handle in advance, you can<br>

</blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">limit<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">

the call attempts before sending the call to the gateway:<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><a href="http://wiki.freeswitch.org/wiki/Limit" target="_blank">http://wiki.freeswitch.org/wiki/Limit</a><br>

</blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">There are several ways to use that.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">

<blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">You can reroute calls to a 2nd gateway on error:<br></blockquote></blockquote></blockquote>

<blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><a href="http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_bridge#Implementing_Failover" target="_blank">http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_bridge#Implementing_Failover</a><br>

</blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">

There are channel variables that let you control what to consider a<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">reroutable error and what is a give-up error:<br>

</blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><a href="http://wiki.freeswitch.org/wiki/Channel_Variables#continue_on_fail" target="_blank">http://wiki.freeswitch.org/wiki/Channel_Variables#continue_on_fail</a><br>

</blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><a href="http://wiki.freeswitch.org/wiki/Channel_Variables#failure_causes" target="_blank">http://wiki.freeswitch.org/wiki/Channel_Variables#failure_causes</a><br>

</blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">This might also be useful, particularly with mod_limit:<br></blockquote></blockquote></blockquote><blockquote type="cite">

<blockquote type="cite"><blockquote type="cite"><a href="http://wiki.freeswitch.org/wiki/Channel_Variables#transfer_on_fail" target="_blank">http://wiki.freeswitch.org/wiki/Channel_Variables#transfer_on_fail</a><br></blockquote>

</blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">You could use mod_lcr to get a list of all the GWs, but in a random<br>

</blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">order.<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">

That&#39;d let you load balance (randomly) but reroute when required without<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">duplicates unlike mod_distributor.<br>

</blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">

Hopefully that&#39;s enough building blocks to give you somewhere to start...<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote>

</blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">-Steve<br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote>

</blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote>

</blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">On 20 April 2011 08:27, Charles &lt;<a href="mailto:fieldpeak@gmail.com" target="_blank">fieldpeak@gmail.com</a>&gt; wrote:<br>

</blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">

<blockquote type="cite"><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">i have two media GWs connected with FS for PSTN calls, FS route the<br>

</blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">first<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite">

<blockquote type="cite"><blockquote type="cite"><blockquote type="cite">one in normal case, once the first GW get full (all of channels were<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite"><blockquote type="cite">occupied), i need FS route to the second GW.<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">
<blockquote type="cite">
i found once the first GW get full, it will reply &#39;404 not found&#39; to FS,<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">

can FS route to the second one according to this condition or any other<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">

alternative?<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote></blockquote>
<blockquote type="cite">
<blockquote type="cite"><blockquote type="cite"><blockquote type="cite">although i know there is mod_distributor for load balancing, however, i<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite">

<blockquote type="cite"><blockquote type="cite"><blockquote type="cite">need if only first one full then route to second one, so it looks this<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite">

<blockquote type="cite"><blockquote type="cite"><blockquote type="cite">module not suitable for this senario...<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">

<blockquote type="cite"><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Thanks.<br></blockquote></blockquote></blockquote>

</blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">

<blockquote type="cite">Regards,<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">Charles<br></blockquote></blockquote>

</blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">

<blockquote type="cite"><blockquote type="cite">_______________________________________________<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">

<blockquote type="cite">FreeSWITCH-users mailing list<br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>

</blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>

</blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite">UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>

</blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>

</blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite">

<blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote>

</blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">_______________________________________________<br></blockquote></blockquote><blockquote type="cite">

<blockquote type="cite">FreeSWITCH-users mailing list<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>

</blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>

</blockquote></blockquote><blockquote type="cite"><blockquote type="cite">UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>

</blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite">

<br></blockquote></blockquote><blockquote type="cite"><blockquote type="cite"><br></blockquote></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote>

<blockquote type="cite">--<br></blockquote><blockquote type="cite">Kristian Kielhofner<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote>

<blockquote type="cite">FreeSWITCH-users mailing list<br></blockquote><blockquote type="cite"><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br></blockquote>

<blockquote type="cite"><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br></blockquote><blockquote type="cite">UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>

</blockquote><blockquote type="cite"><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br></blockquote><blockquote type="cite"><br></blockquote><br>_______________________________________________<br>

FreeSWITCH-users mailing list<br><a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>

UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br><a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>

</div></blockquote></div></div></div><br></div></div><br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><div style="visibility: hidden; left: -5000px; position: absolute; z-index: 9999; padding: 0px; margin-left: 0px; margin-top: 0px; overflow: hidden; word-wrap: break-word; color: black; font-size: 10px; text-align: left; line-height: 130%;" id="avg_ls_inline_popup">

</div>