<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 the modified message is used on the next processing , not the original one but I will keep testing <br><br><hr>From: fborot@hotmail.com<br>To: users@lists.kamailio.org<br>Subject: Question about processing of packet<br>Date: Thu, 12 Apr 2012 17:45: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> <br>I have a customer that is sending the REGISTER with 2 ports in the Contact header: <br> <br><span lang=EN><font size=1>
</font>Contact: <sip:44435661000448181@201.xxx.xxx.xxx:19778:5060></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 "sanitize" the REGISTER at the beginning of the configuration logic with the TEXTOPS module so that we can leave one port and then process the REGISTER<br>with the typical:<br> if (!www_authorize("$fd", "subscriber"))<br>{...}<br> <br>Or will this only applies to messages that are proxied/forwarded (example: 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: after removing the extra port at the begining, when I call the "if (!www_authorize("$fd", "subscriber"))",<br>will it process the modified version or the original one?<br> <br> <br>txs a lot<br> <br>fborot<br><br><br> <br><div>
<div> </div></div>                                            </div>
                                           </div></body>
</html>