> 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/protocol-stack/h-248-megaco/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://prosbcdocs.telcobridges.com/telecom-references/parameter-reference/m3ua#n)
* [IP Address](https://prosbcdocs.telcobridges.com/telecom-references/parameter-reference/m3ua#i)


---

# 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/protocol-stack/h-248-megaco/adding-a-media-gateway-controller-mgc.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.
