<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Txs a lot Reda, I will try it<br><br>Although I made a couple of test w/o it and so far it looks like&nbsp;&nbsp;the modified message is used on the next processing , not the original one but I will keep testing <br><br><hr>From&#58; fborot@hotmail.com<br>To&#58; users@lists.kamailio.org<br>Subject&#58; Question about processing of packet<br>Date&#58; Thu, 12 Apr 2012 17&#58;45&#58;44 -0400<br><br><style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Tahoma;}

</style>
<div dir=ltr>
greetings,<br>&nbsp;<br>I have a customer that is sending the REGISTER with 2 ports in the Contact header&#58; <br>&nbsp;<br><span lang=EN><font size=1>
</font>Contact&#58; &lt;sip&#58;44435661000448181@201.xxx.xxx.xxx&#58;19778&#58;5060&gt;</span><br><br>After some troubleshooting we found that the wireless router is the one inserting the 2nd port. It is not the SIP UA itself. <br>Is it possible to &quot;sanitize&quot; the REGISTER at the beginning of the configuration logic with the TEXTOPS module&nbsp;so that we can leave one port and then process the REGISTER<br>with the typical&#58;<br>&nbsp;if (!www_authorize(&quot;$fd&quot;, &quot;subscriber&quot;))<br>&#123;...&#125;<br>&nbsp;<br>Or&nbsp;will this&nbsp;only applies to messages that are proxied/forwarded (example&#58; received malformed INVITE, before calling route[1] to send it to the destination sanitize it with the TEXTOPS functions)<br>I guess my question is&#58; after removing the extra port at the begining, when I call the &quot;if (!www_authorize(&quot;$fd&quot;, &quot;subscriber&quot;))&quot;,<br>will it process the modified version or the original one?<br>&nbsp;<br>&nbsp;<br>txs a lot<br>&nbsp;<br>fborot<br><br><br>&nbsp;<br><div>
<div>&nbsp;</div></div>                                               </div>
                                               </div></body>
</html>