Project

General

Profile

Could not create file /var/spool/asterisk/monitor (GOAutodial Scratch on Centos 7)

Added by Gianni De Fanis almost 7 years ago

Hi guys.. I checked the owner of the folders MonitorDONE (asterisk)

[root@goautodial-7 asterisk]# ll
total 28
drwxrwxr-x. 2 asterisk asterisk 4096 Aug 1 2014 meetme
drwxrw-rw-. 3 root root 4096 Jun 17 17:52 monitor
drwxr-xr-x. 9 root root 4096 Jun 17 17:52 monitorDONE
drwxr-xr-x. 2 asterisk asterisk 4096 Jun 17 17:45 outgoing
drwxrwxr-x. 2 asterisk asterisk 4096 Aug 1 2014 system
drwxrwxr-x. 2 asterisk asterisk 4096 Aug 1 2014 tmp
drwxrwxr-x. 2 asterisk asterisk 4096 Aug 1 2014 voicemail

..and I checked astguiclient.conf

  1. Paths used by astGUIclient
    PATHhome => /usr/share/astguiclient
    PATHlogs => /var/log/astguiclient
    PATHagi => /var/lib/asterisk/agi-bin
    PATHweb => /var/www/html
    PATHsounds => /var/lib/asterisk/sounds
    PATHmonitor => /var/spool/asterisk/monitor
    PATHDONEmonitor => /var/spool/asterisk/monitorDONE

But i keep on having this error.

-- Executing [58600051@default:1] MeetMe("Local/58600051@default-00000001;2", "8600051,Fmq") in new stack
-- Executing [8309@default:1] Answer("Local/58600051@default-00000001;1", "") in new stack
-- Executing [8309@default:2] Monitor("Local/58600051@default-00000001;1", "wav,20170620-064342_0373259XXX") in new stack
[Jun 20 06:43:42] WARNING[4587]: file.c:1169 ast_writefile: Unable to open file /var/spool/asterisk/monitor/20170620-064342_0373259427-in.wav: Permission denied
[Jun 20 06:43:42] WARNING[4587]: res_monitor.c:363 ast_monitor_start: Could not create file /var/spool/asterisk/monitor/20170620-064342_0373259427-in
[Jun 20 06:43:42] WARNING[4587]: res_monitor.c:633 ast_monitor_change_fname: Cannot change monitor filename of channel Local/58600051@default-00000001;1 to 20170620-064342_0373259427, monitoring not started

Where am I wrong?


Replies (3)

RE: Could not create file /var/spool/asterisk/monitor (GOAutodial Scratch on Centos 7) - Added by striker 247 almost 7 years ago

try

cd /var/spool/asterisk
chmod -r 755 monitor

regards
striker
striker24x7.blogspot.com

RE: Could not create file /var/spool/asterisk/monitor (GOAutodial Scratch on Centos 7) - Added by striker 247 almost 7 years ago

try

cd /var/spool/asterisk
chmod -r 777 monitor

regards
striker
striker24x7.blogspot.com

RE: Could not create file /var/spool/asterisk/monitor (GOAutodial Scratch on Centos 7) - Added by Gianni De Fanis almost 7 years ago

It worked changing permissions on monitor and also on monitorDONE! Thanks Striker

    (1-3/3)
    Go to top