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:[email protected];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

__________________________________________________________
Kamailio - Users Mailing List - Non Commercial Discussions
  * [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!
Edit mailing list options or unsubscribe:
  * https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Reply via email to