# US 2021/0344727 A1 · Call direction detection on SIP IMS

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

- Number: US 2021/0344727 A1
- Document ID: US20210344727A1
- Status: Published application
- Kind: A1
- Application number: 17/241,205
- Filed: 2021-04-27
- Published: 2021-11-04
- Earliest claimed: 2020-04-29
- Assignees: EXFO Solutions SAS
- Applicants: EXFO Solutions SAS
- Inventors: Manuel CISSE; Christophe GAY
- Web page: https://patentgrep.com/patent/US20210344727A1

## CPC

- H04L 65/1016: IP multimedia subsystem [IMS]
- H04L 63/0435: {wherein the sending and receiving network entities apply symmetric encryption, i.e. same key used for encryption and decryption (cryptographic mechanisms or cryptographic arrangements for symmetric key encryption H04L9/06)}
- H04L 65/1045: Proxies, e.g. for session initiation protocol [SIP]
- H04L 65/1083: In-session procedures
- 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 and methods for call direction detection on Session Initiation Protocol (SIP) Internet Protocol (IP) Multimedia Subsystem (IMS) include monitoring SIP register messages, such as “401 UNAUTHORIZED” messages inside the IMS core to detect and log the IP addresses of the Proxy-Call Session Control Function (P-CSCF). The systems and methods include monitoring SIP registration messages; determining and storing addresses of P-CSCFs based on the monitoring of the SIP registration messages, wherein P-CSCF addresses are determined from any SIP registration messages having cipher or encryption keys therein; monitoring SIP INVITE messages; and, for a specific call associated with a SIP INVITE message, determining a direction of the specific call based on a comparison of address in the SIP INVITE messages with the stored addresses of the P-CSCFs.

## Claims

### Claim 1

A non-transitory computer-readable medium having instructions stored thereon for programming a processing device to perform steps of:
monitoring Session Initiation Protocol (SIP) registration messages;
determining and storing addresses of Proxy-Call Session Control Functions (P-CSCFs) based on the monitoring of the SIP registration messages, wherein P-CSCF addresses are determined from any SIP registration messages having cipher or encryption keys therein;
monitoring SIP INVITE messages; and
for a specific call associated with a SIP INVITE message, determining a direction of the specific call based on a comparison of address in the SIP INVITE messages with the stored addresses of the P-CSCFs.

### Claim 2 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the monitoring of both the SIP registration messages and the SIP INVITE messages is in an Internet Protocol (IP) Multimedia Subsystem (IMS) core and excludes messages on a Gm interface.

### Claim 3 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the monitoring of both the SIP registration messages and the SIP INVITE messages is in any of an Internet Protocol (IP) Multimedia Subsystem (IMS) core and a Gm interface.

### Claim 4 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the determining the addresses of the P-CSCFs is based on Internet Protocol (IP) addresses in 401 UNAUTHORIZED messages of the SIP registration messages, with the cipher or encryption keys therein.

### Claim 5 (depends on 4)

The non-transitory computer-readable medium of claim 4, wherein the 401 UNAUTHORIZED messages of the SIP registration messages used for determining the P-CSCFs include only two VIA headers to distinguish between the 401 UNAUTHORIZED messages destined for the P-CSCFs and Interrogating-Call Session Control Functions (I-CSCFs).

### Claim 6 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the comparison of address in the SIP INVITE messages determines whether a destination address and/or source address match one of the stored addresses of the P-CSCFs,
wherein when the destination address matches one of the stored addresses, the specific call is a terminating call, and
wherein when the source address matches one of the stored addresses, the specific call is an originating call.

### Claim 7 (depends on 1)

The non-transitory computer-readable medium of claim 1, wherein the steps further include
marking the specific call as mobile terminating if a destination address in the SIP INVITE message matches one of the stored addresses; and
marking the specific call as mobile originating if a source address in the SIP INVITE message matches one of the stored addresses.

### Claim 8

A method comprising:
monitoring Session Initiation Protocol (SIP) registration messages;
determining and storing addresses of Proxy-Call Session Control Functions (P-CSCFs) based on the monitoring of the SIP registration messages, wherein P-CSCF addresses are determined from any SIP registration messages having cipher or encryption keys therein;
monitoring SIP INVITE messages; and
for a specific call associated with a SIP INVITE message, determining a direction of the specific call based on a comparison of address in the SIP INVITE messages with the stored addresses of the P-CSCFs.

### Claim 9 (depends on 8)

The method of claim 8, wherein the monitoring of both the SIP registration messages and the SIP INVITE messages is in an Internet Protocol (IP) Multimedia Subsystem (IMS) core and excludes messages on a Gm interface.

### Claim 10 (depends on 8)

The method of claim 8, wherein the monitoring of both the SIP registration messages and the SIP INVITE messages is in any of an Internet Protocol (IP) Multimedia Subsystem (IMS) core and a Gm interface.

### Claim 11 (depends on 8)

The method of claim 8, wherein the determining the addresses of the P-CSCFs is based on Internet Protocol (IP) addresses in 401 UNAUTHORIZED messages of the SIP registration messages, with the cipher or encryption keys therein.

### Claim 12 (depends on 11)

The method of claim 11, wherein the 401 UNAUTHORIZED messages of the SIP registration messages used for determining the P-CSCFs include only two VIA headers to distinguish between the 401 UNAUTHORIZED messages destined for the P-CSCFs and Interrogating-Call Session Control Functions (I-CSCFs).

### Claim 13 (depends on 8)

The method of claim 8, wherein the comparison of address in the SIP INVITE messages determines whether a destination address and/or source address match one of the stored addresses of the P-CSCFs,
wherein when the destination address matches one of the stored addresses, the specific call is a terminating call, and
wherein when the source address matches one of the stored addresses, the specific call is an originating call.

### Claim 14 (depends on 8)

The method of claim 8, further comprising
marking the specific call as mobile terminating if a destination address in the SIP INVITE message matches one of the stored addresses; and
marking the specific call as mobile originating if a source address in the SIP INVITE message matches one of the stored addresses.

### Claim 15

A processing device comprising:
one or more processors; and
memory storing instructions that, when executed, cause the one or more processors to
obtain monitored Session Initiation Protocol (SIP) registration messages;
determine and store addresses of Proxy-Call Session Control Functions (P-CSCFs) based on the monitoring of the SIP registration messages, wherein P-CSCF addresses are determined from any SIP registration messages having cipher or encryption keys therein;
obtain monitored SIP INVITE messages; and
for a specific call associated with a SIP INVITE message, determine a direction of the specific call based on a comparison of address in the SIP INVITE messages with the stored addresses of the P-CSCFs.

### Claim 16 (depends on 15)

The processing device of claim 15, wherein the monitored SIP registration messages and the monitored SIP INVITE messages are from an Internet Protocol (IP) Multimedia Subsystem (IMS) core and exclude messages on a Gm interface.

### Claim 17 (depends on 15)

The processing device of claim 15, wherein the monitored SIP registration messages and the monitored SIP INVITE messages are from any of an Internet Protocol (IP) Multimedia Subsystem (IMS) core and a Gm interface.

### Claim 18 (depends on 15)

The processing device of claim 15, wherein the determining the addresses of the P-CSCFs is based on Internet Protocol (IP) addresses in 401 UNAUTHORIZED messages of the SIP registration messages, with the cipher or encryption keys therein.

### Claim 19 (depends on 18)

The processing device of claim 18, wherein the 401 UNAUTHORIZED messages of the SIP registration messages used for determining the P-CSCFs include only two VIA headers to distinguish between the 401 UNAUTHORIZED messages destined for the P-CSCFs and Interrogating-Call Session Control Functions (I-CSCFs).

### Claim 20 (depends on 15)

The processing device of claim 15, wherein the comparison of address in the SIP INVITE messages determines whether a destination address and/or source address match one of the stored addresses of the P-CSCFs,
wherein when the destination address matches one of the stored addresses, the specific call is a terminating call, and
wherein when the source address matches one of the stored addresses, the specific call is an originating call.
