i call to ivr from pstn line (traditional telephone). After answer background play some wav file. Duration wav file is more longer. Before finished wav file i hangup pstn line (traditional telephone). But asterisk extension does not hangup. After play all duration of wav file extension hangup. But i want hangup when pst line hangup.
Does your telephone operator provide disconnect supervision? What form of supervision do they provide?
i am from azerbaijan and i dont know “operator disconnect supervision”. But i find from internet another method “hanguponpolarityswitch”. It is also dont work for me.
I use
AsteriskNow 1.7
Asterisk 1.8.7.1
my chan_dahdi.conf
[code];
; DAHDI telephony
;
; Configuration file
[trunkgroups]
[channels]
language=en
context=from-zaptel
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
;
; Whether or not to do distinctive ring detection on FXO lines
;
;usedistinctiveringdetection=yes
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=no
;echotraining=800
rxgain=0.0
txgain=0.0
group=0
callgroup=1
pickupgroup=1
immediate=no
hanguponpolarityswitch=yes
;faxdetect=both
faxdetect=incoming
;faxdetect=outgoing
;faxdetect=no
;Include setup-pstn configs
#include dahdi-channels.conf
group=1
;Include PBXconfig configs
#include chan_dahdi_additional.conf
[/code]
when i cal from pstn begin this extension.
[default]
exten => s,1,Background(action_1_az)
exten => s,2,Hangup()
how can i know “operator disconnect supervision” ?
“telephone operator” means the organisation that provides your PSTN service.
You ask them what form of “disconnect supervision” they provide.
i solved this probelm with adding these options
busydetect=yes
busycount=4;4
callprogress=no
after 3 sec hangup pstn line asterisk hangup