[SR-Users] Question about processing of packet

Fabian Borot fborot at hotmail.com
Thu Apr 12 23:45:44 CEST 2012


greetings, I have a customer that is sending the REGISTER with 2 ports in the Contact header:  
Contact: <sip:44435661000448181 at 201.xxx.xxx.xxx:19778:5060>
After some troubleshooting we found that the wireless router is the one inserting the 2nd port. It is not the SIP UA itself. 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 REGISTERwith the typical: if (!www_authorize("$fd", "subscriber")){...} 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)I guess my question is: after removing the extra port at the begining, when I call the "if (!www_authorize("$fd", "subscriber"))",will it process the modified version or the original one?  txs a lot fborot

 
  		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20120412/1cadce10/attachment.htm>


More information about the sr-users mailing list