Ticket #1938 (closed defect: fixed)

Opened 17 months ago

Last modified 17 months ago

Wrong registration renewal flag info in PJSUA registration callback when unregistration fails

Reported by: nanang Owned by: bennylp
Priority: normal Milestone: release-2.5.5
Component: pjsua-lib Version: trunk
Keywords: Cc:
Backport to 1.x milestone: Backported: no

Description

Reported that when an unregistration fails with 408, pjsua_reg_info.renew in on_reg_state2() callback is PJ_TRUE, while it should be PJ_FALSE. After investigation, it turns out that pjsua_reg_info.renew is evaluated by checking whether the current active registration interval value (of a successful registration) is non-zero. As the unregistration has just failed, the inteval value is still a possitive number, hence pjsua_reg_info.renew value in the unregistration callback is PJ_TRUE.

Thanks Nadia Lapkovskaya for the report.

Change History

comment:1 Changed 17 months ago by nanang

  • Status changed from new to closed
  • Resolution set to fixed

In 5356:

Fix #1938: Wrong registration renewal flag info in PJSUA registration callback when unregistration fails.

Note: See TracTickets for help on using tickets.