[SR-Users] How to check 4XX/5XX response in general.

vivek at advaitamtech.com vivek at advaitamtech.com
Tue Oct 24 12:18:53 CEST 2017


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

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users at lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20171024/0a0f3542/attachment.html>


More information about the sr-users mailing list