I believe you want something like this: NUTAG_URL("sip:*:5060"), NUTAG_M_PARAMS("transport=tcp")
On Fri, 2007-08-03 at 02:15 -0500, rajeev k wrote: > Hi, > > 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. > > Can someone suggest a way to add transport=tcp to contact header? > > Thanks, > > Rajeev > > > > ------------------------------------------------------------------------- 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