[OpenSER-Users] Change Openser's default behaviour for destination 0.0.0.0

Jayesh Nambiar voip_freak at yahoo.co.in
Wed Apr 30 03:31:46 CEST 2008


Hi All,
Whenever openser is made to route a call to 0.0.0.0, I have observed that it replies as 403 Forbidden to the call initiator.
Is there a method to change this default behaviour and change the reply message from 403 Forbidden to 404 Not Found or any other response code.
Basically I query a set of 5 destination IP addresses for every call that comes in, in a particular order and route the call in a serial manner if call fails to particular IP using failure routes.
Suppose if there are only 4 IPs available for a particular destination, I substitute the 5th IP address as 0.0.0.0. Now if a user has dialed an invalid number Openser keeps routing the call to next IP address until it comes to 0.0.0.0.
As soon as it gets 0.0.0.0 it replies back as 403 Forbidden, in this case I want to reply back as 404 Not Found which is a better user reply in case of an invalid number.
Any pointers/suggestions will be highly appreciated.
Thanks,
--- Jayesh


      Connect with friends all over the world. Get Yahoo! India Messenger at http://in.messenger.yahoo.com/?wm=n/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20080430/0b0eb31f/attachment.htm>


More information about the sr-users mailing list