<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<br>I am trying to modify <br>Contact: &lt;sip:8133740008@1.1.1.1;transport=udp;maddr=1.1.1.1&gt;<br><br>to<br>Contact: &lt;sip:8133740008@2.2.2.2;transport=udp;maddr=2.2.2.2&gt;<br><br><br>I am using the following statement but it doesn't work:<br>&nbsp;if ( subst('/^Contact:(.*)sip:[^@]*@([a-zA-Z0-9.]+);(.*)$/contact:\12.2.2.2;\2/ig') ) {};<br><br>Am I missing anything?<br><br>Thanks,<br>Alex<br><br><br><br>&gt; Date: Wed, 19 Nov 2008 11:06:53 -0500<br>&gt; From: abalashov@evaristesys.com<br>&gt; To: alex_rsm@hotmail.com<br>&gt; CC: users@lists.kamailio.org<br>&gt; Subject: Re: [Kamailio-Users] Contact field<br>&gt; <br>&gt; The various NAT traversal modules modify the Contact to suit their ends, <br>&gt; according to their own scheme.<br>&gt; <br>&gt; There is a module that will allow you to modify any header to anything <br>&gt; you want:<br>&gt; <br>&gt; http://www.kamailio.org/docs/modules/1.4.x/textops.html<br>&gt; <br>&gt; <br>&gt; Alex R.S.M wrote:<br>&gt; <br>&gt; &gt; Hi,<br>&gt; &gt; <br>&gt; &gt; Is there a function that can modify "Contact" field in SIP header?<br>&gt; &gt; <br>&gt; &gt; Thanks,<br>&gt; &gt; Alex<br>&gt; &gt; <br>&gt; &gt; ------------------------------------------------------------------------<br>&gt; &gt; Windows Live Hotmail now works up to 70% faster. Sign up today. <br>&gt; &gt; &lt;http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_faster_112008&gt;<br>&gt; &gt; <br>&gt; &gt; <br>&gt; &gt; ------------------------------------------------------------------------<br>&gt; &gt; <br>&gt; &gt; _______________________________________________<br>&gt; &gt; Users mailing list<br>&gt; &gt; Users@lists.kamailio.org<br>&gt; &gt; http://lists.kamailio.org/cgi-bin/mailman/listinfo/users<br>&gt; <br>&gt; <br>&gt; -- <br>&gt; Alex Balashov<br>&gt; Evariste Systems<br>&gt; Web    : http://www.evaristesys.com/<br>&gt; Tel    : (+1) (678) 954-0670<br>&gt; Direct : (+1) (678) 954-0671<br>&gt; Mobile : (+1) (706) 338-8599<br><br /><hr />Windows Live Hotmail now works up to 70% faster. <a href='http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_faster_112008' target='_new'>Sign up today.</a></body>
</html>