> 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/web-portal-3-3/lawful-intercept/lawful-interception/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. 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://tmediadocs.telcobridges.com/telecom-references/parameter-reference/other#l)
* [FTP Server Address](https://tmediadocs.telcobridges.com/telecom-references/parameter-reference/ip-network#f)
* [FTP User Name](https://tmediadocs.telcobridges.com/telecom-references/parameter-reference/other#f)
* [FTP Server Password](https://tmediadocs.telcobridges.com/telecom-references/parameter-reference/security#f)
* [FTP Server Directory](https://tmediadocs.telcobridges.com/telecom-references/parameter-reference/other#f)
* [IRI Records Queue Length](https://tmediadocs.telcobridges.com/telecom-references/parameter-reference/other#i)
* [IRI Upload Mode](https://tmediadocs.telcobridges.com/telecom-references/parameter-reference/other#i)
* [Maximum grouped file delay before upload](https://tmediadocs.telcobridges.com/telecom-references/parameter-reference/other#m)
* [Maximum grouped file upload size](https://tmediadocs.telcobridges.com/telecom-references/parameter-reference/other#m)
* [File name prefix](https://tmediadocs.telcobridges.com/telecom-references/parameter-reference/routing#f)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
