[SR-Users] String split function
Grant Bagdasarian
gb at cm.nl
Thu Dec 29 10:12:05 CET 2016
Hi,
Is there a string split function built into Kamailio for use in the cfg script?
I'd like to split a string of key/value pairs inside the cfg script.
For example: Key1=Value1;Key2=Value2;
First split on ;
Then on =
I think I can use the String Transformation {s.select,index,separator}, but I was hoping there is a built in function.
{param.valueat,index[, delimiter]} may also be an option.
Regards,
Grant
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20161229/7217628e/attachment.html>
More information about the sr-users
mailing list