maybe benny or nanang know the reason. I didn't spend time to check source code before. regards, Gang 2008/11/12 Peter Cai <newptcai at gmail.com> > Yeah. I can see the reason. > > But this is only an assumption that might fail very possibly. > > 2008/11/12 Gang Liu <gangban.lau at gmail.com>: > > Hi, > > I have tested the same env, also found this behiver. After I > enabled > > record-route at proxy(OpenSer), it works well. > > I guess it is for NAT friendly, let proxy reuse the old connected > tcp > > connection.Otherwise call setup will fail if callee is behind NAT and > caller > > try to reach callee 5060 port. > > > > regards, > > Gang > > > > 2008/11/12 Peter Cai <newptcai at gmail.com> > >> > >> Tried with pjsua_vc8d.exe, the demo provided in "pjsua" project, the > >> same problem found. > >> > >> On Wed, Nov 12, 2008 at 6:03 PM, Peter Cai <newptcai at gmail.com> wrote: > >> > Hi all, > >> > > >> > I'm testing PJSIP with TCP transport, with windows mesenger. > >> > > >> > The environment is like this > >> > > >> > > >> > PJ <-----TCP-----> PROXY <---------TCP-----------> Windows Messenger. > >> > (WM) > >> > > >> > I used the example "simple_pjsua.c" from PJ's web site: > >> > > >> > > >> > file:///E:/Software/Sites/pjsip_pjsip_docs_html/ > www.pjsip.org/pjsip/docs/html/page_pjsip_sample_simple_pjsuaua_c.htm > >> > > >> > > >> > Modified 2 lines to use TCP. > >> > > >> > << status = pjsua_transport_create(PJSIP_TRANSPORT_UDP, &cfg, NULL); > >> > > >> >>> status = pjsua_transport_create(PJSIP_TRANSPORT_TCP, &cfg, NULL); > >> > > >> > << cfg.reg_uri = pj_str("sip:" SIP_DOMAIN ";transport=tcp"); > >> > > >> >>> cfg.reg_uri = pj_str("sip:" SIP_DOMAIN ";transport=tcp"); > >> > > >> > > >> > According to the packages I captured, the process is: > >> > > >> > 1. PJ register with port 5060 > >> > 2. PJ changed to register with a random selected port, 39122 e.g., > >> > and un-register port 5060 > >> > 3. PJ answer INVITE with 200 OK, with port 39122 in CONTACT header. > >> > 4. WM tries to connect to port 39122, but failed. So ACK could not be > >> > sent! > >> > > >> > PJ is not listening on 39122, but wrongly using it in CONTACT header > of > >> > 200 OK. > >> > > >> > If further information needed. I can provide captured packages. > >> > > >> > >> > >> > >> -- > >> > >> > ???????????DNA????????????????????????????????????????????????????????????????????????????????????????? > >> _______________________________________________ > >> 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 > > > > > > _______________________________________________ > > 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 > > > > > > > > -- > > ???????????DNA????????????????????????????????????????????????????????????????????????????????????????? > _______________________________________________ > 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/20081112/3477e9fe/attachment.html>