We have a TDM410p with 2 fxo and 2 fxs. We had wrote a AGI to answer customer call and route to specific agent. However, we are facing problem that asterisk failed to detect customer hangup and still proceed to process the call and called the agent. It keep ringing until agent pickup the call.
I had added busydetect=yes and busycount=4. However, it seems this only applicable when caller connected to callee, callee detected busy tone and hangup.
Is it any method to detect customer hangup in AGI or dial plan before it call to the agent?
What disconnect supervision options does your PTT offer? Which one do you have selected in chan_dahdi.conf?
My setting as below:
/etc/dahdi/system.conf
# Autogenerated by /usr/sbin/dahdi_genconf on Thu Mar 17 20:19:06 2011
# If you edit this file and execute /usr/sbin/dahdi_genconf again,
# your manual changes will be LOST.
# Dahdi Configuration File
#
# This file is parsed by the Dahdi Configurator, dahdi_cfg
#
# Span 1: WCTDM/0 "Wildcard TDM410P Board 1" (MASTER)
fxsks=1
echocanceller=mg2,1
fxsks=2
echocanceller=mg2,2
fxoks=3
echocanceller=mg2,3
fxoks=4
echocanceller=mg2,4
# Global data
loadzone = my
defaultzone = my
/etc/asterisk/chan_dahdi_custom.conf
signalling=fxs_ks
callerid=3001
group=0
usecallerid=no
callgroup=1
pickupgroup=1
context=from-pstn
busydetect=yes
busycount=2
;callprogress=yes
channel => 1
callerid=
group=
context=default
signalling=fxs_ks
callerid=3002
group=0
usecallerid=no
callgroup=1
pickupgroup=1
context=from-pstn
busydetect=yes
busycount=2
;callprogress=yes
channel => 2
callerid=
group=
context=default
signalling=fxo_ks
callerid="2001" <2001>
callgroup=1
pickupgroup=1
mailbox=
group=5
context=from-internal
channel => 3
callerid=
mailbox=
group=
context=default
signalling=fxo_ks
callerid="2002" <2002>
callgroup=1
pickupgroup=1
mailbox=
group=5
context=from-internal
channel => 4
callerid=
mailbox=
group=
context=default
Is there any application/function in dialplan that can detect busy tone before it connect AGI application?
Now, if it connected to callee, it able to detect busy tone and hangup. However, before connected to callee, dial plan or AGI failed to detect hangup and wouldn’t hangup.
try this in chan_dahdi.conf:
hanguponpolarityswitch=yes (or no)