[OpenSIPS-Users] reject 3xx code

Bogdan-Andrei Iancu bogdan at opensips.org
Fri Aug 19 17:44:32 CEST 2016


Hi Denis,

3xx is a final response and it cannot be simply drop (as will let the 
transaction state machine in an ambiguous state). Not to mention that 
you will de-syncronize the callee side (which rejected the call) and the 
caller side (still waiting for a final answer).

What you can do is to replace the 3xx with another final negative reply. 
Use a failure_route to do that:

failure_route[block_redirect]
{
     if (t_check_status("3[0-9][0-9]))
         t_reply("404","Not Found");
}

Regards,

Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com

On 18.08.2016 11:58, Denis wrote:
> reject 3xx code Hello
>
> I am using Opensips 2.1.2.
> I want to block sending 3xx codes to caller.
>
> In reply route i wrote such code
> if (status=~"30[1,2]") {
>  drop();
> }
>
> but i see that 302, for example, still process successfully.
>
> Thank you for any help.
>
> /--
> /mailto:denis7979 at mail.ru
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20160819/e9664d75/attachment.htm>


More information about the Users mailing list