All, I'm not able to play background files since this morning. I'm seeing this error message in the logs: [Oct 17 10:23:56] WARNING[4572] file.c: File custom/asterisk-prospectus_IVR-main-day does not exist in any format [Oct 17 10:23:56] WARNING[4572] file.c: Unable to open custom/asterisk-prospectus_IVR-main-day (format 0x4 (ulaw)): Permission denied [Oct 17 10:23:56] WARNING[4572] pbx.c: ast_streamfile failed on IAX2/teliax-2 for custom/asterisk-prospectus_IVR-main-day I know the file is there & was working last week. I did update some files on the server over the weekend. I built Asterisk from SVN-trunk-r44731. Any help? Thanks, Jack Morgan
On Tuesday 17 October 2006 11:12, Jack Morgan wrote:> All, > > I'm not able to play background files since this morning. I'm seeing this > error message in the logs: > > [Oct 17 10:23:56] WARNING[4572] file.c: File > custom/asterisk-prospectus_IVR-main-day does not exist in any format > [Oct 17 10:23:56] WARNING[4572] file.c: Unable to open > custom/asterisk-prospectus_IVR-main-day (format 0x4 (ulaw)): Permission > denied > [Oct 17 10:23:56] WARNING[4572] pbx.c: ast_streamfile failed on > IAX2/teliax-2 for custom/asterisk-prospectus_IVR-main-day > > I know the file is there & was working last week. I did update some files > on the server over the weekend. I built Asterisk from SVN-trunk-r44731. > Any help?Nevermind. Looks like it was a local user permission problem just like the error message indicated. Thanks, Jack Morgan
On Tue, 2006-10-17 at 11:12 -0700, Jack Morgan wrote:> All, > > I'm not able to play background files since this morning. I'm seeing this > error message in the logs: > > [Oct 17 10:23:56] WARNING[4572] file.c: File > custom/asterisk-prospectus_IVR-main-day does not exist in any format > [Oct 17 10:23:56] WARNING[4572] file.c: Unable to open > custom/asterisk-prospectus_IVR-main-day (format 0x4 (ulaw)): Permission > denied > [Oct 17 10:23:56] WARNING[4572] pbx.c: ast_streamfile failed on IAX2/teliax-2 > for custom/asterisk-prospectus_IVR-main-day > > I know the file is there & was working last week. I did update some files on > the server over the weekend. I built Asterisk from SVN-trunk-r44731. Any > help?Well, Permission denied does make it quite obvious ;-) Assuming it runs on linux try 'ps axu|grep asterisk', That will list the user id of the asterisk process, then run chown userid ......custom/asterisk-prospectus_IVR-main-day.* a google for unix file permissions might help too. Conrad
On 2006-10-17 11:12:27 -0700, Jack Morgan <jack@bonyari.com> said:> All, > > I'm not able to play background files since this morning. I'm seeing > this error message in the logs: > > [Oct 17 10:23:56] WARNING[4572] file.c: File > custom/asterisk-prospectus_IVR-main-day does not exist in any format > [Oct 17 10:23:56] WARNING[4572] file.c: Unable to open > custom/asterisk-prospectus_IVR-main-day (format 0x4 (ulaw)): Permission > denied > [Oct 17 10:23:56] WARNING[4572] pbx.c: ast_streamfile failed on > IAX2/teliax-2 for custom/asterisk-prospectus_IVR-main-day > > I know the file is there & was working last week. I did update some > files on the server over the weekend. I built Asterisk from > SVN-trunk-r44731. Any help?Looks like it could just be a permissions issue, I would check that first...
Can anyone tell me why the following code snipet does not behave the way I would expect? The "background" audio files are gsm and play fine. Here is what happens. When the set-day-night context is called it plays the menu asking to select 0,1, or 2. It then immediately "falls through" and terminates never waiting for the selection. Doesn't the timeout function determine the length of time it waits regardless of the actual sound file length? I have tried lengthening the time to no avail. The line marked below "waitexten" was added to make it work. It does not have the same functionality though with this added. The code minus this line is textbook basic IVR as far as I can tell. Comments??? Doug [set-day-night] exten => s,1,Answer exten => s,2,SetMusicOnHold(default) exten => s,3,Set(TIMEOUT(digit)=5) exten => s,4,Set(TIMEOUT(response)=10) exten => s,5,Background(doug/select-day-night) exten => s,6,waitexten >>>> added line exten => s,7,hangup() exten => 0,1,SetGlobalVar(day-night=0) exten => 0,2,Playback(doug/day-night-mode-reset) exten => 0,3,Hangup() exten => 1,1,SetGlobalVar(day-night=1) exten => 1,2,Playback(doug/day-mode) exten => 1,3,Hangup() exten => 2,1,SetGlobalVar(day-night=2) exten => 2,2,Playback(doug/night-mode) exten => 2,3,Hangup() exten => t,1,Goto(#,1) ; If they take too long, give up exten => i,1,Playback(invalid) ; "That's not valid, try again" exten => i,2,Hangup()