Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

recording instructions not correct?

Status
Not open for further replies.

telnettech

Vendor
May 5, 2005
207
0
0
US
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 !!!!!!!!!!!!!
 
make sure that the asterisk user has permissions to overwrite the destination file...

 
engjohn,

How and where do you do that? Please advise.


Brian

To error is human.....if the machine doesnt work, then KICK IT !!!!!!!!!!!!!
 
at the file system level..
go to the directory and check permissions
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top