# Configure VoIP Switch in UI

## How it works

Each Class 4 platform can run multiple softswitch instance&#x73;*.*  Each of softswitch can connect to the UI via the following section:

![](https://2160858555-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MYRPW5mw1EmjxhpuA4p%2F-MYTUHO1MbpLiKn4fCy9%2F-MYT_-eQKxMMwqdwFhPs%2Fimage.png?alt=media\&token=8bedf149-764f-4900-abfc-e9fac912a811)

Within the VoIP Gateway, you can add your softswitch instance:

![](https://2160858555-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MYRPW5mw1EmjxhpuA4p%2F-MYTUHO1MbpLiKn4fCy9%2F-MYT_PThiI3QER9F-96L%2Fimage.png?alt=media\&token=445289fb-a801-4053-9a50-aca98ed53318)

Each softswitch has a "name" and this name is configured in the following config:

```
/opt/denovo/dnl_softswitch/conf/dnl_softswitch.conf 

```

Inside the file, you can see the name :

```
################################################
#
# Denovolab softswitch configuration
#
################################################

[general]
 #....
switch_name = class4

[CLI]
cli_listen_ip = 127.0.0.1
cli_listen_port = 4320
cli_connection_expires = 600
cli_connection_limit = 200


```

The CLI interface allow the UI to telnet into the switch and query for switch information.

If started correctly, you should see the following CLI port is up:

```
tcp        0      0 127.0.0.1:4320          0.0.0.0:*               LISTEN      9559/dnl_softswitch 
tcp        0      0 127.0.0.1:49292         127.0.0.1:6240          ESTABLISHED 9559/dnl_softswitch 
tcp        0      0 127.0.0.1:44122         127.0.0.1:6230          ESTABLISHED 9559/dnl_softswitch 
udp        0      0 176.31.100.14:4319      0.0.0.0:*                           9559/dnl_softswitch 
unix  3      [ ]         STREAM     CONNECTED     1175410976 9559/dnl_softswitch  
unix  2      [ ]         DGRAM                    1175410045 9559/dnl_softswitch  

```

Once CLI port is up, you can configure the VoIP Gateway as follows:

![](https://2160858555-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MYRPW5mw1EmjxhpuA4p%2F-MYTUHO1MbpLiKn4fCy9%2F-MYTaiBQN3dAycCyNYRv%2Fimage.png?alt=media\&token=8d215ea2-cf56-465f-8729-e72f656894ee)

Now, notice that SIP is not up.

![](https://2160858555-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MYRPW5mw1EmjxhpuA4p%2F-MYTUHO1MbpLiKn4fCy9%2F-MYTasS_gK6uPBVOndTN%2Fimage.png?alt=media\&token=805d2bd3-6df8-4590-9cf7-02b7268aa065)

Our next step is to add SIP interface to the VoIP gateway.

![](https://2160858555-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MYRPW5mw1EmjxhpuA4p%2F-MYTUHO1MbpLiKn4fCy9%2F-MYTbHQ4Uqdo4ZFLdI0W%2Fimage.png?alt=media\&token=79809d9f-a7e3-4d9b-95b6-c8babf8f5611)

After you add a new SIP interface, you can restart softswitch using the following command:

```
systemctl restart dnl_softswitch
```

After you restart Class4 softswtich, you can see the SIP interface with 6060 port is started.&#x20;

```
[root@ns389055 denovo]# netstat -anp |grep dnl_softswitch
tcp        0      0 127.0.0.1:4320          0.0.0.0:*               LISTEN      13446/dnl_softswitc 
tcp        0      0 127.0.0.1:56574         127.0.0.1:6240          ESTABLISHED 13446/dnl_softswitc 
tcp        0      0 127.0.0.1:51428         127.0.0.1:6230          ESTABLISHED 13446/dnl_softswitc 
udp        0      0 176.31.100.14:4319      0.0.0.0:*                           13446/dnl_softswitc 
udp        0      0 176.31.100.14:6060      0.0.0.0:*                           13446/dnl_softswitc 
```
