Tryif ($hdr(Expires) == "0")Note that expires can also be a contact parameter./OOn 19 Jan 2015, at 12:44, Emilio Soler Muñoz <emiliosoler@gmail.com> wrote:_______________________________________________Hi,This way find nothing.
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)");
}
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,
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users