how to register in server? (with simpleua code)

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

 



hi:

try with:

    cfg.cred_info[0].realm = pj_str("*");

"*" is like a wildcard for registration.

instead of:

    cfg.cred_info[0].realm = pj_str(SIP_DOMAIN);

But maybe it would be more useful if you copy the log.

On Fri, Nov 21, 2008 at 1:15 AM, nitu dhanurved
<nitudhanurved16 at gmail.com>wrote:

> hi,
>     i am following simpleua, which is giving in samples in pjproject, but i
> am not able to making registration (register to a server).
>
> i am adding some lines for registration that is:
> 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(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);
>
> status = pjsua_acc_add(&cfg, PJ_TRUE, &acc_id);
>     PJ_ASSERT_RETURN(status == PJ_SUCCESS,1);
>
> but it is not working, can anyone explain me what should i do???
>
> Regards
> New_bie
>
> _______________________________________________
> 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/20081121/283f4be0/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