[OpenSIPS-Users] is it possible to drop non-provisional reply?

Peter Lemenkov lemenkov at gmail.com
Fri Aug 21 20:54:15 CEST 2015


Thanks for the tip!
It seems that you're reading my mind - because that's exactly what's needed!

2015-08-21 19:02 GMT+03:00 Bogdan-Andrei Iancu <bogdan at opensips.org>:
> Hi Peter,
>
> Well, you do not want to drop the reply, but to replace it guess, right ?
>
> If so, you can use a failure route and do:
>
> failure_route[bla] {
>     if (t_check_status([3][0-9][0-9]) {
>         t_reply("404","Not found");
>         exit;
>     }
> }
>
> This will replace all 3xx you get with a 404 Not Found reply.
>
> Regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> http://www.opensips-solutions.com
>
>
> On 21.08.2015 18:16, Peter Lemenkov wrote:
>>
>> Hello All!
>> Sorry for the dumb question. I'm aware that it's possible to drop
>> provisional replies using drop() in onreply_route. Is there a way to
>> drop non-provisional ones?
>>
>> I'm trying to block some 3xx and 4xx replies completely. I could do it
>> with my custom B2BUA but maybe OpenSIPS could do this as well?
>>
>



-- 
With best regards, Peter Lemenkov.



More information about the Users mailing list