[SR-Users] Find Values in User part of Diversion URI
Lewis Hutchinson
lewis.hutchinson at missionlabs.co.uk
Fri May 27 15:53:08 CEST 2022
Sorry if this is a super basic ask but I can't seem to work it out, I have got a work around but for my own sanity wanted to post the question on here.
In Kamailio Native 5.5.2
I want to be able to look into this field $(di{uri.user}) and "find" or see if it "contains" a value
i.e Diversion: "TEST" sip:112233445566 at xxx.xxx.xxx.xxx;user=phone;
find 234
or
contains 234
I know how to do this in in KEMI Python but for the life of me cant get my head around it in Native.
2ndly is there an opposite to {s.numeric} Removes all non-numeric parts of string.
I want the ability to strip all numeric parts.
Keep us the good work.
Lewis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20220527/f6450a78/attachment.htm>
More information about the sr-users
mailing list