Opened 5 years ago

Closed 5 years ago

#1801 closed defect (fixed)

pjsua_acc_modify() should return error when it fails in initiating re-registration

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

Description

A sample case is when modifying SIP account ID with very long ID, pjsua_acc_modify() will try to re-register the account, however the re-registration initiation fails:

Unable to generate suitable Contact header for registration: Size is too short (PJ_ETOOSMALL) [status=70019]
Unable to create registration: Size is too short (PJ_ETOOSMALL) [status=70019]

while pjsua_acc_modify() still returning PJ_SUCCESS.

Thanks Alexander Fatyanov for the report.

Change History (1)

comment:1 Changed 5 years ago by nanang

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

In 4955:

Fix #1801:

  • put error check in re-registration attempt in pjsua_acc_modify(),
  • updated pjsua_acc_modify() docs about its behavior regarding unregistration and re-registration.
Note: See TracTickets for help on using tickets.