Do you mean AGI script can be used here? I have tried System cmd to run some script but the dial plan will still wait it to finish. For the example below, it will print out 1 and 2. It will print out 3 after running the script in 5 seconds.
macro exten=>s,1,NoOp(1) exten=>s,2,NoOp(2) exten=>s,3,System(script for 5 seconds) exten=>s,4,NoOp(3) ... What I want in the example is to print out 1,2,3 and let the script running without affecting the dial plan running. AGI can do it? i.e. macro exten=>s,1,NoOp(1) exten=>s,2,NoOp(2) exten=>s,3,AGI(5 seconds) exten=>s,4,NoOp(3) On 1/15/07, Alexander Lopez <[EMAIL PROTECTED]> wrote:
You are better off running a small AGI script and calling the Dialplan functions from there. You can always start musiconhold, process, and return to dial plan. Alex > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:asterisk-users- > [EMAIL PROTECTED] On Behalf Of Rilawich Ango > Sent: Monday, January 15, 2007 2:53 AM > To: Asterisk Users Mailing List - Non-Commercial Discussion > Subject: Re: [asterisk-users] play music while continue executing dial > plan > > It doesn't work as it will hold up the call without running the rest > of the statement. > > On 1/12/07, Octavio Ruiz (Ta^3) <[EMAIL PROTECTED]> wrote: > > Perhaps MusicOnHold() app? > > > > > Is there any application can let the dial plan to execute while > > > playing music? Say I have a lot of command to do in the dial plan but > > > I don't want to keep silence while execution of dial plan. I notice > > > Background(file) can play music but it will hold until pressing a key. > > > I want something like background and it plays music with continuing > > > execute the rest of the command in dial plan. > > > > -- > > YOW!!! I am having fun!!! > > _______________________________________________ > > --Bandwidth and Colocation provided by Easynews.com -- > > > > asterisk-users mailing list > > To UNSUBSCRIBE or update options visit: > > http://lists.digium.com/mailman/listinfo/asterisk-users > > > _______________________________________________ > --Bandwidth and Colocation provided by Easynews.com -- > > asterisk-users mailing list > To UNSUBSCRIBE or update options visit: > http://lists.digium.com/mailman/listinfo/asterisk-users _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
_______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users