# 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="/pages/-LVecu-zhg2FLBWwZe61" %}
[Creating SIP Account](/sip-trunking/sip-account.md)
{% 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>

![](/files/-LWT7Qav4NnNkAB-1U1i)

![](/files/-LWT7SxiYemCdjJTorCD)

**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.

![](/files/-LWT7VZSZ8zg-LUWfp2u)

**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 %}

![](/files/-LWT7_Ik-rbqo1W6rkAS)

**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**.

![](/files/-LWT7bB1tl8IusHAXXDl)

**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.**

![](/files/-LWwMarCwxqYZXNl4Kyi)

![](/files/-LWwMhkeyvpFI7EDWHos)

![](/files/-LWwMyGwgH9raO1dXcX8)

**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.

![](/files/-LWwN4Nsv2kFKTqzZ6s9)

![](/files/-LWwN6XpBZXBv5SG8F4O)

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

![](/files/-LWwN8PWEieoza3ejkiH)

![](/files/-LWwNApg9qPOJy0rmtxR)


---

# Agent Instructions: 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:

```
GET https://docs.didforsale.com/sip-trunking/sip-trunking/3cx-configuration-guide/sip-based.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
