<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hello,</p>
<p>what is the result? Do you use other functions that may change
the contact (like those from nathelper)?</p>
<p>Cheers,<br>
Daniel<br>
</p>
<div class="moz-cite-prefix">On 06.04.20 15:34, Mack Hendricks
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:146AA491-2EB7-4097-8FFE-B87DA07E62D0@dopensource.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"
class="">
<div style="word-wrap: break-word; -webkit-nbsp-mode: space;
line-break: after-white-space;" class="">Hey All,
<div class=""><br class="">
</div>
<div class="">I always have issues with substituting out header
values. I’ve tried subst and subst_hf. </div>
<div class=""><br class="">
</div>
<div class="">Here is the value that I want to change out:</div>
<div class=""><br class="">
</div>
<div class="">Contact: <<a
href="sip:52.41.52.34:5060;line=sr-h06Cy7RYRFkYacM0a7epa7sVa7sVRcNCW7IbaGZ9RGlC"
class="" moz-do-not-send="true">sip:52.41.52.34:5060;line=sr-h06Cy7RYRFkYacM0a7epa7sVa7sVRcNCW7IbaGZ9RGlC</a>></div>
<div class=""><br class="">
</div>
<div class=""> And this is what I want it to be</div>
<div class=""><br class="">
</div>
<div class="">Contact: <<a
href="sip:1313717555@jump.dsiprouter.net" class=""
moz-do-not-send="true">sip:1313717555@jump.dsiprouter.net</a>;line=sr-h06Cy7RYRFkYacM0a7epa7sVa7sVRcNCW7IbaGZ9RGlC></div>
<div class=""><br class="">
</div>
<div class="">I’m using this </div>
<div class=""><br class="">
</div>
<div class="">subst('/^Contact: <a class="moz-txt-link-rfc2396E" href="sip:(.*);(.*)"><sip:(.*);(.*)></a>$/Contact:
<<a href="sip:1313717555@jump.dsiprouter.net;\2" class=""
moz-do-not-send="true">sip:1313717555@jump.dsiprouter.net;\2</a>>\r/ig’);</div>
<div class=""><br class="">
</div>
<div class="">And it doesn’t work, but putting into a online
regular expression tester it looks good as shown below. Any
ideas? </div>
<div class=""><br class="">
</div>
<div class=""><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a></pre>
</body>
</html>