[asterisk-users] [asterisk-dev] How to play audio file in background in dialplan?
Steve Edwards
asterisk.org at sedwards.com
Fri Feb 3 11:46:19 CST 2012
On Fri, 3 Feb 2012, Yaroslav Panych wrote:
> I have a task. While serving incoming call I should do some longtime
> task(consumes more than few tens of seconds). So I decided to turn on
> background music in order to entertain caller.
Do your processing in an AGI. Before you get into your 'longtime task'
create another thread to play your file.
When you finish your 'longtime task' join the background thread.
--
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