[asterisk-dev] New AGI manager command: PlaySound

Moises Silva moises.silva at gmail.com
Sat Jan 24 13:43:56 CST 2009


You can always use Async AGI to control your channel through the
manager interface using AGI commands.

On Sat, Jan 24, 2009 at 1:25 PM, Russell Bryant <russell at digium.com> wrote:
>
> On Jan 24, 2009, at 1:00 PM, nik600 wrote:
>
>> If i'm wrong, please correct me but i think that it doesn't exists an
>> AGI manager command to play a sound (or an audio file) on a specific
>> channel.
>
>
> First, are you talking abotu AGI or the manager interface (AMI) ?
> They are too different beasts.
>
> In AGI, you certainly already have this capability through STREAM FILE
> or with EXEC Playback.
>
> In AMI, you would be correct in saying that there is not a straight
> forward way to do this today.  However, it's not as trivial to
> implement as you might think.  You can not model it after app_playback
> or something similar.  The big reason is that the handling of a
> manager action happens in another thread, not in the channel thread
> like the Playback application code.
>
> --
> Russell Bryant
> Digium, Inc. | Senior Software Engineer, Open Source Team Lead
> 445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
> Check us out at: www.digium.com & www.asterisk.org
>
>
>
>
>
> _______________________________________________
> --Bandwidth and Colocation Provided by http://www.api-digital.com--
>
> asterisk-dev mailing list
> To UNSUBSCRIBE or update options visit:
>   http://lists.digium.com/mailman/listinfo/asterisk-dev
>



-- 
"I do not agree with what you have to say, but I'll defend to the
death your right to say it." Voltaire



More information about the asterisk-dev mailing list