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