I am using Asterisk AGI to control incoming call from Twilio
After STREAM FILE command is executed (to play some audio file), I want to Hangup channel.
I tried execute HANGUP command and It worked if call duration < 2 minutes.
HANGUP command not woking after call longer 2 minutes.
Any solution to resolve my issue?
I have seen issues with chan-sip and TCP and attempt to re-use a TCP socket it should not (it was closed).
Are you using SIP/TCP perhaps with chan-sip? If you move to pjsip, it works great.
ASTERISK-20644 - Don't always use the existing TCP connection for in-dialog requests