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       [email protected]      Voice: +1-760-468-3867 PST
Newline                                              Fax: +1-760-731-3000

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
              http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to