bug in pjsua_media.c

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

 



Hi,
I discovered that in file pjsua_media.c in function

static pj_status_t create_rtp_rtcp_sock(const pjsua_transport_config *cfg,

in cfg->public_addr is no value (string) and it cause that problem below.
How can I fix it?

Dne 2.10.2012 12:55, Prchal Ji?? napsal(a):
> Hi,
> I have PJ version 2.0.1 and small application like simple_pjsua. I have 2 network adapter on computer, local network and
> PPP to internet. I need pass media through local network since call is made from local network. SIP goes good, but in
> SDP from my application is internet public address. I set this:
>
>    /* Add UDP transport. */
>    {
>      pjsua_transport_config cfg;
>
>      pjsua_transport_config_default (&cfg);
>      cfg.port = 5060;
>      cfg.public_addr = pj_str ("10.0.1.101");
>      //cfg.bound_addr = pj_str ("10.0.1.101");
>      status = pjsua_transport_create (PJSIP_TRANSPORT_UDP, &cfg, &tid);
>      if (status != PJ_SUCCESS) {
>        error_exit ("Error creating transport", status);
>      }
>    }
>
> try both public_addr and/or bound_addr, but no effect.
>
> I try pjsua also with option --ip_addr=10.0.1.101 or --bound_addr but with same problem, in SDP is public internet addr.
> What I'm doing wrong, please help me.
> Thanks.
> Jiri



[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