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@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