Hello,
the search_hf() is accepting only static regexp as parameter at this moment.
Do you want to match only the From header in this case, or there could
be the case of another header as well?
Cheers,
Daniel
On 07.04.17 14:25, Olli Attila wrote:
Hello,
Is it possible to use variables inside a textops search_hf function? I
am trying to compare variable content against From header content and
return true or false.
I tried the following statement but with no luck:
search_hf("From", "$var(MYVARIABLE)", "f") { ... }
If this cannot be done, any suggestions on how to achieve this kind of
comparsion? The variable content is pulled out from a htable entry.
Cheers,
--Olli
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
www.twitter.com/miconda --
www.linkedin.com/in/miconda
Kamailio Advanced Training - May 22-24 (USA) -
www.asipto.com
Kamailio World Conference - May 8-10, 2017 -
www.kamailioworld.com