[pjsip] Register events

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

 



Hi Benny,

In pjsua_acc_get_info, shouldn't we first check for acc->reg_last_code and 
set the last SIP code in info->status? This gives me the valid SIP response 
401, 407, etc.

Thanks.

Best Regards,
Hitesh

----- Original Message ----- 
From: "Benny Prijono" <bennylp@xxxxxxxxx>
To: "pjsip embedded/DSP SIP discussion" <pjsip at lists.pjsip.org>
Sent: Thursday, October 04, 2007 9:14 PM
Subject: Re: [pjsip] Register events


> 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