> 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/creating-a-line-service.md).

# Creating a Line Service

> **Applies to:** Tmedia 3.0, 3.2, 3.3

A line service defines the type of paylaod that a line interface carries or it defines another line service. The configuration of a line service ends when it reaches the E1/J1/T1 line service.

The E1/T1 line services are also known as trunks or spans.

To create line service(s):

1- Select **TDM Line Interfaces** from the navigation panel

![CreateLineService 0](https://docs.telcobridges.com/w/images/d/dc/CreateLineService_0.png)

2- Select the line interface for which you would like to create a line service.

![CreateLineService 1](https://docs.telcobridges.com/w/images/1/12/CreateLineService_1.png)

3- You can create one line service at a time or multiple line services in a single pass.

3a- To create a single line service, click **Create New Child Line Service**.

![CreateLineService 1a](https://docs.telcobridges.com/w/images/3/34/CreateLineService_1a.png)

3b- To create a range of line services in a single pass, click **Create Multiple Child Line Services**.

![CreateMultipleLineService 0 A](https://docs.telcobridges.com/w/images/c/c0/CreateMultipleLineService_0_A.png)

4- Enter values for the line service.

4a- Single line service:

* Enter a **name** for the new line service
* Select an available **local index**.
* Select a **framing** mode.
* Click **Create**.

![CreateLineService 2](https://docs.telcobridges.com/w/images/3/35/CreateLineService_2.png)

4b- Multiple Line Services

* Enter a **name** for the range of line services.
* Select a renge of line interfaces for which the line services will be created. (Use the CTRL key to select individual line intefraces or the shift key to select a range.)
* Enter the number of line services you will create for the line interface. Enter 1 for T1/E1.
* Enter the starting index in **first index to create**.
* Select a **framing** mode.
* Click **Create**.

![CreateMultipleLineService 1 A](https://docs.telcobridges.com/w/images/d/dd/CreateMultipleLineService_1_A.png)

5- The new line service(s) are displayed in the **Line Services** list

![CreateLineService 3](https://docs.telcobridges.com/w/images/8/8f/CreateLineService_3.png)

**Path**

```
/configurations/@[configuration_name]/hardware_units/@[hardware_name]/tdm_line_interfaces/@[line_interface_name]/line_services/@[line_service_name]
```

**Parameters (text)**

```
/configurations/@[configuration_name]/hardware_units/@[hardware_name]/tdm_line_interfaces/@[line_interface_name]/line_services/@[line_service_name]
local_index = 0
name        = @[line_service_name]

/configurations/@[configuration_name]/hardware_units/@[hardware_name]/tdm_line_interfaces/@[line_interface_name]/line_services/@[line_service_name]/parameters
audio_companding = "AUTO"
framing          = "AUTO"
idle_code        = 85
loop_time        = false

/configurations/@[configuration_name]/hardware_units/@[hardware_name]/tdm_line_interfaces/@[line_interface_name]/line_services/@[line_service_name]/state
loopback_type = "None"
```

**Parameters (json)**

```
{
  "@[line service name]" : {
    "local_index" : 0,
    "name" : "@[line service name]",
    "parameters" : {
      "audio_companding" : "AUTO",
      "framing" : "AUTO",
      "idle_code" : 85,
      "loop_time" : false
    },
    "state" : {
      "loopback_type" : "None"
    }
  }
}
```

### List of Parameters

* [Name](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/parameters/name/README.md)
* [Type](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/parameters/type/README.md)
* [Local Index](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/parameters/local-index/README.md)
* [Length](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/parameters/length/README.md)
* [Encoding](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/parameters/encoding/README.md)

**Advanced Parameters**

* [Loop time](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/parameters/loop-time/README.md)
* [Idle code](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/parameters/idle-code/README.md)
* [Audio Companding](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/parameters/audio-companding/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/creating-a-line-service.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.
