[asterisk-users] Music / Background

Thomas Perron thomas.perron at gmail.com
Sat Jan 9 19:00:08 CST 2010


I want to play soft music in the background while the IVR passes
through various contexts.
In short, I need to mix the script with music and my pre-staged .gsm
or .wav audio.
What tools to I need to use in Asterisk to make this happen please?

exten => s,1,Answer()
;exten => s,n,system(echo "${DATETIME} - ${CALLERID(all)} -
${CHANNEL}" >> /var/log/asterisk/calls)
;exten => s,n,System(echo "body of message" | mail -s "subject line"
${the_caller_id}@txt.att.net)
exten => s,n,Background(dir-welcome)
exten => s,n,Background(/var/lib/asterisk/sounds/en/baseline_introduction_script.gsm)
exten => s,n,Background(astcc-please-enter-your)
exten => s,n,Background(zip-code)
exten => s,n,Read(NUMBER,,5)

so, play music behind (dir-welcome),
/var/lib/asterisk/sounds/en/baseline_introduction_script.gsm,
(astcc-please-enter-your) and (zip-code).

Send solutions please.



More information about the asterisk-users mailing list