[asterisk-users] Asterisk Manager to Record Greetings
Peder @ NetworkOblivion
peder at networkoblivion.com
Mon Aug 13 08:05:02 CDT 2007
FYI to anybody who cares, here is what I did:
1. Create web page where you enter a file name and a number to call
2. Insert the file name into the *DB via Asterisk Manager
3. Through Asterisk Manager create a call file from a "recording
extension" to the phone number entered in #1
4. The recording extension answers, plays a beep, records the call to
the file name that it pulls from the *DB
5. It plays the recording back and then hangs up
It works perfectly. Not quite what I planned, but it does work.
Doug Lytle wrote:
> 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
>
More information about the asterisk-users
mailing list