[SR-Users] Search Un-Register Expires header
Julia Boudniatsky
juliabo at gmail.com
Mon Jan 19 13:02:39 CET 2015
Hello Emilio,
I use
if( $hdr(Expires)=="0") {
Best regards,
Julia
On Mon, Jan 19, 2015 at 1:44 PM, Emilio Soler Muñoz <emiliosoler at gmail.com>
wrote:
> Hi,
> I find a problem when I try to search the header "Expires" with value 0.
>
> At my kamailio.cfg the configuration is:
> if ( search_hf("Expires", ":0@", "a") )
> {
> xlog("L_INFO", "Encontrado expires 0 ($rm)");
> }
>
> This way find nothing.
>
> I test with 0 (no wildcards regular expression), but this make matches in
> any Register with header Expires content 0. Example:
> ...
> if ( search_hf("Expires", "0", "a") )
> ....
>
> I saw some people control expires=0 at contact header, but not my case.
> Example:
> if (search("expires=0"))
> {
> xlog("L_INFO", "Encontrado expires 0 ($rm)");
> }
>
> Regards,
>
> --
> Emilio Soler
> emiliosoler at gmail.com
>
> _______________________________________________
> SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
> sr-users at lists.sip-router.org
> http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20150119/7020c8bc/attachment.html>
More information about the sr-users
mailing list