Hi Pekka, I temporarily got it working by patching the tport_tls_connect() function to set susa.su_port to 5061 (instead of setting it to 0). I do use nua, so I'll try NUTAG_OUTBOUND() as you suggest. We have a requirement that TLS connections must specifically use source port 5061 (not a random port).
Thanks, Jerry -----Original Message----- From: Pekka Pessi [mailto:ppe...@gmail.com] Sent: Monday, April 04, 2011 8:35 AM To: Jerry Richards Cc: sofia-sip-devel@lists.sourceforge.net Subject: Re: [Sofia-sip-devel] Setting sofia-sip Source Port Hi, 2011/3/31 Jerry Richards <jerry.richa...@teotech.com>: > I am setting my contact address to specify port 5061 (for TLS), but a > wireshark trace shows the message being sent with a source port of 1025. > This is confusing the Redcom server. How can I make sofia-sip send > the message with the same port as is in the contact header? Do you use nua? If so, you can set NUTAG_OUTBOUND("outbound natify use-rport"), and Sofia will use the ephemeral source port in Contact, too. Otherwise, the situation is a bit more complicated. What kind of setup you have? -- Pekka.Pessi mail at nokia.com ------------------------------------------------------------------------------ Create and publish websites with WebMatrix Use the most popular FREE web apps or write code yourself; WebMatrix provides all the features you need to develop and publish your website. http://p.sf.net/sfu/ms-webmatrix-sf _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel