Re: [asterisk-users] How to play audio file in background in dialplan?
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 wrote, I cannot pack this dialplan into one big AGI call, because if I will use STREAM FILE, I will be forced to violate AGI protocol. Can the above steps be incorporated into taskproxy or does DO-SOME-ACTION-BASED-ON-PREVIOUS-CALL-RETURN-CODE involve some interaction with Asterisk? Does the entire ${PROFILE_MUSIC} file need to be played or does it need to be interrupted when DO-SOME-ACTION-BASED-ON-PREVIOUS-CALL-RETURN-CODE completes? Open the kimono -- tell us what's going on :) -- Thanks in advance, - Steve Edwards sedwa...@sedwards.com 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
Re: [asterisk-users] How to play audio file in background in dialplan?
2012/2/4 Steve Edwards asterisk@sedwards.com: 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 when DO-SOME-ACTION-BASED-ON-PREVIOUS-CALL-RETURN-CODE completes? It should be stopped only after DO-SOME-ACTION-BASED-ON-PREVIOUS-CALL-RETURN-CODE completes. It is actually my longtime operation. taskproxy works very fast - fetches from external storage data for DO-SOME-ACTION... -- _ -- 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
Re: [asterisk-users] How to play audio file in background in dialplan?
2012/2/4 Steve Edwards asterisk@sedwards.com: 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 be played or does it need to be interrupted when DO-SOME-ACTION-BASED-ON-PREVIOUS-CALL-RETURN-CODE completes? It should be stopped only after DO-SOME-ACTION-BASED-ON-PREVIOUS-CALL-RETURN-CODE completes. It is actually my longtime operation. taskproxy works very fast - fetches from external storage data for DO-SOME-ACTION... Then, as Eric suggested, externivr() may be fruitful. Just as a 'disclaimer,' I'm just a 1.2 Luddite so if some newer functionality exists I may not know about it. I don't know if externivr() will give you the 'start-streaming-file, continue with my dialplan, stop-streaming-file' kind of experience. I think externivr() may still be very 'AGIish' -- you call it, do do a bunch of stuff in it, and then return to your dialplan. -- Thanks in advance, - Steve Edwards sedwa...@sedwards.com 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
Re: [asterisk-users] How to play audio file in background in dialplan?
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 suggestions. -- Thanks in advance, - Steve Edwards sedwa...@sedwards.com 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