[asterisk-users] Asterisk Manager to Record Greetings
Doug Lytle
support at drdos.info
Sun Aug 12 14:48:11 CDT 2007
Peder @ NetworkOblivion wrote:
> That's great, now say you have 5 or 6 AA's and each one has 10 different
> parts that you want to record ("thank you for calling..." "for Steve
> press
This is what I do. I found it some place on the wiki, it lets you
record many prompts.
exten => 4850,1,Goto(recordings,s,1)
; ******************************************
; Welcome to the Audio prompt recording menu
; ******************************************
exten => s,1,Playback(local/extension-recording-menu)
; ********************************
; Please record your message, when
; completed press the # key
; ********************************
exten => s,2,Playback(local/please-record-msg)
exten => s,3,Record(mymessage:gsm)
; ********
; You said
; ********
exten => s,4,Playback(local/you-said)
exten => s,5,Playback(mymessage)
; ***********************************************
; Press 1 to continue or 2 to change your message
; ***********************************************
exten => s,6,Background(local/press1-or-2)
exten => s,7,Set(TIMEOUT(response)=2)
exten => s,8,Set(TIMEOUT(digit)=2)
exten => 1,1,System(/bin/mv /var/lib/asterisk/sounds/mymessage.gsm
/var/lib/asterisk/sounds/local/`date +%s`.gsm)
; ****************************************
; Thank you, your recording has been saved
; ****************************************
exten => 1,2,Playback(local/recording-saved)
; *************************************************
; Press 3 to record another message, or 4 to hangup
; *************************************************
exten => 1,3,Background(local/press3-torecord-4tohang)
exten => 2,1,Goto(recordings,s,2)
exten => 3,1,Goto(recordings,s,2)
exten => 4,1,Playback(vm-goodbye)
exten => 4,2,Hangup()
exten => t,1,Playback(local/sorry-didnot-getthat)
exten => t,2,Goto(recordings,s,6)
exten => i,1,Playback(local/sorry-invalid-choice)
exten => i,2,Goto(recordings,s,2)
Doug
--
Ben Franklin quote:
"Those who would give up Essential Liberty to purchase a little Temporary Safety, deserve neither Liberty nor Safety."
More information about the asterisk-users
mailing list