That was a bug, as the Via address should always be updated for TCP/TLS. I just fixed this in http://trac.pjsip.org/repos/ticket/864 Thanks for the report! -Benny On Fri, Nov 6, 2009 at 8:09 PM, Cheng, ? <ato_wu at yahoo.com.tw> wrote: > Hi: > I am using pjsip v1...4 to implement my application, and I want my app > using connect to SIP server by TCP. > The pjsip creates a random socket port and modify the via header (e.g. > port 2050) to register to sip server in transport layer. > But, in the Contact header, the specific port is 5060 orignal. > I know the acc_check_nat_addr() will auto update the information, then > unregister and register. > I want the port in the Via and Contact is the same value in the first > REGISTER by TCP connection. > How can I do to reach the goal? > > Best Regards > DaCheng > > ___________________________________________________ > ??????? ? ???????????????? > http://messenger.yahoo.com.tw/ > > _______________________________________________ > Visit our blog: http://blog.pjsip.org > > pjsip mailing list > pjsip at lists.pjsip.org > http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20091110/bd7e1545/attachment-0001.html>