Re: [Asterisk-java-users] How to play a voice file in the live api?
Brought to you by:
srt
From: Andy B. <and...@pr...> - 2007-09-13 07:34:23
|
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. |