> For the complete documentation index, see [llms.txt](https://cookbook.denovolab.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cookbook.denovolab.com/installation/configuring-dnl-softswitch.md).

# Configuring DNL softswitch

The DNL softswitch reads confgiration from dnl\_softswitch.conf.

You can find this file at:

```
/opt/denovo_v6/dnl_softswitch/conf/dnl_softswitch.conf
```

Most of the configuration is pre-defined for you during the RPM install process.   There are some setting you can use to define custom behaviour and we will go through them in this section.

## Media IP Block

The media IPs to be blocked is defined in the spam\_traffic\_ip table.  By default, dnl\_softswitch blocks calls if it sees those IPs in the SIP INVITE ( for ingress traffic ) and SIP 200 OK ( for egress response ).  If you would prefer to use whitelisting mechanism instead of the default blacklisting, you can configure as follows:

```
file: dnl_softswitch.conf
section: [media]
parameter:
# If true, spam_traffic_ip acts as a whitelist. Otherwise as a blacklist (default)
#spam_traffic_ip_whitelist = true
```
