[asterisk-users] How to run Music while looking for the caller in Database

Mark Michelson mmichelson at digium.com
Wed Mar 31 15:43:50 CDT 2010


Bharath B. Reddy Bynagari wrote:
> Hi,
> 
>  
> 
> We are using Asterisk and PERL. We have all the call logic in PERL. We 
> are trying to identify the caller using the CID in the Database. As the 
> Database lookup is taking more time (>15 seconds), we want to play some 
> tune while the caller is waiting.
> 
>  
> 
> How can we do that? Any ideas will be greatly appreciated.
> 
>  
> 
> - Bharath

Assuming that you are using a perl AGI script, you can use the AGI command SET 
MUSIC ON to play music on the channel. You can stop the music by using SET MUSIC 
OFF. For a bit more information, you can run the CLI command "agi show set music"

Mark Michelson



More information about the asterisk-users mailing list