[pjsip] Register events

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

 



logan wrote:
> 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.

That might be true, but some applications have been depending on 
current status assignment, so I'm rather reluctant to change it. In 
any case, I think this only applies for 401 and 407, and for other 
status you should get the status code as expected.

regards,
  -benny

> 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




[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