<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi,<br>
    <br>
    using the following dialplan-extension, FreeSWITCH returns a
    "SIP/2.0 404 Not Found" error when calling the specified number.<br>
    <br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;extension name="generate404"&gt;<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;condition field="destination_number"
    expression="^call404$"&gt;<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <b>&lt;action application="hangup"
      data="UNALLOCATED_NUMBER" /&gt;</b><br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/condition&gt;<br>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/extension&gt;<br>
    <br>
    The key to this is the hangup cause. A complete list can be found
    here: <a class="moz-txt-link-freetext" href="https://wiki.freeswitch.org/wiki/Hangup_Causes">https://wiki.freeswitch.org/wiki/Hangup_Causes</a><br>
    <br>
    Regards,<br>
    Bernhard<br>
    <br>
    <br>
    <div class="moz-cite-prefix">Am 09.08.2014 23:18, schrieb Pasha:<br>
    </div>
    <blockquote cite="mid:53E6900B.8000109@prosperity4ever.com"
      type="cite">
      <pre wrap="">Hi guys,

Have a minor issue. I have multiple freeswitch boxes that handle 
different DIDs, my vendor only allows me to have 1 binding per IP, so I 
do some NATing to get around that.

I ran in to a simple issue, that I just don't know how to implement, 
quite sure it's possible though.

My provider expects 404 sip response if the DID isn't served by the PBX 
it's trying (it tries all my binding in order, until one succeeds).

Issue I'm having is that the DID I'm trying to configure is on the 
second binding in the order of my provider, but my first binding (first 
PBX) returns I believe a 503, or party did not respond, how would I get 
freeswitch to return 404 if the DID being sent to it is not hosted there?

Thanks for your help.

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>