Inbound Calls is drop in 20 seconds

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()

Looks like you are using vicidial.

Can you please contact your PRI provider, normally the problem lies with them.

Do you have any CLI logs on how the calls are being disconnected?

e[Klinux-56xh*CLI>
e[0K – Span 2: Channel 0/4 got hangup request, cause 18

e[Klinux-56xh*CLI>
e[0K – Stopped music on hold on DAHDI/i2/918560821210-8e

e[Klinux-56xh*CLI>
e[0K – <DAHDI/i2/918560821210-8e>AGI Script agi-VDAD_ALL_inbound.agi completed, returning 4

e[Klinux-56xhCLI>
e[0K == Spawn extension (default, 99909
20***DID, 1) exited non-zero on ‘DAHDI/i2/918560821210-8e’

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

e[Klinux-56xh*CLI>
e[0K – <DAHDI/i2/918560821210-8e>AGI Script agi://127.0.0.1:4577/call_log–HVcauses–PRI-----NODEBUG-----18--------------- completed, returning 0

e[Klinux-56xh*CLI>
e[0K – Hungup ‘DAHDI/i2/918560821210-8e’

in which asterisk log the hangup request as below
e[0K == Spawn extension (default, 9990920**DID, 1) exited non-zero on ‘DAHDI/i2/918560821210-8e’

;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.

how to do it

This is the first you have mentioned a queue. To get a good answer to this you need to provide the AGI script, as well as the dial plan.

unable to share due to large texts

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.

I am using the default agi script

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.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.