> 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/adding-a-media-gateway-controller-mgc.md).

# Adding a Media Gateway Controller (MGC)

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

After you create an H.248 configuration, you must create a new media gateway controller (MGC).

A Media Gateway Controller (MGC) is a system used in VoIP architectures to control a number of Media Gateway terminals.

1- Click **H248** in the navigation panel

![Create H248 0](https://docs.telcobridges.com/w/images/7/7e/Create_H248_0.png)

2- Click **Create New H248 MGC** in the H.248 configuration window

![Create MGC 1](https://docs.telcobridges.com/w/images/5/59/Create_MGC_1.png)

3- Configure the new MGC:

* Enter a **name** for the MGC
* Enter an **IP address**
* Click **Create**

![Create MGC 2](https://docs.telcobridges.com/w/images/2/2a/Create_MGC_2.png)

4- Verify that the **"h248\_mgc\_cfg was successfully created"** message appears

![Create MGC 3](https://docs.telcobridges.com/w/images/f/f3/Create_MGC_3.png)

**Path**

```
/configurations/@[configuration_name]/h248_stacks/@[h248_stack]/h248_media_gateway_controllers/@[h248_gateway_controller]
```

**Parameters (text)**

```
/configurations/@[configuration_name]/h248_stacks/@[h248_stack]/h248_media_gateway_controllers/@[h248_gateway_controller]
ip_address                     = "@[address_number]"
name                           = "@[h248_gateway_controller]"
port_to_send_for_text_encoding = @[port_number]
position                       = 1
```

**Parameters (json)**

```
{
  "ip_address" : "@[address_number]",
  "name" : "@[h248_gateway_controller]",
  "port_to_send_for_text_encoding" : @[port_number],
  "position" : 1
}
```

### List of Parameters

* [Name](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/parameters/name/README.md)
* [IP Address](https://github.com/telcobridges-main/tmedia-wiki/tree/main/reference/parameters/ip-address/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/adding-a-media-gateway-controller-mgc.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.
