Re: [Sofia-sip-devel] Setting sofia-sip Source Port
Hi Jerry, 2011/4/4 Jerry Richards jerry.richa...@teotech.com: This is a Govt. requirement (AS-SIP). We can't change it. Huh? And I thought that IMS had it bad... What function is invoked when reconnect is attempted if the initial connection fails? Hm. socket(), bind() and connect()? --Pekka -Original Message- From: Pekka Pessi [mailto:ppe...@gmail.com] Sent: Monday, April 04, 2011 9:14 AM To: Jerry Richards Cc: sofia-sip-devel@lists.sourceforge.net Subject: Re: [Sofia-sip-devel] Setting sofia-sip Source Port Hi Jerry, 2011/4/4 Jerry Richards jerry.richa...@teotech.com: 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). There is the problem you cannot reconnect once the initial connection fails (as there is no way to make difference between old and new connections). Please try to reconsider the requirement, it will not work. -- Pekka.Pessi mail at nokia.com -- Pekka.Pessi mail at nokia.com -- Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev ___ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel
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
Re: [Sofia-sip-devel] Setting sofia-sip Source Port
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
Re: [Sofia-sip-devel] Setting sofia-sip Source Port
Hi Jerry, 2011/4/4 Jerry Richards jerry.richa...@teotech.com: 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). There is the problem you cannot reconnect once the initial connection fails (as there is no way to make difference between old and new connections). Please try to reconsider the requirement, it will not work. -- 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
Re: [Sofia-sip-devel] Setting sofia-sip Source Port
Pekka, This is a Govt. requirement (AS-SIP). We can't change it. What function is invoked when reconnect is attempted if the initial connection fails? Thanks, Jerry -Original Message- From: Pekka Pessi [mailto:ppe...@gmail.com] Sent: Monday, April 04, 2011 9:14 AM To: Jerry Richards Cc: sofia-sip-devel@lists.sourceforge.net Subject: Re: [Sofia-sip-devel] Setting sofia-sip Source Port Hi Jerry, 2011/4/4 Jerry Richards jerry.richa...@teotech.com: 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). There is the problem you cannot reconnect once the initial connection fails (as there is no way to make difference between old and new connections). Please try to reconsider the requirement, it will not work. -- 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
[Sofia-sip-devel] Setting sofia-sip Source Port
Hello, 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? Thanks, Jerry -- 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