Re: [asterisk-users] How to play audio file in background in dialplan?

2012-02-03 Thread Steve Edwards
On Sat, 4 Feb 2012, Yaroslav Panych wrote: It should be stopped only after DO-SOME-ACTION-BASED-ON-PREVIOUS-CALL-RETURN-CODE completes. It is actually my longtime operation. BTW, we still have NFC what DO-SOME-ACTION-BASED-ON-PREVIOUS-CALL-RETURN-CODE does. More details may yield better su

Re: [asterisk-users] How to play audio file in background in dialplan?

2012-02-03 Thread Steve Edwards
2012/2/4 Steve Edwards : does DO-SOME-ACTION-BASED-ON-PREVIOUS-CALL-RETURN-CODE involve some interaction with Asterisk? On Sat, 4 Feb 2012, Yaroslav Panych wrote: Yes, DO-SOME-ACTION-BASED-ON-PREVIOUS-CALL-RETURN-CODE interacts with Asterisk. Does the entire ${PROFILE_MUSIC} file need to

Re: [asterisk-users] How to play audio file in background in dialplan?

2012-02-03 Thread Yaroslav Panych
2012/2/4 Steve Edwards : > does DO-SOME-ACTION-BASED-ON-PREVIOUS-CALL-RETURN-CODE involve some > interaction with Asterisk? Yes, DO-SOME-ACTION-BASED-ON-PREVIOUS-CALL-RETURN-CODE interacts with Asterisk. > Does the entire ${PROFILE_MUSIC} file need to be played or > does it need to be interrupted

Re: [asterisk-users] How to play audio file in background in dialplan?

2012-02-03 Thread Steve Edwards
On Sat, 4 Feb 2012, Yaroslav Panych wrote: same=>n,PlayBack(processing-request) same=>n,APP_TO_START_PLAY_IN_BACKGROUND(${PROFILE_MUSIC}) same=>n,AGI(taskproxy,${user_id},${task}) same=>n,DO-SOME-ACTION-BASED-ON-PREVIOUS-CALL-RETURN-CODE same=>n,APP_TO_STOP_PLAY_IN_BACKGROUND() As Steve Edwards

Re: [asterisk-users] How to play audio file in background in dialplan?

2012-02-03 Thread Steve Edwards
On Fri, 3 Feb 2012, Yaroslav Panych wrote: What exactly commands I should invoke in AGI instead of and ? STREAM FILE returns only after file ends, this is not what I want. On Fri, 3 Feb 2012, Steve Edwards wrote: Execute 'stream file' in a separate thread. I use this when processing cre

Re: [asterisk-users] How to play audio file in background in dialplan?

2012-02-03 Thread Steve Edwards
On Fri, 3 Feb 2012, Yaroslav Panych wrote: 2012/2/3 Danny Nicholas : Fork or shell task 1 Fork or shell task 2 What exactly commands I should invoke in AGI instead of and ? STREAM FILE returns only after file ends, this is not what I want. Execute 'stream file' in a separate thread.

Re: [asterisk-users] How to play audio file in background in dialplan?

2012-02-03 Thread Danny Nicholas
f Yaroslav Panych Sent: Friday, February 03, 2012 4:13 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] How to play audio file in background in dialplan? 2012/2/3 Danny Nicholas : > In my PERL AGI I use > - print STDOUT "SET MUSIC ON HOLD

Re: [asterisk-users] How to play audio file in background in dialplan?

2012-02-03 Thread Eric Wieling
nt: Friday, February 03, 2012 5:13 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] How to play audio file in background in dialplan? 2012/2/3 Danny Nicholas : > In my PERL AGI I use > - print STDOUT "SET MUSIC ON HOLD DEFAULT\n"; > - pr

Re: [asterisk-users] How to play audio file in background in dialplan?

2012-02-03 Thread Yaroslav Panych
2012/2/3 Danny Nicholas : > In my PERL AGI I use > - print STDOUT "SET MUSIC ON HOLD DEFAULT\n"; > - print STDOUT "SET MUSIC ON HOLD OFF\n"; > > Ignore the "-" - stupid outlook needs them. There is one problem: I have not any MOH class, and cannot pre-create it. File I will play does not exists un

Re: [asterisk-users] How to play audio file in background in dialplan?

2012-02-03 Thread Danny Nicholas
ium.com] On Behalf Of Yaroslav Panych Sent: Friday, February 03, 2012 3:53 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] How to play audio file in background in dialplan? 2012/2/3 Danny Nicholas : > > Fork or shell task 1 > Fork or shell ta

Re: [asterisk-users] How to play audio file in background in dialplan?

2012-02-03 Thread Yaroslav Panych
2012/2/3 Danny Nicholas : > > Fork or shell task 1 > Fork or shell task 2 > What exactly commands I should invoke in AGI instead of and ? STREAM FILE returns only after file ends, this is not what I want. -- _ -- Bandwidth an