Might a bug in with TCP transport. Wrong contact port.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20081112/2a2952ec/attachment.html>


[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux