Hello,
what is the result? Do you use other functions that may change the
contact (like those from nathelper)?
Cheers,
Daniel
On 06.04.20 15:34, Mack Hendricks wrote:
Hey All,
I always have issues with substituting out header values. I’ve tried
subst and subst_hf.
Here is the value that I want to change out:
Contact:
<sip:52.41.52.34:5060;line=sr-h06Cy7RYRFkYacM0a7epa7sVa7sVRcNCW7IbaGZ9RGlC>
And this is what I want it to be
Contact:
<sip:1313717555@jump.dsiprouter.net;line=sr-h06Cy7RYRFkYacM0a7epa7sVa7sVRcNCW7IbaGZ9RGlC>
I’m using this
subst('/^Contact: <sip:(.*);(.*)>$/Contact:
<sip:1313717555@jump.dsiprouter.net;\2>\r/ig’);
And it doesn’t work, but putting into a online regular expression
tester it looks good as shown below. Any ideas?
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla --
www.asipto.com
www.twitter.com/miconda --
www.linkedin.com/in/miconda