telnettech
Vendor
Can someone look at these instructions and tell me what is wrong with them? I am able to record the wav file but it doesnt overwrite the file that is played to the caller. We have the same thing setup for a job hotline and it works correctly. I just copied the instructions from the job hotline and changed the name of the file to record. I am able to manually copy the file to the original recording, but we want the site to be able to do this without us having to login and manually copy the new recording to old wav file.
[hr_menu_record]
exten => s,1,Record(res_menu_temp.wav|5|180)
exten => s,2,Goto(hr_menu_review,s,1)
[hr_menu_review]
exten => s,1,Playback(res_menu_temp)
exten => s,2,Background(record_options)
exten => s,3,WaitExten(5)
exten => 1,1,System(cp /var/lib/asterisk/sounds/res_menu_temp.wav /var/lib/asterisk/sounds/res_menu.wav)
exten => 1,2,Noop(${SYSTEMSTATUS})
exten => 1,3,Playback(auth-thankyou)
exten => 1,4,Hangup
exten => 2,1,Goto(hr_menu,s,1)
Any help will be greatly appreciated.
Thanks Brian
To error is human.....if the machine doesnt work, then KICK IT !!!!!!!!!!!!!
[hr_menu_record]
exten => s,1,Record(res_menu_temp.wav|5|180)
exten => s,2,Goto(hr_menu_review,s,1)
[hr_menu_review]
exten => s,1,Playback(res_menu_temp)
exten => s,2,Background(record_options)
exten => s,3,WaitExten(5)
exten => 1,1,System(cp /var/lib/asterisk/sounds/res_menu_temp.wav /var/lib/asterisk/sounds/res_menu.wav)
exten => 1,2,Noop(${SYSTEMSTATUS})
exten => 1,3,Playback(auth-thankyou)
exten => 1,4,Hangup
exten => 2,1,Goto(hr_menu,s,1)
Any help will be greatly appreciated.
Thanks Brian
To error is human.....if the machine doesnt work, then KICK IT !!!!!!!!!!!!!