[asterisk-users] Play sound on hangup

Atis Lezdins atis at iq-labs.net
Wed Oct 17 11:07:19 CDT 2007


On Wednesday 17 October 2007 18:54:58 Philipp Kempgen wrote:
> 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);
> }

Well, as i have tried - i never get ANSWER status there - i just got thrown to 
h extension.

Plus - i want to do it on other half of channel - i have incoming calls routed 
trough queue (and Agent/ channels), then Dial()'ed to local SIP. In case when 
caller hangs up - i would like to play the sound.

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



More information about the asterisk-users mailing list