[SR-Users] Comparing if header has 0 value in body

Igor Olhovskiy igorolhovskiy at gmail.com
Thu Mar 11 12:53:39 CET 2021


Hi,

Have you tried

if ($hdr(X-myheader)=="0")

?

Regards,
Igor

On 11.03.2021 12:33, Jurijs Ivolga 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
>
> _______________________________________________
> 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/20210311/ba912598/attachment.htm>


More information about the sr-users mailing list