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@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@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users