[SR-Users] Remove all cpecial characters (\n,\t etc)from xml body

Yuriy Gorlichenko ovoshlook at gmail.com
Sat Oct 28 20:28:17 CEST 2017

Hi. I building external presentity service for web based phones

Main trouble that i have at the xml body of PUBLISH message \n \t
characters and because of it can't set body as string to the redis

So I trying to find a way to remove special characters form the xml body
for get oneline string instead of multiline

I use native .cfg file for now and, unfortunattely, can not use lua or

I tried

$var(body)=$(rb{s.rm,$var(RemoveThisStaff)}) where
$var(RemoveThisStaff) = "\n" and "\t"

but it was unsuccesfull. Maybe someone will help to kno how to do it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20171028/f37211bb/attachment.html>

More information about the sr-users mailing list