Bad ip_addr in SDP

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

 



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