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:[email protected]
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
_______________________________________________
Users mailing list
[email protected]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users