[asterisk-users] How to play audio file in background in dialplan?
Steve Edwards
asterisk.org at sedwards.com
Fri Feb 3 16:54:14 CST 2012
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 sedwards at sedwards.com Voice: +1-760-468-3867 PST
Newline Fax: +1-760-731-3000
More information about the asterisk-users
mailing list