Re: [SR-Users] Substitution Regex

2018-09-24 Thread Ben Hood
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

Re: [SR-Users] Substitution Regex

2018-09-24 Thread John Petrini
I don't think Kamailio recognizes \d. Try using [0-9]+ ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

[SR-Users] Substitution Regex

2018-09-24 Thread Duarte Rocha
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 w