search for: redirectchannel

Displaying 1 result from an estimated 1 matches for "redirectchannel".

2009 Sep 29
2
play audio file within an active call
...call stays up for more than Y minutes, it is dropped automatically (softhangup). What's the simplest approach to playing a sound file within an active channel? I thought of writing a cron agi script that scans active channels, retrieves their duration and if it's > X minutes then "RedirectChannel" to a context which executes a Playback(file); if it's > Y minutes then "RedirectChannel" to a context which executes both a Playback("forcing hang up now...") and HangUp. Any thoughts?