[SR-Users] Comparing if header has 0 value in body
Jurijs Ivolga
jurijs.ivolga at gmail.com
Thu Mar 11 12:53:34 CET 2021
Hi,
This seems to work for me:
if ($(hdr(X-myheader){s.trim})==0) {
......
};
Seems in the body I got "0 " and maybe because of this automatic string to
int conversion didn't work.
Jurijs
On Thu, Mar 11, 2021 at 1:33 PM Jurijs Ivolga <jurijs.ivolga at gmail.com>
wrote:
> Hi,
>
> I'm running Kamailio 5.3.5
>
> I have following header "X-myheader: 0"
>
> Nevertheless it seems this is not working for me:
>
> if ($hdr(X-myheader)==0) {
> .....
> };
>
> What I'm doing wrong?
>
> Jurijs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20210311/cb8eabf1/attachment.htm>
More information about the sr-users
mailing list