2009/2/26 Jerry Richards <jer...@tonecommander.com>: > Okay, thank you. By the way, if I wanted to temporarily patch the source > port, do you know a good place (i.e. function) to do it? I just want to > confirm that the source port is not an issue with a SIP server I'm > interfacing with.
It might be a bit hard, you can try to bind to tp_pri->tp_addr in tport_tcp_init_secondary(). bind() might succeed or then not, depending on how the reuseraddr is implemented on your system. --Pekka > -----Original Message----- > From: Pekka Pessi [mailto:ppe...@gmail.com] > Sent: Thursday, February 26, 2009 12:15 PM > To: Jerry Richards > Cc: sofia-sip-devel@lists.sourceforge.net > Subject: Re: [Sofia-sip-devel] TCP Source Port 3072? > > 2009/2/26 Jerry Richards <jer...@tonecommander.com>: >> Hello All, >> >> When I configure the sofia transport=udp, then I see SIP UDP packets >> sent with source port 5060 and destination port 5060. When the only >> change I make is transport=tcp, then I see SIP TCP packets sent with >> source port 3072 and destination port 5060. >> >> Has anyone seen this? Maybe I'm missing a tag or there is something >> weird happening in my TCP/IP stack? > > This is perfectly normal for TCP. The source port is not usually bind to any > known value but system selects an ephemeral port for it. (If it was, we > would run into serious problems if the connection ever got > closed.) > > -- > Pekka.Pessi mail at nokia.com > > -- Pekka.Pessi mail at nokia.com ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ Sofia-sip-devel mailing list Sofia-sip-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel