Re: [Asterisk-java-users] How to play a voice file in the live api?
Brought to you by:
srt
From: jeff l. <ll...@gm...> - 2007-09-13 08:27:19
|
Hi andy, Thanks, it works. On 9/13/07, Andy Burns <and...@pr...> wrote: > > On 13/09/2007 06:43, jeff li wrote: > > > After my application makes a originate call to a outer system, I want > > to play something to it. In the live api , we only have playDtmf(which > > even fails coz we're using the low version of asterisk) . What if I want > > to play a file, a piece of music? In the manage api, no action seems to > > be capable to do that except the CommandAction. But how do I specify > > which channel the voice should be played to during the CommandAction? > > A couple of ways ... > > Play the sounds from the dialplan, within the context/extension you > place the calls to. > > or > > Within the dialplan use the AGI command, which will allow invoke your > asteriskjava service with fastagi protocol, then you can handle the > sounds/dtmf as you like. This gives you a procedural rather than state > table way of hadling calls. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Asterisk-java-users mailing list > Ast...@li... > https://lists.sourceforge.net/lists/listinfo/asterisk-java-users > > > -- Regards, Jeff |