# US 2022/0046119 A1 · Handling sip messages with malformed header fields

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0046119 A1
- Document ID: US20220046119A1
- Status: Published application
- Kind: A1
- Application number: 16/989,649
- Filed: 2020-08-10
- Published: 2022-02-10
- Earliest claimed: 2020-08-10
- Assignees: T-Mobile USA, Inc.
- Applicants: T-Mobile USA, Inc.
- Inventors: Karthik Chandrasekaran
- Web page: https://patentgrep.com/patent/US20220046119A1

## CPC

- H04L 69/22: Parsing or analysis of headers
- H04L 65/1016: IP multimedia subsystem [IMS]
- H04L 65/1069: Session establishment or de-establishment
- H04L 65/1073: Registration or de-registration
- H04L 65/1104: Session initiation protocol [SIP]
- H04L 65/80: Responding to QoS
- H04L 69/40: for recovering from a failure of a protocol instance or entity, e.g. service redundancy protocols, protocol state redundancy or protocol service redirection (management of faults, events, alarms or notifications in data switching networks H04L41/06)
- H04W 4/90: Services for handling of emergency or hazardous situations, e.g. earthquake and tsunami warning systems [ETWS]
- H04L 69/24: Negotiation of communication capabilities
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)
- H04W: WIRELESS COMMUNICATION NETWORKS (broadcast communication H04H; communication systems using wireless links for non-selective communication, e.g. wireless extensions H04M1/72)

## Abstract

Described herein are techniques, devices, and systems for handling Session Initiation Protocol (SIP) messages with malformed header fields. A communication device that receives a SIP message from an additional communication device may identify one or more identified header fields of a plurality of first header fields in a message header of the SIP message that correspond to (e.g., match) one or more second header fields in a list of second header fields accessible to the communication device. If the communication device determines that the one or more identified header fields are not malformed, the communication device may process the SIP message without regard to remaining header fields in the message header. If, however, the communication device determines that at least one identified header field of the one or more identified header fields is malformed, the communication device may reject the SIP message.

## Claims

### Claim 1

A communication device comprising:
one or more processors; and
memory storing computer-executable instructions that, when executed by the one or more processors, cause the communication device to:
receive a Session Initiation Protocol (SIP) message from an additional communication device, the SIP message including a message header that includes a plurality of first header fields;
identify, as one or more identified header fields, a subset of the plurality of first header fields that match one or more second header fields in a list of second header fields accessible to the communication device;
determine that the one or more identified header fields are not malformed without determining whether remaining header fields of the plurality of first header fields are malformed; and
process the SIP message based at least in part on determining that the one or more identified header fields are not malformed.

### Claim 2 (depends on 1)

The communication device of claim 1, wherein determining that the one or more identified header fields are not malformed comprises:
comparing a syntax of each header field of the one or more identified header fields to a corresponding reference syntax; and
determining that the syntax matches the corresponding reference syntax.

### Claim 3 (depends on 1)

The communication device of claim 1, wherein:
the communication device is an Internet Protocol Multimedia Subsystem (IMS) node of an IMS network; and
the additional communication device is at least one of an additional IMS node or a user equipment (UE).

### Claim 4 (depends on 3)

The communication device of claim 3, wherein processing the SIP message includes forwarding the SIP message to at least one of a downstream IMS node or a public safety answering point (PSAP) to establish an emergency call.

### Claim 5 (depends on 1)

The communication device of claim 1, wherein:
processing the SIP message includes forwarding the SIP message to a downstream communication device; and
the computer-executable instructions, when executed by the one or more processors, further cause the communication device to:
exchange capability information with the downstream communication device; and
determine, based at least in part on exchanging the capability information, that the downstream communication device will not reject the SIP message based on any of the remaining header fields being malformed.

### Claim 6 (depends on 1)

The communication device of claim 1, wherein:
the list of second header fields is a first list associated with emergency calls;
the memory further stores a second list of header fields associated with non-emergency calls, the second list different from the first list; and
the computer-executable instructions, when executed by the one or more processors, further cause the communication device to determine that the SIP message is associated with an emergency call,
wherein identifying the subset comprises identifying the subset of the plurality of first header fields that match one or more second header fields in the first list.

### Claim 7 (depends on 1)

The communication device of claim 1, wherein the list is stored in the memory, and wherein the computer-executable instructions, when executed by the one or more processors, further cause the communication device to:
receive an updated list of header fields that omits at least one of the second header fields in the list; and
store the updated list in the memory for use in processing future SIP messages.

### Claim 8

A method comprising:
receiving, by a communication device, from an additional communication device, a Session Initiation Protocol (SIP) message that includes a plurality of first header fields in a message header of the SIP message;
identifying, by the communication device, one or more identified header fields of the plurality of first header fields that correspond to one or more second header fields in a list of second header fields accessible to the communication device;
determining, by the communication device, that the one or more identified header fields are not malformed without determining whether remaining header fields of the plurality of first header fields are malformed; and
processing, by the communication device, the SIP message based at least in part on the determining that the one or more identified header fields are not malformed.

### Claim 9 (depends on 8)

The method of claim 8, wherein the determining that the one or more identified header fields are not malformed comprises, for an individual header field of the one or more identified header fields:
comparing a syntax of the individual header field to a corresponding reference syntax; and
determining that the syntax matches the corresponding reference syntax.

### Claim 10 (depends on 8)

The method of claim 8, wherein:
the communication device is an Internet Protocol Multimedia Subsystem (IMS) node of an IMS network; and
the additional communication device is at least one of an additional IMS node or a user equipment (UE).

### Claim 11 (depends on 10)

The method of claim 10, wherein the processing of the SIP message includes forwarding the SIP message to a downstream IMS node or a public safety answering point (PSAP) to establish an emergency call.

### Claim 12 (depends on 8)

The method of claim 8, wherein:
the processing of the SIP message includes forwarding the SIP message to a downstream communication device; and
the method further comprises:
exchanging, by the communication device, capability information with the downstream communication device; and
determining, by the communication device, and based at least in part on the exchanging of the capability information, that the downstream communication device will not reject the SIP message based on any of the remaining header fields being malformed.

### Claim 13 (depends on 8)

The method of claim 8, wherein:
the list of second header fields is a first list associated with emergency calls;
a second list of header fields associated with non-emergency calls is also accessible to the communication device, the second list different from the first list; and
the method further comprises determining, by the communication device, that the SIP message is associated with an emergency call,
wherein the identifying of the one or more identified header fields comprises identifying the one or more identified header fields that correspond to the one or more second header fields in the first list.

### Claim 14 (depends on 8)

The method of claim 8, further comprising:
monitoring a call failure metric over a period of time while the list of second header fields are being used to process SIP messages;
reporting the call failure metric to a server computer;
receiving an updated list of header fields that omits at least one header field of the second header fields in the list of second header fields; and
using the updated list to process future SIP messages.

### Claim 15

One or more non-transitory computer-readable media storing computer-executable instructions that, when executed by one or more processors, cause the one or more processors to:
receive a Session Initiation Protocol (SIP) message that includes a plurality of first header fields in a message header of the SIP message;
identify one or more identified header fields of the plurality of first header fields that correspond to one or more second header fields in a list of second header fields;
analyze the one or more identified header fields to determine whether any of the one or more identified header fields are malformed without analyzing remaining header fields of the plurality of first header fields to determine whether the remaining header fields are malformed;
determine that at least one identified header field of the one or more identified header fields is malformed; and
reject the SIP message based at least in part on the determining that the at least one identified header field is malformed.

### Claim 16 (depends on 15)

The one or more non-transitory computer-readable media of claim 15, wherein analyzing the at least one identified header field comprises:
comparing a syntax of the at least one identified header field to a corresponding reference syntax; and
determining that the syntax does not match the corresponding reference syntax.

### Claim 17 (depends on 15)

The one or more non-transitory computer-readable media of claim 15, wherein the SIP message is received:
by an Internet Protocol Multimedia Subsystem (IMS) node of an IMS network; and
from at least one of an additional IMS node or a user equipment (UE).

### Claim 18 (depends on 15)

The one or more non-transitory computer-readable media of claim 15, wherein the computer-executable instructions, when executed by the one or more processors, further cause the one or more processors to:
exchange capability information with a downstream communication device to which the SIP message is to be forwarded; and
determine, based at least in part on exchanging the capability information, that the downstream communication device will not reject the SIP message based on any of the remaining header fields being malformed.

### Claim 19 (depends on 15)

The one or more non-transitory computer-readable media of claim 15, wherein:
the list of second header fields is a first list of multiple different lists that include at least:
the first list associated with emergency calls; and
a second list of header fields associated with non-emergency calls, the second list different from the first list; and
the computer-executable instructions, when executed by the one or more processors, further cause the one or more processors to determine that the SIP message is associated with an emergency call,
wherein identifying the one or more identified header fields comprises identifying the one or more identified header fields that correspond to the one or more second header fields in the first list.

### Claim 20 (depends on 15)

The one or more non-transitory computer-readable media of claim 15, wherein the computer-executable instructions, when executed by the one or more processors, further cause the one or more processors to:
monitor a call failure metric over a period of time while the list of second header fields are being used to process SIP messages;
report the call failure metric to a server computer;
receive an updated list of header fields that omits at least one header field of the second header fields in the list of second header fields; and
using the updated list to process future SIP messages.
