On Tue, 15 Mar 2011 14:54:53 +0100, Gilles <[email protected]>
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,


--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to