<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: <sip:8133740008@1.1.1.1;transport=udp;maddr=1.1.1.1><br><br>to<br>Contact: <sip:8133740008@2.2.2.2;transport=udp;maddr=2.2.2.2><br><br><br>I am using the following statement but it doesn't work:<br> 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>> Date: Wed, 19 Nov 2008 11:06:53 -0500<br>> From: abalashov@evaristesys.com<br>> To: alex_rsm@hotmail.com<br>> CC: users@lists.kamailio.org<br>> Subject: Re: [Kamailio-Users] Contact field<br>> <br>> The various NAT traversal modules modify the Contact to suit their ends, <br>> according to their own scheme.<br>> <br>> There is a module that will allow you to modify any header to anything <br>> you want:<br>> <br>> http://www.kamailio.org/docs/modules/1.4.x/textops.html<br>> <br>> <br>> Alex R.S.M wrote:<br>> <br>> > Hi,<br>> > <br>> > Is there a function that can modify "Contact" field in SIP header?<br>> > <br>> > Thanks,<br>> > Alex<br>> > <br>> > ------------------------------------------------------------------------<br>> > Windows Live Hotmail now works up to 70% faster. Sign up today. <br>> > <http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_faster_112008><br>> > <br>> > <br>> > ------------------------------------------------------------------------<br>> > <br>> > _______________________________________________<br>> > Users mailing list<br>> > Users@lists.kamailio.org<br>> > http://lists.kamailio.org/cgi-bin/mailman/listinfo/users<br>> <br>> <br>> -- <br>> Alex Balashov<br>> Evariste Systems<br>> Web : http://www.evaristesys.com/<br>> Tel : (+1) (678) 954-0670<br>> Direct : (+1) (678) 954-0671<br>> 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>