2007/8/3, rajeev k <[EMAIL PROTECTED]>: > To force the application to use tcp I am using following tag with > nua_set_params. It works fine except that the tcp will use random ports not > the specified port. > > NUTAG_URL("sip:*:5060;transport=tcp,udp") > > Now there is a requirement that the client should add trasport=tcp with the > contact header. We can do this in case of UDP because we know the port > number which the client is using(we will create a contact uri and use > SIPTAG_CONTACT_STR when we create register request handle). > > But in case of tcp, we dont know the port number, so we are not able to > create the contact in application and use with SIPTAG_CONTACT_STR.
The TCP port number that is put in the Contact header is the server port number created locally. However, it is pretty useless if there happens to be a NAT box or firewall between SIP UA and proxy as the proxy can not make connection to the port specified on the Contact header. > Can someone suggest a way to add transport=tcp to contact header? The NUTAG_M_PARAMS() tag mentioned by Jarod adds the transport=tcp parameter, but of course, it does not solve the NAT/firewalling problem. The "outbound" extension, currently defined in draft-ietf-sip-outbound-10, tries to address that one. We have implemented an older version of that draft, but I'm afraid it is pretty useless at the moment. Currently, the best thing is to trust the proxy to solve the problem in proprietary way (like, cache the inbound connection used to receive REGISTER request and send the outbound requests using the cached connection). -- Pekka.Pessi mail at nokia.com ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel