Opened 7 years ago

Closed 7 years ago

#2010 closed defect (fixed)

Failure in initializing registration due to unescaped user part in account contact

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

Description

When adding account (using pjsua_acc_add()) with an escaped account ID, e.g: "user%40@some.domain", the account will be successfully added, but soon the registration will fail in initialization stage and unfortunately application will not be informed about this registration failure, i.e: pjsua_acc_add() returns PJ_SUCCESS and PJSUA callback on_reg_state is not invoked.

After investigation, we found that PJSUA will internally store the user part unescaped, e.g: "user@", and later when user part is used for generating Contact header (which is done without escaping), the Contact header will be invalid, e.g: "user@@some.domain".

Thanks Nils Lichtenfeld for the report.

Change History (1)

comment:1 Changed 7 years ago by nanang

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

In 5579:

Fixed #2010: Updated PJSUA to store the user part of an account ID in escaped form.

Note: See TracTickets for help on using tickets.