[asterisk-users] [asterisk-dev] How to play audio file in background in dialplan?
Danny Nicholas
danny at debsinc.com
Fri Feb 3 15:39:19 CST 2012
The AGI technology is more "tried and true" (IMHO) than anything you're
going to do in the dialplan. If you want to do 2 things, make the agi do
this
<start music>
Fork or shell task 1
Fork or shell task 2
<stop music>
AGI is your "friend" here - the dialplan is definitely going to be more
fickle.
-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Yaroslav
Panych
Sent: Friday, February 03, 2012 3:32 PM
To: Asterisk Users Mailing List - Non-Commercial Discussion
Subject: Re: [asterisk-users] [asterisk-dev] How to play audio file in
background in dialplan?
2012/2/3 Steve Edwards <asterisk.org at sedwards.com>:
> 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
More information about the asterisk-users
mailing list