[OpenSIPS-Users] reject 3xx code
Adrian Fretwell
adrian.fretwell at topgreen.co.uk
Thu Aug 18 11:19:31 CEST 2016
Denis,
all the examples I have seen for this do the status check in a failure
route:
t_on_failure("1");
..........
failure_route[1] {
if (t_was_cancelled()) {
exit;
}
# uncomment the following lines if you want to block client
# redirect based on 3xx replies.
##if (t_check_status("3[0-9][0-9]")) {
##t_reply("404","Not found");
## exit;
##}
}
Kind regards,
Adrian Fretwell
On 18/08/16 09: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/20160818/fd17c321/attachment.htm>
More information about the Users
mailing list