2012/2/3 Steve Edwards <[email protected]>:
> 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.

Yes, part of task is executed in AGI. But, I still do not understand
how I can do something with Asterisk while it locks pbx execution for
channel on particular application.
I prefer simple solution like:
same=>n,start-play-in-background-app(file-to-play)
same=>n,do-one-stuff()
a-lot-of-`same=>n,do-something`s-here
same=>n,do-other-stuff()
same=>n,stop-play-in-background-app()
In generally I need something like PlayTones/StopPlayTones pair, but
instead of giving list of tones/name-of-list I want give name of
freshly generated file.

--
_____________________________________________________________________
-- 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