[asterisk-users] Play sound on hangup

Philipp Kempgen philipp.kempgen at amooma.de
Wed Oct 17 10:54:58 CDT 2007


Atis Lezdins wrote:

> Does anybody have some ideas - how to play a sound file on channel, after that 
> bridged channel got hanged up?

---cut---
    g    - Proceed with dialplan execution at the current extension if the
           destination channel hangs up.
---cut---

Maybe something like this would do it:

Dial(tech/123,,g);
if ("${DIALSTATUS}" = "ANSWER") {
	Playback(somefile);
}


Regards,
  Philipp Kempgen

-- 
amooma GmbH - Bachstr. 126 - 56566 Neuwied - http://www.amooma.de
    Let's use IT to solve problems and not to create new ones.
          Asterisk? -> http://www.das-asterisk-buch.de

Geschäftsführer: Stefan Wintermeyer
Handelsregister: Neuwied B 14998



More information about the asterisk-users mailing list