# Glossary: SIP gateway

A SIP gateway enables the transport of Voice over Internet Protocol (VoIP) media between IP networks and the Public Switched Telephone Network (PSTN) or between disparate IP networks using the [SIP](https://docs.telcobridges.com/wiki/SIP) signaling protocol.

### SIP gateways and TelcoBridges

A TelcoBridges media gateway can be configured as a SIP gateway. The following example demonstrates how to configure a TelcoBridges media gateway to act as a SIP gateway between two SIP access points.

Note: Before proceeding, you must first have a live system running Toolpack and be able to configure it through the Web Portal. If this is not the case, see instructions for [installing and configuring](https://docs.telcobridges.com/wiki/Installing_Toolpack) Toolpack or contact TelcoBridges' [support team](https://telcobridges.com/contact-us/).

\
1\. Unlock active configuration

*This step allows you to directly modify the active configuration instead of having to create a copy and modify the copy before applying it. Please note that this should only be used for testing or development purposes. The active configuration should never be unlocked on a production system.*

* Go to the System section and click on edit to modify the system parameters.
* Make sure the Lock active configuration checkbox is cleared and click Save.

\
2\. Configure your adapter

* Go to the Hardware section and make sure your adapter is there with the right Serial Number.
* If your adapter is not there, click on Create New Hardware and complete the form.

\
3\. Create the SIP stack

* Go to the SIP section and click on Create New SIP.
* Complete the form with default values and click Create.
* Click on Create New Transport Server and fill the form. Make sure to select the IP Interface that you want to use for your SIP signaling. Click Create.
* In order to create a new SIP Access Point (SAP), click on Create New SAP, complete the form and click Create.
* Add the new Transport Server to your SAP.

\
4\. Create the NAP for your incoming phone or SIP Proxy

* Go to the [NAP](https://docs.prosbc.com/configuration-details/configuration-by-web-portal-category/network-access-points-nap) section and click on Create New NAP.
* Enter a name and click Create.
* In the SIP Service Access Points area, add your SIP SAP to this NAP.
* In the newly added SIP Specific Params area, set the Proxy Address to the IP address of your incoming phone or SIP Proxy.
* If your phone or SIP Proxy does not support availability detection using the OPTIONS method, uncheck the box Poll Remote Proxy?.
* Click Save.

\
5\. Create the NAP for your outgoing phone or SIP Proxy

* Go to the NAP section and click on Create New NAP.
* Enter a name and click Create.
* In the SIP Service Access Points area, add your SIP SAP to this NAP.
* In the newly added SIP Specific Params area, set the Proxy Address to the IP address of your outgoing phone or SIP Proxy.
* If your phone or SIP Proxy does not support availability detection using the OPTIONS method, uncheck the box Poll Remote Proxy?.
* Click Save.

\
6\. Configure your Gateway routes to forward all calls from the incomfing NAP to the outgoing NAP

* Go to the Gateway/Configurations section and click on edit.
* Go down to the Editing Routes area and click on Create New Route.
* Select your incoming NAP for NAP and your outgoing NAP for Remapped NAP.

*Note: You can create a route in the opposite direction as well by repeating the last 2 steps and inverting the incoming and outgoing NAPs.*

\
7\. Apply the new configuration

* Go to the System section and click on Edit to modify the system parameters.
* In the Activate configuration area, click on Activate.
* Verify that the new configuration was activated successfully and fix errors if any.

\
8\. Do a test call

* Using your incoming phone (IP address of this host must be the one you use when configuration the incoming proxy in step 4), place a call to '123-4567@\[SIGNALING\_IP]' where \[SIGNALING\_IP] is the IP address of the port on which you configured your SIP Signaling at step 3.
* The gateway will forward the call to the IP address of the proxy you configured in step 5.
