OpenSER 1.3 When I try to match a phrase with a space in it I don't get a match. I'm looking for "User-Agent: My UA"
None of the following seem to work: if (search("User-Agent:\sMy\sUA")) { if (search("User-Agent:[ ]My[ ]UA")) { if (search("User-Agent: My UA")) {
Could anyone point out my obvious mistake?
Thanks
CSB пишет:
OpenSER 1.3 When I try to match a phrase with a space in it I don't get a match. I'm looking for "User-Agent: My UA"
None of the following seem to work: if (search("User-Agent:\sMy\sUA")) { if (search("User-Agent:[ ]My[ ]UA")) { if (search("User-Agent: My UA")) {
Could anyone point out my obvious mistake?
if(is_present_hf("User-Agent") && *$ua == "My UA")) {* xlog("L_INFO", "Our header is [$ua]\n"); }
Thanks
Kamailio (OpenSER) - Users mailing list Users@lists.kamailio.org http://lists.kamailio.org/cgi-bin/mailman/listinfo/users http://lists.openser-project.org/cgi-bin/mailman/listinfo/users
Wbr, Alexandr