<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi Bernard,<br>
<br>
That worked very well thank you!<br>
<br>
I just added that as the last thing on the public dialplan to
process and if no DID matched on that box, it returned the 404 as
per your code.<br>
<br>
Much appreciated!<br>
<br>
<br>
<div class="moz-cite-prefix">On 14-08-09 02:34 PM, Bernhard Wendel
wrote:<br>
</div>
<blockquote cite="mid:53E693FA.1080407@sessionbird.com" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
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>
<extension name="generate404"><br>
<condition field="destination_number"
expression="^call404$"><br>
<b><action application="hangup"
data="UNALLOCATED_NUMBER" /></b><br>
</condition><br>
</extension><br>
<br>
The key to this is the hangup cause. A complete list can be found
here: <a moz-do-not-send="true" 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 moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.cudatel.com">http://www.cudatel.com</a>
Official FreeSWITCH Sites
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>
FreeSWITCH-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a moz-do-not-send="true" 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 moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
</pre>
</blockquote>
<br>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_________________________________________________________________________
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>