Hi, Does anybody have some ideas - how to play a sound file on channel, after that bridged channel got hanged up? Regards, Atis -- Atis Lezdins VoIP Developer, IQ Labs Inc. atis at iq-labs.net Skype: atis.lezdins Cell Phone: +371 28806004 Work phone: +1 800 7502835
----- Original Message ----- From: "Atis Lezdins" <atis at iq-labs.net> To: <asterisk-users at lists.digium.com> Sent: Wednesday, October 17, 2007 5:18 PM Subject: [asterisk-users] Play sound on hangup> Hi, > > Does anybody have some ideas - how to play a sound file on channel, after > that > bridged channel got hanged up? > > Regards, > AtisHow about the g option ? http://www.voip-info.org/wiki/view/Asterisk+cmd+Dial
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
In article <200710171818.54209.atis at iq-labs.com>, Atis Lezdins <atis at iq-labs.net> wrote:> Hi, > > Does anybody have some ideas - how to play a sound file on channel, after that > bridged channel got hanged up?So A calls B, who answers; A talks to B and B then hangs up - you want a sound file played to A? Assuming A is executing in the dialplan, and calls Dial() to call B, you might be able to do it by giving the 'g' option to Dial(), so that the calling channel continues after Dial has returned. You then follow the Dial with a Playback() command. However, in the above scenario, if it is A who hangs up, I don't think you can play a message to B, since B is not executing in the dialplan. Cheers Tony -- Tony Mountifield Work: tony at softins.co.uk - http://www.softins.co.uk Play: tony at mountifield.org - http://tony.mountifield.org