[asterisk-users] [1.4] Asterisk doesn't hang up?

Gilles codecomplete at free.fr
Tue Mar 15 10:53:09 CDT 2011


On Tue, 15 Mar 2011 14:54:53 +0100, Gilles <codecomplete at free.fr>
wrote:
>	I'm trying to use ChanIsAvail() to check when the landline is back
>to idle after a call, but for some reason, Asterisk doesn't detect
>that the callee has hung up after listening to MoH for a few seconds:

It looks like neither Playback() nor Background() check for hangup and
will simply play the file all the way to the end, so I simply replaced
the long MoH with a short beep:

==========
exten => 8888,1,Wait(2)
exten => 8888,n,Answer()

;exten => 8888,n,Playback(/var/tmp/manolo_camp-morning_coffee)
;exten => 8888,n,Read(key,/var/tmp/manolo_camp-morning_coffee,1,,10,2)

;exten => 8888,n,Background(/var/tmp/manolo_camp-morning_coffee)
exten => 8888,n,Background(beep)

exten => 8888,n,WaitExten(10)
exten => 8888,n,Hangup
==========

HTH,




More information about the asterisk-users mailing list