<div dir="ltr">Hi,<div>I tried all of them, not just those two but also replace_all(), replace_body_all(), replace_body_atonce(), subst(), and subst_body().</div><div>Thanks</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 26, 2018 at 5:54 PM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>></span> wrote:<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,<br>
<br>
Have you used replace() or replace_body() ?<br>
<br>
Regards,<br>
</tt>
<pre class="m_234247454815268131moz-signature" cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a class="m_234247454815268131moz-txt-link-freetext" href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.<wbr>com</a>
OpenSIPS Summit 2018
<a class="m_234247454815268131moz-txt-link-freetext" href="http://www.opensips.org/events/Summit-2018Amsterdam" target="_blank">http://www.opensips.org/<wbr>events/Summit-2018Amsterdam</a>
</pre><div><div class="h5">
<div class="m_234247454815268131moz-cite-prefix">On 02/26/2018 12:31 PM, Dinari, Yuval
via Users wrote:<br>
</div>
</div></div><blockquote type="cite"><div><div class="h5">
<div dir="ltr">Hi,
<div>I tried using textops module functions to replace a part of
the message body, but the body remains unchanged. A search()
with the regex to be replaced succeeds.</div>
<div>I tried all replacement functions (replace*, subst,
subst_body).</div>
<div>I see that the body is unchanged by printing $rb, and also
ngreping the SDP that opensips sends out to rtpengine via
rtpengine_offer().</div>
<div>opensips version - 2.2.5</div>
<div>Thanks</div>
</div>
<br>
<fieldset class="m_234247454815268131mimeAttachmentHeader"></fieldset>
<br>
</div></div><pre>______________________________<wbr>_________________
Users mailing list
<a class="m_234247454815268131moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a class="m_234247454815268131moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-<wbr>bin/mailman/listinfo/users</a>
</pre>
</blockquote>
<br>
</div>
</blockquote></div><br></div>