# 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
```


---

# 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://cookbook.denovolab.com/installation/configuring-dnl-softswitch.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.
