# US 2015/0149647 A1 · Systems and Methods for Providing Context to SIP Messages

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

- Number: US 2015/0149647 A1
- Document ID: US20150149647A1
- Status: Published application
- Kind: A1
- Application number: 14/087,280
- Filed: 2013-11-22
- Published: 2015-05-28
- Earliest claimed: 2013-11-22
- Assignees: Genband US LLC
- Applicants: Genband US LLC
- Inventors: Paul Phillips; Ian Macfariane
- Web page: https://patentgrep.com/patent/US20150149647A1

## CPC

- H04L 65/1104: Session initiation protocol [SIP]
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

Systems, methods, and computer program products are provided for providing context through a scripting-type programming language to data included in a SIP message. The method includes defining one or more contexts through a scripting-type computer programming language. The one or more contexts reference a particular pre-defined portion of a SIP message and are provided by the scripting-type computer programming language. A series of SIP messages may then be received, where each SIP message in the series belongs to the same SIP message flow. After a particular SIP message in the series is received, the message is parsed to identify whether it includes any portion of data that can be referenced via one or more contexts. Any particular portion of data that can be referenced via a context is associated with a respective context such that the respective portion of data can be referenced by the context.

## Claims

### Claim 1

A computer-implemented method for providing context through a scripting-type programming language to data included in a Session Initiation Protocol (SIP) message comprising:
providing one or more contexts through a scripting-type computer programming language, wherein the one or more contexts reference a particular pre-defined portion of a SIP message;
receiving, by at least one processor, a series of SIP messages, wherein each SIP message in the series belongs to the same SIP message flow;
after a particular SIP message in the series is received, parsing the particular message to identify whether the particular SIP message includes any portion of data that can be referenced via one or more contexts; and
for each respective portion of data that can be referenced via a context, associating a respective context with each respective portion of data such that the respective portion of data can be referenced by the context.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein each context is a pointer that references the memory location of the respective portion of data that it is associated with.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein a particular context includes a sub-context that is associated with a particular sub-portion of the respective portion of data.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, further comprising:
defining one or more variables, where each variable is includes state data of the SIP message flow; and
modifying the one or more variables based on a particular context.

### Claim 5 (depends on 4)

The computer-implemented method of claim 4, wherein modifying the one or more variables includes storing data associated with a particular context at a memory location referenced by a particular variable.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein a particular context is associated with a header field of a particular SIP message.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, further comprising:
defining one or more variables, where each variable is includes state data of the SIP message flow; and
modifying the portion of data associated with a particular context based on state data stored at a particular variable.

### Claim 8 (depends on 7)

The computer-implemented method of claim 7, wherein modifying the portion of data includes modifying a portion of a header field of a SIP message to include state data stored in a particular variable.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein parsing the particular message includes applying a message overlay to the particular message to determine the one or more contexts for the particular message.

### Claim 10

A computer system for providing context through a scripting-type programming language to data included in a Session Initiation Protocol (SIP) message comprising:
a rule definition engine configured to provide one or more contexts through a scripting-type computer programming language, wherein the one or more contexts reference a particular pre-defined portion of a SIP message;
a rule processor configured to:
receive a series of SIP messages, wherein each SIP message in the series belongs to the same SIP message flow;
after a particular SIP message in the series is received, parse the particular message to identify whether the particular message includes any portion of data that can be referenced via one or more contexts; and
for each respective portion of data that can be referenced via a context, associate a respective context with each respective portion of data such that the respective portion of data can be referenced by the context.

### Claim 11 (depends on 10)

The computer system of claim 10, wherein each context is a pointer that references the memory location of the respective portion of data that it is associated with.

### Claim 12 (depends on 10)

The computer system of claim 10, wherein a particular context includes a sub-context that is associated with a particular sub-portion of the respective portion of data.

### Claim 13 (depends on 10)

The computer system of claim 10, wherein:
the rule definition engine is further configured to define one or more variables, where each variable is configured to store state data based on the SIP message flow; and
the rule processor is further configured to modify the one or more variables based on accessing data referenced by a particular context.

### Claim 14 (depends on 13)

The computer system of claim 13, wherein the rule processor is further configured to store data associated with a particular context at a memory location referenced by a particular variable.

### Claim 15 (depends on 10)

The computer system of claim 10, wherein a particular context is associated with a header field of a particular SIP message.

### Claim 16 (depends on 10)

The computer system of claim 10, wherein:
the rule definition engine is further configured to define one or more variables that are each configured to store state data of a SIP message flow; and
the rule processor is further configured to modify the portion of data in a SIP message associated with a particular context based on state data stored at a particular variable.

### Claim 17 (depends on 17)

The computer-implemented method of claim 17, wherein the rule processor is further configured to modify a portion of a header field of a SIP message to include state data stored in a particular variable.

### Claim 18 (depends on 1)

The computer-implemented method of claim 1, wherein the rule processor is further configured to apply a message overlay to the particular message to determine the one or more contexts for the particular message.

### Claim 19

A session boarder controller that provides context to data in a Session Initiation Protocol (SIP) message through a scripting-type programming language comprising:
a rule definition engine configured to:
provide one or more pre-defined contexts by a scripting-type computer programming language, wherein the contexts are each configured to allow a rule to reference a particular portion of a SIP message; and
a rule processor configured to:
receive a SIP message flow, wherein the SIP message flow includes one or more SIP messages that are received in series;
parse each SIP message as it is received in order to identify whether a particular SIP message activates a trigger included in a particular rule;
for each SIP message that triggers the particular rule, apply a context overlay to the SIP message such that each context included in the particular rule is references its associated portion of the SIP message.

### Claim 20 (depends on 19)

The session boarder controller of claim 19, wherein the rule definition engine is further configured to a provide a user interface configured to receive rules entered by a user, the rules including triggers and actions to be applied to SIP messages and uses contexts for referencing particular portions of the SIP messages;
