Add 'dictate.conf'

This commit is contained in:
Josh North 2019-02-15 12:00:22 -05:00
parent 4be1970b98
commit f1967bc342

10
dictate.conf Normal file
View File

@ -0,0 +1,10 @@
[dictate]
exten => s,1,Playback(/var/lib/asterisk/sounds/custom/dd-rad,skip)
exten => s,2,Dictate(/var/spool/asterisk/dictate)
exten => s,3,System(for i in /var/spool/asterisk/dictate/*.raw; do /usr/bin/sox -r 8000 -w -c 1 -s $i /var/spool/asterisk/dictate/radiology/$(basename $i .raw).wav; done)
exten => s,4,System(date > /var/spool/asterisk/dictate/radiology/Message.txt)
exten => s,5,System(mutt -s "Dictation from workgroup Radiology" -a /var/spool/asterisk/dictate/radiology/*.wav dictation@hospital.local < /var/spool/asterisk/dictate/radiology/Message.txt)
exten => s,6,System(rm -f /var/spool/asterisk/dictate/radiology/*.raw)
exten => s,7,System(mv /var/spool/asterisk/dictate/radiology/*.wav /var/spool/asterisk/dictate/radiology/*.wav.old)
exten => s,8,Wait,2
exten => s,9,Hangup