This is working. Thanks you.
Regards,
Vivek
-----Original Message-----
From: "Sebastian Damm" <damm@sipgate.de>
Sent: Monday, 23 October, 2017 4:04pm
To: "Kamailio (SER) - Users Mailing List" <sr-users@lists.kamailio.org>
Subject: Re: [SR-Users] How to check 4XX/5XX response in general.
Hi,
you can use a regex match for that as well.
if ($rs =~ "^[45].*") {
# do something
}
HTH
Sebastian
On Mon, Oct 23, 2017 at 11:34 AM, vivek@advaitamtech.com
<vivek@advaitamtech.com> wrote:
> Hi,
>
>
>
> Is there any way to catch all 4XX and 5XX SIP error codes rather then
> specifying individually ie. 404, 500, 400 etc in kamailio.
>
>
>
> Thanks,
>
> Vivek.
>
>
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users@lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users