I am using a Digium PRI card where PRIs are connected. When I call to a DID, the call enters the queue and waits to be answered by the telecaller. However, after 20 seconds, the call gets disconnected automatically
remove answer from /etc/asterisk/extensions.conf for below
; DID forwarded calls
;exten => _99909*.,1,Answer()
exten => _99909*.,1,AGI(agi-VDAD_ALL_inbound.agi)
exten => _99909*.,n,Hangup()
e[Klinux-56xh*CLI>
e[0K – Executing [h@default:1] AGI(“DAHDI/i2/918560821210-8e”, “agi://127.0.0.1:4577/call_log–HVcauses–PRI-----NODEBUG-----18---------------”) in new stack
;exten => _99909*.,1,Progress() ; Indicates that the call is in progress
;exten => _99909*.,n,Ringing() ; Sends a ringback tone to the caller
;exten => _99909*.,n,AGI(agi-VDAD_ALL_inbound.agi) ; Execute your AGI script
;exten => _99909*.,n,Hangup() ; Hang up the call after AGI execution
Now the call is ringing for 60 seconds and then dropped. Therefore, the call should remain in the queue until it is answered by an agent.
There are ways of sharing large texts, but they are difficult for people to analyse. What you need to do is to create a smaller script that still demonstrates the problem.
There is no default AGI script in Asterisk. This script appears to be part of Vicidial, not part of Asterisk. You need to get your support from the Vicidial community.