[SR-Users] Substitution Regex
Ben Hood
ben at relops.com
Tue Sep 25 00:28:22 CEST 2018
Not sure how relevant this is for you but I just ran into a gotcha with subst_hf() not distilling changes.
Seems that in some circumstances you need to invoke
msg_apply_changes()
from the textopsx module to finalize the payload for transport.
I gather that this should be used with care since it could have unintended side effects for your config.
> On 24 Sep 2018, at 18:32, Duarte Rocha <duarterocha91 at gmail.com> wrote:
>
> Greetings,
>
> I'm using subst_hf() function to do some search and replace and i want to identify a undifined amount of digits after a string (ex: string=123123). Everywhere i look, the right way seems to be \d so i'm doing subst_hf("Via","/;string=\d/substitution_string/", "a");
>
> It doesn't seem to work. Any ideas why?
>
> Best Regards,
>
> Duarte Rocha
> _______________________________________________
> Kamailio (SER) - Users Mailing List
> sr-users at lists.kamailio.org
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-users/attachments/20180924/24e4377e/attachment.html>
More information about the sr-users
mailing list