<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><tt>This feature works as expected on 2.4. Three calls, with
three expected results:</tt></p>
<p><tt>replace_body("s=Zoiper", "");</tt><br>
<tt><tt>replace_body("s=Zoiper\r", "");</tt><br>
replace_body("s=Zoiper\r\n", "");<br>
</tt></p>
<p><tt>........<br>
v=0.<br>
o=Zoiper 0 0 IN IP4 10.0.0.14.<br>
.<br>
c=IN IP4 10.0.0.14.<br>
t=0 0.<br>
m=audio 55536 RTP/AVP 3 101 0 8.<br>
a=rtpmap:3 GSM/8000.<br>
a=rtpmap:101 telephone-event/8000.<br>
..........<br>
<br>
..........<br>
v=0.<br>
o=Zoiper 0 0 IN IP4 10.0.0.14.<br>
<br>
c=IN IP4 10.0.0.14.<br>
t=0 0.<br>
m=audio 55536 RTP/AVP 3 101 0 8.<br>
a=rtpmap:3 GSM/8000.<br>
a=rtpmap:101 telephone-event/8000.<br>
..........<br>
<br>
..........<br>
v=0.<br>
o=Zoiper 0 0 IN IP4 10.0.0.14.<br>
c=IN IP4 10.0.0.14.<br>
t=0 0.<br>
m=audio 55536 RTP/AVP 3 101 0 8.<br>
a=rtpmap:3 GSM/8000.<br>
a=rtpmap:101 telephone-event/8000.<br>
..........<br>
</tt></p>
<p><tt>My advice is to first double-check your script flow (use
xlog() printing), then double-check for any special characters
which require escaping within the regexp.</tt></p>
<pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
<div class="moz-cite-prefix">On 05.04.2018 16:50, Kirill Galinurov
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAPDUut8usEnWhsoi5T46CYAQQq51J1rJz4xF2bntnBXBVqSFhg@mail.gmail.com">
<div dir="ltr">Yes. I tried both .</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">2018-04-05 16:13 GMT+03:00 Kirill
Galinurov <span dir="ltr"><<a
href="mailto:k.galinurov@gmail.com" target="_blank"
moz-do-not-send="true">k.galinurov@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi Bogdan. I try use replace_body("<span
style="font-family:monospace"><span
style="color:rgb(0,0,0);background-color:rgb(255,255,255)">s=<wbr>Asterisk
PBX 13.17.2\r\n</span></span>","") but its not
working...<br>
</div>
<div class="HOEnZb">
<div class="h5">
<div class="gmail_extra"><br>
<div class="gmail_quote">2018-04-04 17:58 GMT+03:00
Bogdan-Andrei Iancu <span dir="ltr"><<a
href="mailto:bogdan@opensips.org"
target="_blank" moz-do-not-send="true">bogdan@opensips.org</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> <tt>Hi
Kirill,<br>
<br>
Please see <a
class="m_-3033362044072871614m_-6312227411372210427moz-txt-link-freetext"
href="http://lists.opensips.org/pipermail/users/2018-April/039219.html"
target="_blank" moz-do-not-send="true">http://lists.opensips.org/pipe<wbr>rmail/users/2018-April/039219.<wbr>html</a><br>
<br>
Regards,<br>
</tt>
<pre class="m_-3033362044072871614m_-6312227411372210427moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="m_-3033362044072871614m_-6312227411372210427moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank" moz-do-not-send="true">http://www.opensips-solutions.<wbr>com</a>
OpenSIPS Summit 2018
<a class="m_-3033362044072871614m_-6312227411372210427moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2018Amsterdam" target="_blank" moz-do-not-send="true">http://www.opensips.org/events<wbr>/Summit-2018Amsterdam</a>
</pre>
<span>
<div
class="m_-3033362044072871614m_-6312227411372210427moz-cite-prefix">On
04/03/2018 05:36 PM, Kirill Galinurov wrote:<br>
</div>
</span>
<blockquote type="cite"><span>
<div dir="ltr">Hi All. I use opensips 2.3
How I can remove sdp line like s=Asterisk
PBX 13.18.1
<div> in SDP ?</div>
</div>
<br>
<fieldset
class="m_-3033362044072871614m_-6312227411372210427mimeAttachmentHeader"></fieldset>
<br>
</span>
<pre>______________________________<wbr>_________________
Users mailing list
<a class="m_-3033362044072871614m_-6312227411372210427moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank" moz-do-not-send="true">Users@lists.opensips.org</a>
<a class="m_-3033362044072871614m_-6312227411372210427moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank" moz-do-not-send="true">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</body>
</html>