Ticket #2010 (closed defect: fixed)
Failure in initializing registration due to unescaped user part in account contact
|Reported by:||nanang||Owned by:||bennylp|
|Backport to 1.x milestone:||Backported:||no|
When adding account (using pjsua_acc_add()) with an escaped account ID, e.g: "firstname.lastname@example.org", 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.