[Kamailio-Users] Search for text with a space in it

CSB kjcsb at xnet.co.nz
Thu Oct 22 20:41:26 CEST 2009


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




More information about the Users mailing list