[OpenSIPS-Users] textops module replace functions don't work

Bogdan-Andrei Iancu bogdan at opensips.org
Wed Feb 28 07:27:15 EST 2018


Hi Yuval,

First, please subscribe to the list in order to be able to properly post 
messages here.

Secondly, on your issue - before the replace function do you perform any 
other changes over the body ?

Regards,

Bogdan-Andrei Iancu

OpenSIPS Founder and Developer
   http://www.opensips-solutions.com
OpenSIPS Summit 2018
   http://www.opensips.org/events/Summit-2018Amsterdam

On 02/26/2018 06:45 PM, Dinari, Yuval wrote:
> Hi,
> I tried all of them, not just those two but also replace_all(), 
> replace_body_all(), replace_body_atonce(), subst(), and subst_body().
> Thanks
>
> On Mon, Feb 26, 2018 at 5:54 PM, Bogdan-Andrei Iancu 
> <bogdan at opensips.org <mailto:bogdan at opensips.org>> wrote:
>
>     Hi,
>
>     Have you used replace() or replace_body() ?
>
>     Regards,
>
>     Bogdan-Andrei Iancu
>
>     OpenSIPS Founder and Developer
>        http://www.opensips-solutions.com <http://www.opensips-solutions.com>
>     OpenSIPS Summit 2018
>        http://www.opensips.org/events/Summit-2018Amsterdam
>     <http://www.opensips.org/events/Summit-2018Amsterdam>
>
>     On 02/26/2018 12:31 PM, Dinari, Yuval via Users wrote:
>>     Hi,
>>     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.
>>     I tried all replacement functions (replace*, subst, subst_body).
>>     I see that the body is unchanged by printing $rb, and also
>>     ngreping the SDP that opensips sends out to rtpengine via
>>     rtpengine_offer().
>>     opensips version - 2.2.5
>>     Thanks
>>
>>
>>     _______________________________________________
>>     Users mailing list
>>     Users at lists.opensips.org <mailto:Users at lists.opensips.org>
>>     http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>>     <http://lists.opensips.org/cgi-bin/mailman/listinfo/users>
>
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20180228/882cb62c/attachment.html>


More information about the Users mailing list