Active call stuck

Status
Not open for further replies.

Andyd358

Member
Aug 23, 2018
260
9
18
55
UK
Hi

I just checked the active call on one of our domains and seen that a call is showing active but its not. :
1718458249017.png
Ive tried hanging up the call it says that it has ended but the above still shows. How do i sort this out. Hopefully without restarting anything.
 

NVGcom

Member
Apr 29, 2020
41
4
8
48
Hi,

Based on information provided, you can either run a script that is provided from FusionPBX Membership or restart FS.
These stuck call can also result in BLF showing extension in use when obviously it is not.

This was known problem on FS 1.10.10. You can use Match 200 OK on the phones or push only g711.
Depending on what your SIP Provider offers. They might have g722 and even Opus.

You should always provide what FS and what FusionPBX version you have, found in - Status - System Settings.
Current FusionPBX master is 5.3.1. There is also Stable release.

All my servers are upgraded to FS 1.10.11, PHP 8.1 and PostgreSQl 16 and don't have those problems anymore.
 

Andyd358

Member
Aug 23, 2018
260
9
18
55
UK
Hi,

Based on information provided, you can either run a script that is provided from FusionPBX Membership or restart FS.
These stuck call can also result in BLF showing extension in use when obviously it is not.

This was known problem on FS 1.10.10. You can use Match 200 OK on the phones or push only g711.
Depending on what your SIP Provider offers. They might have g722 and even Opus.

You should always provide what FS and what FusionPBX version you have, found in - Status - System Settings.
Current FusionPBX master is 5.3.1. There is also Stable release.

All my servers are upgraded to FS 1.10.11, PHP 8.1 and PostgreSQl 16 and don't have those problems anymore.
thanks for the info, will give it a restart this evening when the calls are quiet. I'm on the same version as you.
 

Andyd358

Member
Aug 23, 2018
260
9
18
55
UK
Yeah this happening every day now cant keep restarting FS every night is there a way to clear these with a script
 

digiwolf

New Member
Dec 23, 2021
6
3
3
38
you can try checking the status on the table channels, check the number and the status where the call is stuck i made a bash script to resolve that, in my case was the incoming calls they get stuck, in my case i use postgresql for the database, then modify the script to the target status
 

Attachments

  • dgvx-unity-hangup-jailed-calls.zip
    853 bytes · Views: 20

pbxgeek

Active Member
Jan 19, 2021
183
64
28
37
I'm curious if this happens when CDR upload via the HTTP server is not used. Does someone have CDR upload set up and still have stale calls?
 

pbxgeek

Active Member
Jan 19, 2021
183
64
28
37
Restart is the only way I found that works 100%. Some stale calls cannot be killed easily. Are you on the 1.10.11 version?
 

pbxgeek

Active Member
Jan 19, 2021
183
64
28
37
Can you downgrade to 1.10.7? I have customers who use this version in production, and they have no stale calls. I also heard that the bug was noticed all the way in 10.10.9 version. Freeswitch developers have had a ticket open for years; they are well aware but not doing much to fix it.
 

Andyd358

Member
Aug 23, 2018
260
9
18
55
UK
Can you downgrade to 1.10.7? I have customers who use this version in production, and they have no stale calls. I also heard that the bug was noticed all the way in 10.10.9 version. Freeswitch developers have had a ticket open for years; they are well aware but not doing much to fix it.
I would not be comfortable downgrading to a previous version This is a production PBX I would be a little scared to mess with it :)
 

pbxgeek

Active Member
Jan 19, 2021
183
64
28
37
Yeah, I get that. Your only other option is to run a script every so often to remove the stale calls. It's not perfect, but it will work. Say you run a script every 30 minutes and delete calls older than 4 hours. You will have a BLF issue until the call is removed, but at least it's automated.
 

Andyd358

Member
Aug 23, 2018
260
9
18
55
UK
Yeah, I get that. Your only other option is to run a script every so often to remove the stale calls. It's not perfect, but it will work. Say you run a script every 30 minutes and delete calls older than 4 hours. You will have a BLF issue until the call is removed, but at least it's automated.
Im no script kiddie so would not know where to start with that to be fair lol
 

pbxgeek

Active Member
Jan 19, 2021
183
64
28
37
I'm happy to share some info here to help you out. If you need further assistance, feel free to DM me for more personalized support.
 

pbxgeek

Active Member
Jan 19, 2021
183
64
28
37
Here is a script to remove stale calls if you are using SQLite

Install sqlite3
apt install sqlite3


Create a cron job to run every 30 minutes.

#!/usr/bin/env sh #default location sqlite3 /var/lib/freeswitch/db/core.db "delete from channels where strftime('%s','now') - created_epoch > 14400;" #ram drive #sqlite3 /dev/shm/core.db "delete from channels where strftime('%s','now') - created_epoch > 14400;"
 
Status
Not open for further replies.