FreePBX Paid Support


Not Logged in - No Account?

Don't have an account? Registering an account with us allows you to post to the forums, easily track new posts, subscribe to threads, pm (private message) other forum members, and receive periodic news letters (you can opt out if you desire). Once you are logged in this message will no longer appear. If you don't have an account, you can create one by registering here. Lost your password, request a new password. We respect your privacy which means we collect minimal information when you register and we do not resell that information or use it in any objectionable way. You can review our privacy policy for full details.


Failed creating/overwriting SIP extensions file: /etc/asterisk/sip_additional.conf

mustardman's picture

Just got this error (towards the bottom) on a FreePBX system when trying to apply changes.

exit: 1

Checking for PEAR DB..OK

Checking for PEAR Console::Getopt..OK

Checking for /etc/amportal.conf ..OK

Bootstrapping /etc/amportal.conf ..OK

Parsing /etc/amportal.conf ..OK

Parsing /etc/asterisk/asterisk.conf ..OK

Connecting to database..OK

Connecting to Asterisk manager interface..OK

Added to globals: ASTETCDIR = /etc/asterisk

Added to globals: ASTMODDIR = /usr/lib/asterisk/modules

Added to globals: ASTVARLIBDIR = /var/lib/asterisk

Added to globals: ASTAGIDIR = /var/lib/asterisk/agi-bin

Added to globals: ASTSPOOLDIR = /var/spool/asterisk

Added to globals: ASTRUNDIR = /var/run/asterisk

Added to globals: ASTLOGDIR = /var/log/asterisk

Added to globals: CWINUSEBUSY = true

Added to globals: AMPMGRUSER = admin

Added to globals: AMPMGRPASS = amp111

[FATAL] Cannot write SIP configurations Failed creating/overwriting SIP extensions file: /etc/asterisk/sip_additional.conf

Reload failed because retrieve_conf encountered an error: 1
Added 12 minutes ago
(freepbx.RCONFFAIL)

Failed creating/overwriting SIP extensions file: /etc/asterisk/sip_additional.conf
Added 12 minutes ago
(retrieve_conf.FATAL)

System has been running for a few weeks before this problem came up. Doing an "amportal restart" corrected the error.
Anyone have any idea what may be going one so that I can come up with a permanent solution?

CentOS v5.1
Asterisk v1.4.15
Asterisk-addons v1.4.5
FreePBX v 2.3.1.x
Zaptel v1.4.7
Sangoma Wanpipe v3.2.1
Octasic echo can (AMD32) v1.04
Webmin v1.38

All FreePBX modules up to date except I see that the "Core" module had a recent update which I have now applied.


__________________


Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

sounds like someone may have

p_lindheimer's picture

sounds like someone may have changed the permission of sip_additional.conf at some point. Nothing in FreePBX should be able to do that (as it should all be running as user asterisk). When you run amportal restart, it executes a "chown asterisk:asterisk *" to several key directories and /etc/asterisk is one of them. That is why it got fixed.


__________________

Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here


Thanks for the reply

mustardman's picture

Thanks for the reply p_lindheimer,

Looking at the dashboard this morning I am also getting this error. I also saw this yesterday before I restarted amportal. Apply changes still works though.

" symlink from modules failed
retrieve_conf failed to sym link the /etc/asterisk/extensions.conf file from modules
Added 3 hours, 45 minutes ago
(retrieve_conf.SYMLINK)"


anyone?

mustardman's picture

anyone?


it usually means that you

p_lindheimer's picture

it usually means that you have a 'real' copy of extensions.conf in /etc/asterisk in which case it will not get sym-linked in case you did that on purpose (even though you shouldn't) just mv/delete /etc/asterisk and let the symlink happen.


__________________

Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here


Thanks Philippe, Not me but

mustardman's picture

Thanks Philippe,

Not me but someone else without my knowledge I guess.

Now that I know what is happening I know what to put on the bill I will be sending them ;)


since you are billing them,

p_lindheimer's picture

since you are billing them, I'll be looking to see that donate button get hit to send that piece this way (or you can hit the support button if you can't make donate tax deductible)...


__________________

Philippe Lindheimer - FreePBX Project Leader
FreePBX Training Opportunities - Click Here
Get Official Paid Support - Click Here


Yes, after I posted that it

mustardman's picture

Yes, after I posted that it occurred to me that a donation would be appropriate. Thanks for the reminder.


Thanks - fixed the problem for me

chrisbryant's picture

p_lindheimer, thanks for the note about just removing the extensions.conf file (make a backup first of course just in case) and letting it recreate the symlink automatically by running retrieve_conf in /var/lib/asterisk/bin/. It worked like a charm.


__________________

--
Gravitek Labs