[Freeswitch-users] SIP Response

Pasha pasha at prosperity4ever.com
Wed Aug 13 23:29:05 MSD 2014


Hi Bernard,

That worked very well thank you!

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.

Much appreciated!


On 14-08-09 02:34 PM, Bernhard Wendel wrote:
> 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
>
>
>
> _________________________________________________________________________
> 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/20140813/5b693046/attachment.html 


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