[asterisk-users] play sound while executing agi script

Steve Edwards asterisk.org at sedwards.com
Mon Nov 24 10:05:51 CST 2008


On Mon, 24 Nov 2008, Tilghman Lesher wrote:

> On Monday 24 November 2008 06:51:23 Giedrius Augys wrote:
>>   Is it possible to do like this: play a sound file (if needed play in
>> loop) while php agi script finishes work ? And how to do this? When on my
>> server is huge load , I don't want that client hears silent , but hears
>> music. Thanks
>
> Please see StartMusicOnHold and StopMusicOnHold.

You can create a thread in your AGI to STREAM FILE.

I do this to play a message while waiting for a credit card authorization. 
Usually, I get the response before the message finishes so the auth 
appears to be "instantaneous" to the customer.

Thanks in advance,
------------------------------------------------------------------------
Steve Edwards      sedwards at sedwards.com      Voice: +1-760-468-3867 PST
Newline                                             Fax: +1-760-731-3000



More information about the asterisk-users mailing list