Register fails when client is behind a NAT

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

 



Hello,

I having some trouble when I send a register request when my pjsip client is behind a NAT. When I try my application when I'm in the same network that my asterisk server, the registration process is done successfully.

When a try a registration with X-lite and behind a NAT, the registration is a success. Is this for reason that I think that the problem come from my code. please help me.

sample code :

cfg.id = pj_str("sip:" SIP_USER "@" SIP_DOMAIN "");
        cfg.reg_uri = pj_str("sip:" SIP_DOMAIN "");
        cfg.cred_count = 1;
        cfg.cred_info[0].realm = pj_str("asterisk");
        cfg.cred_info[0].scheme = pj_str("digest");
        cfg.cred_info[0].username = pj_str(SIP_USER);
        cfg.cred_info[0].data_type = PJSIP_CRED_DATA_PLAIN_PASSWD;
        cfg.cred_info[0].data = pj_str(SIP_PASSWD);



        cfg.proxy_cnt = 1;
        cfg.proxy[0] = pj_str("sip:" SIP_DOMAIN);




[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