Unable to set utime on /var/spool/asterisk/outgoing/xxx.call

Hi,

In our scenario, we have generated the wav file on one machine and moved to the remote asterisk machine under this location /var/spool/asterisk/outgoing/xx.call. We observed the follwoing warning message at call initiated time.

[color=#BF0000]WARNING[18781] pbx_spool.c: Unable to set utime on /var/spool/asterisk/outgoing/5902_9xxxxxxxxxxx_qck1025.call: Operation not permitted[/color]

As per few below URL link advice, i have checked the folder and file ownership permission in that asterisk machine, everything was looking perfect.

Referred links are:
http://lists.digium.com/pipermail/asterisk-users/2012-April/271561.html
http://asteriskfaqs.org/tag/outgoing-directory

[color=#0000FF][root@localhost ~]# ll /var/spool/[/color]
[color=#008000]drwxrwxr-x. 9 asterisk asterisk 4096 Apr 10 2014 asterisk[/color]

Sub directories are like as given below.
[color=#0000FF][root@localhost ~]# ll /var/spool/asterisk/[/color]
drwxrw-r–. 2 asterisk asterisk 4096 Apr 10 2014 fax
drwxrwxr-x. 2 asterisk asterisk 4096 Mar 6 2013 meetme
drwxrw-r–. 2 asterisk asterisk 4096 Apr 10 2014 monitor
[[color=#008000]drwxr-xr-x 2 asterisk asterisk 4096 Apr 30 07:50 outgoing[/color]
drwxrwxr-x. 2 asterisk asterisk 4096 Mar 6 2013 system
drwxrwxr-x. 2 asterisk asterisk 4096 Mar 6 2013 tmp
drwxrwxr-x. 3 asterisk asterisk 4096 Apr 10 2014 voicemail

Note: We are accessing the remote asterisk machine by using root user credential, so the call file was showing as given below after moving the call file by root user.

[color=#0000FF][root@localhost ~]# ll /var/spool/asterisk/outgoing/[/color]
[color=#008000]-rw-r–r-- 1 asterisk root 139 Apr 30 07:48 5902_916142450377_qck1026.call[/color]

Finally it’s showing owner of the call file is asterisk & group owner name is root, i think almost is correct.

My question is,

  1. what should i do to prevent this warning message?
  2. It will affect another call file initiation?, (which means time duration)

Thanks,
Kalyan.

Hi
i faced this kind of topic building a massive sms system
http://www.pcbackup.it/asterisk-gui-chan_dongle-sms-call-file-with-timestamp

I think you could look at that to compare out efforts…

Just resolved exactly the same issue. It was simple

  1. Identified the uid:gid of asterisk user
id asterisk
uid=999(asterisk) gid=1000(asterisk) groups=1000(asterisk)
  1. then changed the ownership of the file
chown 999:1000 5902_9xxxxxxxxxxx_qck1025.call

(You’re replying to an 8 year old thread?)

chown asterisk:asterisk 5902_9xxxxxxxxxxx_qck1025.call
  1. More obvious for the next guy.
  2. More robust – it will still work if your next install is not 999:1000 or if someone changes the user’s UID/GID.