# 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

```
