# Switch can't process more than 30K ports

## Introduction

By default, Class 4 softswitch cap the max inbound session to 30K to avoid servers without sufficient memory to run out of memory.  This is useful when someone runs the Class 4 softswitch using less memory.&#x20;

If you are seeing the following error in the {dnlsoftswitch\_dir}/log/dnl\_softswitch.log, that means the switch's internal max\_inbound\_session is exceeded:

```
2021-04-19 17:30:19  [WARNING] sip_sessions.c:787 Maximum inbound call in progress, can't accept a new incoming call
2021-04-19 17:30:19  [WARNING] sip_sessions.c:787 Maximum inbound call in progress, can't accept a new incoming call
2021-04-19 17:30:19  [WARNING] sip_sessions.c:787 Maximum inbound call in progress, can't accept a new incoming call
2021-04-19 17:30:19  [WARNING] sip_sessions.c:787 Maximum inbound call in progress, can't accept a new incoming call
2021-04-19 17:30:19  [WARNING] sip_sessions.c:787 Maximum inbound call in progress, can't accept a new incoming call
2021-04-19 17:30:19  [WARNING] sip_sessions.c:787 Maximum inbound call in progress, can't accept a new incoming call
2021-04-19 17:30:19  [WARNING] sip_sessions.c:787 Maximum inbound call in progress, can't accept a new incoming call
2021-04-19 17:30:19  [WARNING] sip_sessions.c:787 Maximum inbound call in progress, can't accept a new incoming call
2021-04-19 17:30:19  [WARNING] sip_sessions.c:787 Maximum inbound call in progress, can't accept a new incoming call
2021-04-19 17:30:19  [WARNING] sip_sessions.c:787 Maximum inbound call in progress, can't accept a new incoming call
2021-04-19 17:30:19  [WARNING] sip_sessions.c:787 Maximum inbound call in progress, can't accept a new incoming call
2021-04-19 17:30:19  [WARNING] sip_sessions.c:787 Maximum inbound call in progress, can't accept a new incoming call
2021-04-19 17:30:19  [WARNING] sip_sessions.c:787 Maximum inbound call in progress, can't accept a new incoming call
2021-04-19 17:30:19  [WARNING] sip_sessions.c:787 Maximum inbound call in progress, can't accept a new incoming call
2021-04-19 17:30:19  [WARNING] sip_sessions.c:787 Maximum inbound call in progress, can't accept a new incoming call
2021-04-19 17:30:19  [WARNING] sip_sessions.c:787 Maximum inbound call in progress, can't accept a new incoming call
```

If you have sufficient memory, you can increase this value in dnl\_softswitch.conf.

```
[general]
Default Global Log Level - value is one of debug(7),info(6),notice(5),warning(4),err(3),crit(2),alert(1),emergency(0)
log_level = 5
#System sip channel limit
max_inbound_session = 30000 
max_outbound_session = 60000
#Default switch server process thread count
task_counts = 20  
```

After you change this config file, you must remember to restart dnl\_softswitch using systemctl:

```
systemctl restart dnl_softswitch    
```

The path for this config file is :

```
 {installpath}/denovo/dnl_softswitch/conf/cnl_softswitch.conf

```


---

# 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://v5cookbook.denovolab.com/troubleshoot/switch-cant-process-more-than-30k-ports.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.
