[asterisk-users] Play sound on hangup

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


On Wednesday 17 October 2007 19:03:55 Tony Mountifield wrote:
> > 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.

Ok, i thing - this better explains my needs - i need to play sound to B, 
whenever A hangs up.

Actually it's executing dialplan part with h extension - but i haven't been 
successful in playing sound there. 

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