Author Topic: Asterisk Issue - Cannot write to sip.conf, retrieve sip.conf in 0810  (Read 2214 times)

bdfoster

  • Newbie
  • *
  • Posts: 10
    • View Profile
I just reinstalled 0810 on my core, and I tried to setup my phone lines. I used the webadmin to input the voip settings using the sipgate hack because my provider isn't on the list. I went to FreePBX to see if it took and to change the sip.conf a little, and it gives me those two errors. When I try to manually apply configuration changes, I get this error log:

   1.
      exit: 1
   2.
       
   3.
      Checking for PEAR DB..OK
   4.
      Checking for PEAR Console::Getopt..OK
   5.
      Checking for /etc/amportal.conf ..OK
   6.
      Bootstrapping /etc/amportal.conf ..OK
   7.
      Parsing /etc/amportal.conf ..OK
   8.
      Parsing /etc/asterisk/asterisk.conf ..OK
   9.
      Connecting to database..OK
  10.
      Connecting to Asterisk manager interface..OK
  11.
      Added to globals: ASTETCDIR = /etc/asterisk
  12.
      Added to globals: ASTMODDIR = /usr/lib/asterisk/modules
  13.
      Added to globals: ASTVARLIBDIR = /var/lib/asterisk
  14.
      Added to globals: ASTAGIDIR = /usr/share/asterisk/agi-bin
  15.
      Added to globals: ASTSPOOLDIR = /var/spool/asterisk
  16.
      Added to globals: ASTRUNDIR = /var/run/asterisk
  17.
      Added to globals: ASTLOGDIR = /var/log/asterisk
  18.
      Added to globals: CWINUSEBUSY = true
  19.
      Added to globals: AMPMGRUSER = admin
  20.
      Added to globals: AMPMGRPASS = adminsecret
  21.
       
  22.
      Warning: fopen(/etc/asterisk/extensions_additional.conf): failed to open stream: Permission denied in /var/lib/asterisk/bin/retrieve_conf on line 414
  23.
       
  24.
      Warning: fopen(/etc/asterisk/meetme_additional.conf): failed to open stream: Permission denied in /var/lib/asterisk/bin/retrieve_conf on line 414
  25.
       
  26.
      Warning: fopen(/etc/asterisk/sip_additional.conf): failed to open stream: Permission denied in /var/lib/asterisk/bin/libfreepbx.confgen.php on line 25
  27.
      [FATAL] Cannot write SIP configurations Failed creating/overwriting SIP extensions file: /etc/asterisk/sip_additional.conf
  28.
       
  29.
      1 error(s) occured, you should view the notification log on the dashboard or main screen to check for more details.


Anything I can do at this point? Looks like permissions, but I am not for sure. This didn't happen last time I installed, a little over a week ago.
Have Fun - Bdfoster

pigdog

  • wants to work for LinuxMCE
  • **
  • Posts: 999
    • View Profile
Re: Asterisk Issue - Cannot write to sip.conf, retrieve sip.conf in 0810
« Reply #1 on: June 13, 2009, 04:13:16 pm »
Hi,

Did you see this post?

http://forum.linuxmce.org/index.php?PHPSESSID=7c0a86df1d22e8c00a602395ee3ad225&topic=8196.0

Hope there is some help with permissions there.