[Freeswitch-users] SIP Response

Bernhard Wendel bernhard at sessionbird.com
Sun Aug 10 01:34:50 MSD 2014


Hi,

using the following dialplan-extension, FreeSWITCH returns a "SIP/2.0 
404 Not Found" error when calling the specified number.

         <extension name="generate404">
                 <condition field="destination_number" 
expression="^call404$">
*<action application="hangup" data="UNALLOCATED_NUMBER" />*
                 </condition>
         </extension>

The key to this is the hangup cause. A complete list can be found here: 
https://wiki.freeswitch.org/wiki/Hangup_Causes

Regards,
Bernhard


Am 09.08.2014 23:18, schrieb Pasha:
> 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:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140809/1cfd8831/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list