# dnl\_softswitch

This is the main switch service that you need to configure for call routing.  Here is how you confgure:

```
cd /opt/denovo_v6/dnl_softswitch/conf
vi dnl_softswitch.conf

```

Each one of the dnl\_*softswtich* instance *must have a unique identifier.  This switch\_*&#x6E;ame needs to be changed on every next switch, it can be changed on all, but it is not requirement for first one. it is because each switch on each server needs to have its unique name in order to function properly.

```
switch_name = class4 
```

This following parameter is to be changed to the ip address where database is installed:

```
[db]
db_host = 127.0.0.1

```

This needs to be changed to the ip address accessible to the UI and api ( it may be private ip if servers have private network established).

```
[CLI]
cli_listen_ip = 127.0.0.1

```

This needs to be changed to the ip address on which dnl\_livecall is set to listen to (also can be from private ip range if there is such setup)

```
[livecall] 
livecall_server_ip = 127.0.0.1
```

This username is also unique and needs to be changed on each additional switch. Also for this to work after change is done, new user needs to be inserted into database in the table c4\_livecall\_users.

```
livecall_login_user = class4  
```

After you finish configuring dnl\_softswitch, you can restart it with the following command:

```
systemctl restart dnl_softswitch
```

You can check if the switch is running with the following command:

```
systemctl status dnl_softswitch
```

Then, you should check if dnl\_softswitch is listening on port 5060:

```
netstat -anp |grep 5060
```

## Binding dnl\_softswitch to port 5060&#x20;

When dnl\_softswitch is first started, it does not automatically listen on port 5060 for SIP traffic.  You need to configure it in the UI. &#x20;

To do so, you first go to the VoIP Gateway page:

![](https://4102392624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXPCJcszvw7MAuHjiRr%2Fuploads%2FLxWLZtTjaO1GqtZzAzIA%2Fimage.png?alt=media\&token=e4864882-c122-473d-a76c-4f00b9c170ad)

Inside VoIP Gateway, you will see the live instance of VoIP switch:

![](https://4102392624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXPCJcszvw7MAuHjiRr%2Fuploads%2FGNXMpnjgNcwWFaORnNJF%2Fimage.png?alt=media\&token=58b18b1a-3314-4a01-8237-3002195903ec)

You can see in the above image that this setup has one dnl\_softswitch instance running.  You need to add SIP Profile under this instance by clicking on ![](https://4102392624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXPCJcszvw7MAuHjiRr%2Fuploads%2FrfXgl7dEEwSblBuZ3l5p%2Fimage.png?alt=media\&token=388059ff-c13b-462a-828a-9aceecde59ab) icon.   Each SIP Profile represents the SIP IP that dnl\_softswitch is listening on.  Each instance of dnl\_softswitch can be listening to many SIP IP ( SIP Profile ).

![](https://4102392624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXPCJcszvw7MAuHjiRr%2Fuploads%2FFZOvJfGafaFH4Ve3tqpz%2Fimage.png?alt=media\&token=e11059ed-6124-4b29-91a8-60ff08ce9fed)

As you can see, initially, this dnl\_softswitch is not having any SIP Profile.&#x20;

You need to click on the + icon to add SIP Profile in order for this swtich to start listening on the defined SIP IP and port for traffic:

![](https://4102392624-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MXPCJcszvw7MAuHjiRr%2Fuploads%2FM5fdKUGKeEVvrDY1hINp%2Fimage.png?alt=media\&token=dd0fb9c6-1e98-41a9-aa08-74e70de5f2cc)
