Leo Burd
2006-Aug-06 19:31 UTC
[asterisk-users] How to "emulate" Music on Hold in a PHP AGI script?
- Hello there, How to "emulate" Music on Hold in a PHP AGI script? Ideally, I would like my PHP script to play a predefined file to my callers while the script has to spend time performing some internal calculations. Does anyone know how to do this? Any suggestions? Thanks in advance, Leo
Russell Bryant
2006-Aug-06 20:07 UTC
[asterisk-users] How to "emulate" Music on Hold in a PHP AGI script?
On Sun, 2006-08-06 at 22:31 -0400, Leo Burd wrote:> How to "emulate" Music on Hold in a PHP AGI script? Ideally, I would like my > PHP script to play a predefined file to my callers while the script has to > spend time performing some internal calculations. Does anyone know how to > do this? Any suggestions?I'm not sure if there is any practical benefit of emulating music on hold. You should just be able to use "EXEC StartMusicOnHold" and "EXEC StopMusicOnHold" before and after the work you need to do in your script. -- Russell Bryant Software Developer Digium, Inc.
Leo Burd
2006-Aug-07 04:04 UTC
[asterisk-users] How to "emulate" Music on Hold in a PHP AGI script?
- Thank you so much! I didn't even know that Start/StopMusicOnHold existed!! BTW, how can one find out about those undocumented applications? Best, Leo --------------------------------- On Sun, 2006-08-06 at 22:31 -0400, Leo Burd wrote:> How to "emulate" Music on Hold in a PHP AGI script? Ideally, I would like > my > PHP script to play a predefined file to my callers while the script has to > spend time performing some internal calculations. Does anyone know how to > do this? Any suggestions?I'm not sure if there is any practical benefit of emulating music on hold. You should just be able to use "EXEC StartMusicOnHold" and "EXEC StopMusicOnHold" before and after the work you need to do in your script. -- Russell Bryant Software Developer Digium, Inc.