This is working. Thanks you.
 
Regards,
Vivek
 
-----Original Message-----
From: "Sebastian Damm" <[email protected]>
Sent: Monday, 23 October, 2017 4:04pm
To: "Kamailio (SER) - Users Mailing List" <[email protected]>
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, [email protected]
<[email protected]> 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
> [email protected]
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
>

_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
Kamailio (SER) - Users Mailing List
[email protected]
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to