> For the complete documentation index, see [llms.txt](https://prosbcdocs.telcobridges.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://prosbcdocs.telcobridges.com/tmedia-documentation/configuration/configuring-lawful-interception.md).

# Configuring Lawful Interception

> **Applies to:** Tmedia 3.0, 3.2, 3.3; SBC 3.1, 3.3

**Note:** This procedure assumes that a Law Enforcement Agencies NAP has been created. Each Law Enforcement Agency requires that a NAP be configured to send the intercepted call legs. NAPs can be dedicated for lawful interceptions, or not.

Multiple Law Enforcement Agencies can be created in [Toolpack](https://telcobridges.com/products/development-platforms-tdev/). They operate independently of each other. They can intercept the same calls, as well as different ones.

**To configure a Law Enforcement Agency:**

1- Select **Lawful Interception** from the navigation panel

![ConfigureLawfulInterception 0](https://docs.telcobridges.com/w/images/1/17/ConfigureLawfulInterception_0.png)

2- Enter an Indentifier for the Network Operator.

* Click **Save**

3- Create a Lawful Agency

* Click **Create New Lawful Agency**

![ConfigureLawfulInterception 1](https://docs.telcobridges.com/w/images/6/6a/ConfigureLawfulInterception_1.png)

4- Configure the Lawful Agency parameters:

* Click **Save**.

![ConfigureLawfulInterception 2](https://docs.telcobridges.com/w/images/6/6b/ConfigureLawfulInterception_2.png)

5- Verify that the **Law Enforcement Agent was successfully created** message is displayed.

![ConfigureLawfulInterception 3](https://docs.telcobridges.com/w/images/9/95/ConfigureLawfulInterception_3.png)

**Path**

```
/configurations/@[configuration_name]/lawful_interceptions/?/law_enforcement_agencies/@[law_enforcement]
```

**Parameters (text)**

```
/configurations/@[configuration_name]/lawful_interceptions/?/law_enforcement_agencies/@[law_enforcement]
called_number              = ""
calling_number             = ""
destination_nap            = "IP_Tel"
name                       = "@[law_enforcement]"
targets_definition_file    = ""

/configurations/@[configuration_name]/lawful_interceptions/?/law_enforcement_agencies/@[law_enforcement]/iri_records_upload_options
backup_iri_records_locally               = false
connection_timeout                       = "15 seconds"
file_name_prefix                         = "ABXY"
iri_records_queue_length                 = 100
iri_upload_mode                          = "Grouped"
maximum_grouped_file_delay_before_upload = "15 seconds"
maximum_grouped_file_upload_size         = "64 KB"
protocol_type                            = "FTP"
server_address                           = "24.23.22.21"
server_directory                         = "/var/log/interceoted"
server_password                          = "Not Shown"
server_port                              = 21
server_user_name                         = "ServerA"
```

**Parameters (json)**

```
{
  "called_number" : "",
  "calling_number" : "",
  "destination_nap" : "IP_Tel",
  "iri_records_upload_options" : {
    "***meta***" : {
      "valid_url" : false
    },
    "backup_iri_records_locally" : false,
    "connection_timeout" : "15 seconds",
    "file_name_prefix" : "ABXY",
    "iri_records_queue_length" : 100,
    "iri_upload_mode" : "Grouped",
    "maximum_grouped_file_delay_before_upload" : "15 seconds",
    "maximum_grouped_file_upload_size" : "64 KB",
    "protocol_type" : "FTP",
    "server_address" : "24.23.22.21",
    "server_directory" : "/var/log/interceoted",
    "server_password" : "Not Shown",
    "server_port" : 21,
    "server_user_name" : "ServerA"
  },
  "name" : "@[law_enforcement]",
  "targets_definition_file" : ""
}
```

### List of Parameters

* [Name](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/parameters/li-name/README.md)
* [FTP Server Address](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/parameters/ftp-server-address/README.md)
* [FTP User Name](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/parameters/ftp-user-name/README.md)
* [FTP Server Password](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/parameters/ftp-server-password/README.md)
* [FTP Server Directory](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/parameters/ftp-server-directory/README.md)
* [IRI Records Queue Length](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/parameters/iri-records-queue-length/README.md)
* [IRI Upload Mode](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/parameters/iri-upload-mode/README.md)
* [Maximum grouped file delay before upload](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/parameters/maximum-grouped-file-delay-before-upload/README.md)
* [Maximum grouped file upload size](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/parameters/maximum-grouped-file-upload-size/README.md)
* [File name prefix](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/parameters/file-name-prefix/README.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://prosbcdocs.telcobridges.com/tmedia-documentation/configuration/configuring-lawful-interception.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
