<div dir="ltr">Hi thx.<br>I tried without double back slashes. Has no effect.<br>But I already resolved it with different way<br>Just decoded message to base64 formt  and then sent to needed service where i encoded it and parsed (thx Alex Balashov for 2014 kamailio world presentantion)<br>Was not sure about parsing string by kamailio (this it is not a best idea), think that logic on kamailio side should be as clear as it posible</div><div class="gmail_extra"><br><div class="gmail_quote">2017-10-30 12:29 GMT+03:00 Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<div><div class="h5"><br>
<br>
On 28.10.17 20:28, Yuriy Gorlichenko wrote:<br>
> Hi. I building external presentity service for web based phones<br>
><br>
><br>
> Main trouble that i have at the xml body of PUBLISH message \n \t<br>
> characters and because of it can't set body as string to the redis<br>
><br>
> So I trying to find a way to remove special characters form the xml<br>
> body for get oneline string instead of multiline<br>
><br>
> I use native .cfg file for now and, unfortunattely, can not use lua or<br>
> phyton<br>
><br>
> I tried <br>
><br>
> $var(body)=$(rb{s.rm,$var(<wbr>RemoveThisStaff)}) where <br>
> $var(RemoveThisStaff) = "\n" and "\t"<br>
><br>
> but it was unsuccesfull. Maybe someone will help to kno how to do it.<br>
><br>
</div></div>can you try with:<br>
<br>
$var(body)=$(rb{s.rm,\n});<br>
<br>
or:<br>
<br>
$var(body)=$(rb{s.rm,\\n});<br>
<br>
Not sure if needs double back slashes, that's why I said to try the both.<br>
<br>
Cheers,<br>
Daniel<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Daniel-Constantin Mierla<br>
<a href="http://www.twitter.com/miconda" rel="noreferrer" target="_blank">www.twitter.com/miconda</a> -- <a href="http://www.linkedin.com/in/miconda" rel="noreferrer" target="_blank">www.linkedin.com/in/miconda</a><br>
Kamailio Advanced Training, Nov 13-15, 2017, in Berlin - <a href="http://www.asipto.com" rel="noreferrer" target="_blank">www.asipto.com</a><br>
Kamailio World Conference - <a href="http://www.kamailioworld.com" rel="noreferrer" target="_blank">www.kamailioworld.com</a><br>
<br>
</font></span></blockquote></div><br></div>