# SIP-based Configuration

First, begin with adding a SIP account by logging in to your DIDforSale Customer Portal.&#x20;

Follow this link for how to add a SIP account :

{% content-ref url="../../sip-account" %}
[sip-account](https://docs.didforsale.com/sip-trunking/sip-account)
{% endcontent-ref %}

Now, login to your 3CX web portal to configure the trunks.

**Step 1**: To create a SIP trunks, click on SIP Trunks>Add Sip Trunk. Select country as **Generic** and providers as **Generic** **SIP** **Trunk**. Enter the Main Trunk No as your DID number as shown below and click on **OK**.<br>

![](https://4161683604-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LUHjv4EwOoqWXb2by8A%2F-LWT7MyravTY6bho_ij_%2F-LWT7Qav4NnNkAB-1U1i%2F3cxsip_1.png?alt=media\&token=eb6b398e-d1f3-4d3e-a56f-c8897f486ebb)

![](https://4161683604-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LUHjv4EwOoqWXb2by8A%2F-LWT7MyravTY6bho_ij_%2F-LWT7SxiYemCdjJTorCD%2F3cxsip_2.png?alt=media\&token=eda87c0a-db19-432e-b5b3-88a8550754bc)

**Step 2**: Enter **name for Trunk** as Generic SIP, **Registrar/Server/Gateway Hostname** as sip.la2.didforsale.com\*, **Outbound Proxy** as sip.la2.didforsale.com\*, **Number of SIM Calls** as 10, **SIP server port** 5060.

![](https://4161683604-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LUHjv4EwOoqWXb2by8A%2F-LWT7MyravTY6bho_ij_%2F-LWT7VZSZ8zg-LUWfp2u%2F3cx_3.png?alt=media\&token=ff268b22-4115-406f-8da6-569b15ff7959)

**Step 3**:For Authentication, enter **Type of Authentication\*** as register/Account based, **Authentication ID(aka SIP User ID)\***, and **Authentication Password\***. Route calls to the main trunk number.

{% hint style="info" %}
\*You will be receiving SIP Account credentials via email once you register SIP account with us.
{% endhint %}

![](https://4161683604-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LUHjv4EwOoqWXb2by8A%2F-LWT7MyravTY6bho_ij_%2F-LWT7_Ik-rbqo1W6rkAS%2F3cx_4.png?alt=media\&token=bbf84ed2-be51-42a6-acc3-2b81d1df1c60)

**Step 4**: Fill in the rest of the details as shown in the image below. You can route calls to extension, IVR, Fax Extension, or any external number.

Scroll up the same window and click **OK**.

![](https://4161683604-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LUHjv4EwOoqWXb2by8A%2F-LWT7MyravTY6bho_ij_%2F-LWT7bB1tl8IusHAXXDl%2F3cx_5.png?alt=media\&token=a5254493-d911-4ca2-9cea-c4615d25f124)

**Routing** **Inbound** **routes**

**Step 6:** To create a inbound routes, click on Add DID Rule. Under **General**, enter **Name** as inbound rule name and **DID/DDI** as your DID number as shown below.

**Under Route calls to,**  set **Destination for calls during and after office hours.**

Click on **OK.**

![](https://4161683604-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LUHjv4EwOoqWXb2by8A%2F-LWwMK9ufWSczheqg8Yh%2F-LWwMarCwxqYZXNl4Kyi%2Fin_1.png?alt=media\&token=6d6fe14e-0717-4121-8197-45ef18565966)

![](https://4161683604-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LUHjv4EwOoqWXb2by8A%2F-LWwMK9ufWSczheqg8Yh%2F-LWwMhkeyvpFI7EDWHos%2Fin_2.png?alt=media\&token=5779865a-dfd7-4642-9bdf-59d4eccde264)

![](https://4161683604-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LUHjv4EwOoqWXb2by8A%2F-LWwMK9ufWSczheqg8Yh%2F-LWwMyGwgH9raO1dXcX8%2Fin_3.png?alt=media\&token=59fb2777-1295-4668-a5cc-d1bfb7a76022)

**Routing Outbound routes**

**Step 7:** To create an outbound route, click on **+Add**. Under **General**, enter **Rule** **Name** as dfs\_out and under **Apply this rule to these calls** you can route calls to extension or a number.

![](https://4161683604-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LUHjv4EwOoqWXb2by8A%2F-LWwMK9ufWSczheqg8Yh%2F-LWwN4Nsv2kFKTqzZ6s9%2Fout_1.png?alt=media\&token=978f2e5b-775a-4504-9e64-0394036254a2)

![](https://4161683604-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LUHjv4EwOoqWXb2by8A%2F-LWwMK9ufWSczheqg8Yh%2F-LWwN6XpBZXBv5SG8F4O%2Fout_2.png?alt=media\&token=dce16de4-f556-4805-8cc5-2ff4e2b9d90c)

Configure upto 5 backup routes for outgoing calls under "**Make outbound call on"** and click on **OK** once done.

![](https://4161683604-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LUHjv4EwOoqWXb2by8A%2F-LWwMK9ufWSczheqg8Yh%2F-LWwN8PWEieoza3ejkiH%2Fout_3.png?alt=media\&token=27f8527f-6711-4185-8e30-9ca172409aa4)

![](https://4161683604-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LUHjv4EwOoqWXb2by8A%2F-LWwMK9ufWSczheqg8Yh%2F-LWwNApg9qPOJy0rmtxR%2Fout_4.png?alt=media\&token=9e5d2460-a3fe-4205-a33b-7223592988d8)
