register fail because of "Proxy Authentication Required"

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

 



Hi,

The registrar response "407 Proxy Authentication Required" is normal
actually, the problem seems to be the realm setting, try to use '*'
(or 'Realm', from the log your registrar uses that realm):
cfg.cred_info[0].realm = pj_str("*");

Regards,
nanang


On Wed, Oct 22, 2008 at 10:10 AM, Lewis Liu <lewisppp at gmail.com> wrote:
> Hi Sir,
>
> I set some parameters in simple_pjsua.c.
>
>  cfg.id = pj_str("sip:" SIP_USER "@" SIP_DOMAIN);
>  cfg.reg_uri = pj_str("sip:" SIP_PROXY);
>  cfg.cred_count = 1;
>  cfg.cred_info[0].realm = pj_str(SIP_DOMAIN);
>  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);
>
> When I execute this codes, it registers to proxy server.
> But Proxy send back pckage to require Proxy Auentication Required, as
> attachment.
> How can I do setting for this in the example??
> Thanks a lot.
> Lewis
> _______________________________________________
> 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
>
>



[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