[Asterisk-Users] Record() permission problem

Tzafrir Cohen tzafrir at cohens.org.il
Mon Aug 1 12:17:00 MST 2005


On Sat, Jul 30, 2005 at 09:51:22PM -0400, Jim Archer wrote:
> Hi All...
> 
> I'm trying to use the record() app and it complains that it can't open it's 
> file because permission was denied.  I'm running the released Asterisk on 
> Debian Linux.  The target directory is workd writable.  Here is the 
> relevant part of the dialplan:
> 
> exten => 1,1,Playback(leave-message)
> exten => 1,2, Record(/var/local/whois-messages/whois-${contactid}:wav|6|120)
> 
> 
> Here is the output from Asterisk:
> 
>    -- Executing Record("Zap/9-1", 
> "/var/local/whois-messages/whois-321:wav|6|120") in new stack
>    -- Playing 'beep' (language 'en')
> Jul 30 21:44:20 WARNING[4206]: file.c:910 ast_writefile: Unable to open 
> file /var/local/whois-messages/whois-321.wav: Permission denied
> Jul 30 21:44:20 WARNING[4206]: app_record.c:299 record_exec: Could not 
> create file /var/local/whois-messages/whois-321
> 

Do you use official debs (where sound resides under
/usr/share/asterisk/sound )?

Does Record("/full/path") record to /full/path or to /full/path
relativly to the default sound files path?

And natuarally: can the asterisk user write there? Please provide the
output of the following:

  groups asterisk
  ls -la /var/local/whois-messages/

-- 
Tzafrir Cohen         | tzafrir at jbr.cohens.org.il | VIM is
http://tzafrir.org.il |                           | a Mutt's  
tzafrir at cohens.org.il |                           |  best
ICQ# 16849755         |                           | friend



More information about the asterisk-users mailing list