# PSTN line do not hangup

**URL:** <https://community.asterisk.org/t/pstn-line-do-not-hangup/37228>\
**Category:** Asterisk Support\
**Created:** [November 1, 2011, 10:33am UTC](https://community.asterisk.org/t/pstn-line-do-not-hangup/37228 "2011-11-01T10:33:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [November 1, 2011, 10:33am UTC](https://community.asterisk.org/t/pstn-line-do-not-hangup/37228/1 "2011-11-01T10:33:47Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![david55](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@david55](https://community.asterisk.org/u/david55)\
**Post date:** [November 1, 2011, 12:40pm UTC](https://community.asterisk.org/t/pstn-line-do-not-hangup/37228/2 "2011-11-01T12:40:18Z")

</div>

Does your telephone operator provide disconnect supervision? What form of supervision do they provide?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [November 6, 2011, 9:03am UTC](https://community.asterisk.org/t/pstn-line-do-not-hangup/37228/3 "2011-11-06T09:03:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [November 6, 2011, 12:18pm UTC](https://community.asterisk.org/t/pstn-line-do-not-hangup/37228/4 "2011-11-06T12:18:07Z")

</div>

how can i know “operator disconnect supervision” ?

---

<div class="post-metadata">

**Author:** ![david55](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@david55](https://community.asterisk.org/u/david55)\
**Post date:** [November 6, 2011, 8:58pm UTC](https://community.asterisk.org/t/pstn-line-do-not-hangup/37228/5 "2011-11-06T20:58:37Z")

</div>

“telephone operator” means the organisation that provides your PSTN service.

You ask them what form of “disconnect supervision” they provide.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/asterisk/original/2X/4/475d0c889911cfb84ac4881ad6df8b523e3f9105.png) [@system](https://community.asterisk.org/u/system)\
**Post date:** [November 7, 2011, 10:11am UTC](https://community.asterisk.org/t/pstn-line-do-not-hangup/37228/6 "2011-11-07T10:11:39Z")

</div>

i solved this probelm with adding these options

`busydetect=yes
busycount=4;4
callprogress=no`  
after 3 sec hangup pstn line asterisk hangup
