NFS сервер (192.168.206.32)
# ls -l /volume1 |grep voice
drwxr-xr-x 2 root root 73728 2017-03-25 20:04 voicerecord
# cat /etc/exports |grep voice
/volume1/voicerecord/ 192.168.206.4(rw,async,no_subtree_check,fsid=0,no_root_squash)
NFS client (192.168.206.4)
# cat /etc/fstab |grep voice
192.168.206.32:/volume1/voicerecord /var/spool/asterisk/monitor nfs rw,async,auto
# mount |grep voice
192.168.206.32:/volume1/voicerecord on /var/spool/asterisk/monitor type nfs4 (rw,relatime,vers=4,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,port=0,timeo=600,retrans=2,sec=sys,clientaddr=192.168.206.4,minorversion=0,local_lock=none,addr=192.168.206.32)
У Asterisk нет прав на запись
[Mar 25 19:02:58] WARNING[3197]: file.c:1160 ast_writefile: Unable to open file /var/spool/asterisk/monitor/1490457776.0.wav: Permission denied
NFS client
root@asterisk:# touch /var/spool/asterisk/monitor/1490457776.0.wav
root@asterisk:# ls -l /var/spool/asterisk/monitor |grep 1490457776.0.wav
-rw-r--r-- 1 nobody nogroup 0 Mar 25 2017 1490457776.0.wav
root@asterisk:# rm /var/spool/asterisk/monitor/1490457776.0.wav
# ls -l voicerecord |grep 1490457776.0.wav
-rw-r--r-- 1 root root 0 2017-03-25 20:17 1490457776.0.wav