Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#1556 closed defect (fixed)

Fix From/To tag and Via branch comparison to be case insensitive

Reported by: ming Owned by: bennylp
Priority: normal Milestone: release-2.1
Component: pjsip Version: trunk
Keywords: Cc:
Backport to 1.x milestone: release-1.16 Backported: yes

Description (last modified by ming)

This problem is originally reported by Regis Montoya (special thanks for the report) regarding the From/To? tag comparison.

From RFC 3261:
The "tag" parameter is used in the To and From header fields of SIP messages. It serves as a general mechanism to identify a dialog, which is the combination of the Call-ID along with two tags, one from each participant in the dialog.

Unless otherwise stated in the definition of a particular header field, field values, parameter names, and parameter values are case-insensitive.

We also extend the fix to cover the comparison of Via branch parameter used as transaction key to be case insensitive as well.

Change History (5)

comment:1 Changed 7 years ago by ming

  • Description modified (diff)
  • Summary changed from Fix From/To tag comparison to be case insensitive (thanks to Regis Montoya for the report) to Fix From/To tag and Via branch comparison to be case insensitive

comment:2 Changed 7 years ago by ming

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

In 4208:

Fixed #1556: Fix From/To? tag and Via branch comparison to be case insensitive

comment:3 Changed 7 years ago by nanang

In 4296:

Re #1556: Fixed hash key case insensitive comparison. This is reported to cause CANCEL request will be responded with 481 (Transaction does not exist) when the Via branch is not started with magic cookie (old SIP RFC), thanks Marcus Froeschl for the report.

comment:4 Changed 6 years ago by nanang

In 4385:

Re #1556: backported to 1.x

comment:5 Changed 6 years ago by nanang

  • Backported set
Note: See TracTickets for help on using tickets.