Opened 13 years ago

Closed 13 years ago

#1363 closed defect (fixed)

Invalid Contact URI is used if display name contains reserved characters (thanks Dmitry Valegov for the report)

Reported by: bennylp Owned by: bennylp
Priority: normal Milestone: release-1.12
Component: pjsua-lib Version: 1.x-branch
Keywords: Cc:
Backport to 1.x milestone: Backported:

Description

PJSUA-LIB will emit invalid (i.e. non-standard) Contact URI if the display name of the AOR contains reserved characters. For example, if this is the AOR:

"Lastname, Firstname" <sip:joe@example.com>

then the following Contact URI will be generated:

Lastname, Firstname <sip:joe@example.com>

Note the missing enclosing double quotes in the display name, which makes the URI invalid since the display name contains reserved character (i.e. comma).

The solution is to always enclose the display name of the generated Contact URI with double quotes.

Change History (1)

comment:1 Changed 13 years ago by bennylp

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

(In [3742]) Always enclose Contact URI with double quote to prevent invalid Contact URI if the display part of the AOR contains reserved characters. This fixes #1363

Note: See TracTickets for help on using tickets.