I am using Asterisk 15.5 and python ARI, I have made a custom voicemail application in ARI. When an incoming call comes, I answer the incoming call and record the channel in ARI.
I am facing an issue that after 32 seconds call is being disconnected every time. Asterisk is sending bye response to SIP Trunk provider.
I have also tried to play media at a certain interval but then also the call is getting disconnected.
32 seconds is the characteristic time for failing to confirm the sending of a packet, which is usually due to firewall or NAT configuration problems.
You need to get a protocol logging for your channel technology driver (which you haven’t identified), although the basic reason for the hangup will normally be reported with default logging settings.