The comma in your regex is unnecessary; it allows a match for “30,”. It should
just be “30[12]”.
Also, where is the status variable being set from? There are two places to get
the return code: $rs and $T_reply_code.
Or you could use t_check_status() like so:
if (t_check_status(“30[12]”)) {
drop();
}
Ben Newlin
From: <[email protected]> on behalf of Denis <[email protected]>
Reply-To: OpenSIPS users mailling list <[email protected]>
Date: Thursday, August 18, 2016 at 4:58 AM
To: "[email protected]" <[email protected]>
Subject: [OpenSIPS-Users] 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