[pjsip] Register events

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

 



Hello Benny,

Thanks for the response.

If I'm not mistaken then the registration is done by pjsua_acc_add ().
And this returns a PJ_SUCCESS so how do I check for the error?

Thanks.

Best Regards,
Hitesh

On 10/4/07, Benny Prijono <bennylp at pjsip.org> wrote:
> logan wrote:
> > acc_info.status is showing a value of 171100 when I enter an incorrect
> > password, shouldn't it hold a 401? Am I missing something over here?
>
> Maybe it should, but it doesn't. :)
>
> The reason why it doesn't was because this *is* an error situation;
> the error was because the username/password is wrong
> (PJSIP_EFAILEDCREDENTIAL).
>
> > Between, for an un-registration request (pjsua_acc_set_registration(acc_id,
> > PJ_FALSE)), does PJSIP throw any events to indicate a successful
> > un-registration? Or it will just have a 200 in acc_info.status inside
> > on_reg_state handler?
>
> It will. The on_reg_state() callback should also be called for a
> successful unregistration.
>
> regards,
> -benny
>
>
> > Thanks.
> >
> > Best Regards,
> > Hitesh
> >
> >
> > _______________________________________________
> > 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
>
>
> --
> Benny Prijono
> http://www.pjsip.org
>
> _______________________________________________
> 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