Unable to change config files via FreePBX after updating to v 2.9

Hi,

After upgrading FreePBX from version 2.8 to 2.9 (Asterisk 1.6.2.14 on Centos 5.5), I found that changes made to FreePBX are not sticking, i.e. changes are not carrying over to the various .conf files FreePBX is supposed to update. After some troubleshooting etc, I found that the primary reason seems to be that FreePBX upgrade installed several files on root rather than at /etc/asterisk or other locations. Changes being made via FreePBX are making the changes at the root level files other than the files on The phone system itself works fine, we are just unable to make changes.

The files that were installed onto root are:
chan_dahdi_additional.conf
extensions_additional.conf
features_applicationmap_additional.conf
features_general_additional.conf
features_featuremap_additional.conf
iax_additional.conf
iax_general_additional.conf
iax_registrations.conf
localprefixes.conf
logger_general_additional.conf
logger_logfiles_additional.con
meetme_additional.conf
queues_additional.conf
queues_general_additional.conf
sip_additional.conf
sip_general_additional.conf
sip_notify_additional.conf
sip_registrations.conf

The amportal.conf file is pointing to the proper directories it seems- I have included a retrieve_conf -debug output from both the
/var/www/html…/framework/bin and /var/lib/asterisk/bin

[[email protected] /]# /var/www/html/admin/modules/framework/bin/retrieve_conf --debug
Checking for PEAR Console::Getopt…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 = xxx
Added to globals: AMPMGRPASS = xxx
Added to globals: AMPDBENGINE = mysql
Added to globals: AMPDBHOST = localhost
Added to globals: AMPDBNAME = asterisk
Added to globals: AMPDBUSER = xxxx
Added to globals: AMPDBPASS = xxx
Added to globals: VMX_CONTEXT = from-internal
Added to globals: VMX_PRI = 1
Added to globals: VMX_TIMEDEST_CONTEXT =
Added to globals: VMX_TIMEDEST_EXT = dovm
Added to globals: VMX_TIMEDEST_PRI = 1
Added to globals: VMX_LOOPDEST_CONTEXT =
Added to globals: VMX_LOOPDEST_EXT = dovm
Added to globals: VMX_LOOPDEST_PRI = 1
Added to globals: MIXMON_DIR =
Added to globals: MIXMON_POST =
processing AS_DISPLAY_FRIENDLY_NAME => 1
processing AS_DISPLAY_HIDDEN_SETTINGS => 0
processing AS_DISPLAY_READONLY_SETTINGS => 0
processing AS_OVERRIDE_READONLY => 0
processing ASTMANAGERHOST => localhost
processing AMPMGRPASS => amp111
processing ASTMANAGERPORT => 5038
processing ASTMANAGERPROXYPORT =>
processing AMPMGRUSER => admin
processing AMPBACKUPEMAILFROM =>
processing AMPBACKUPADVANCED => 0
processing DAYNIGHTTCHOOK =>
processing FORCE_JS_CSS_IMG_DOWNLOAD => 0
processing AMPLOCALBIN =>
processing FPBXDBUGFILE => /tmp/freepbx_debug.log
processing DEVEL =>
processing FPBXDBUGDISABLE =>
processing DISABLE_CSS_AUTOGEN => 0
processing MODULEADMIN_SKIP_CACHE => 0
processing DEVELRELOAD =>
processing POST_RELOAD_DEBUG => 0
processing POST_RELOAD =>
processing PRE_RELOAD =>
processing DIE_FREEPBX_VERBOSE => 0
processing USE_PACKAGED_JS => 1
processing MIXMON_POST =>
processing ALWAYS_SHOW_DEVICE_DETAILS => 0
processing DEVICE_STRONG_SECRETS => 1
processing DEVICE_SIP_CANREINVITE => no
processing DEVICE_SIP_TRUSTRPID => yes
processing DEVICE_SIP_SENDRPID => no
processing DEVICE_SIP_NAT => no
processing DEVICE_SIP_ENCRYPTION => no
processing DEVICE_SIP_QUALIFYFREQ => 60
processing DEVICE_QUALIFY => yes
processing DEVICE_ALLOW =>
processing DEVICE_DISALLOW =>
processing DEVICE_CALLGROUP =>
processing DEVICE_PICKUPGROUP =>
processing BLOCK_OUTBOUND_TRUNK_CNAM => 0
processing CFRINGTIMERDEFAULT => 0
processing ZAP2DAHDICOMPAT =>
processing ENABLECW => 1
processing DISABLECUSTOMCONTEXTS =>
processing DITECH_VQA_INBOUND => 7
processing DITECH_VQA_OUTBOUND => 7
processing DYNAMICHINTS =>
processing USEDEVSTATE =>
processing CONCURRENCYLIMITDEFAULT => 0
processing FCBEEPONLY => 0
processing FORCE_INTERNAL_AUTO_ANSWER_ALL => 0
processing DIVERSIONHEADER =>
processing DEFAULT_INTERNAL_AUTO_ANSWER => disabled
processing NOOPTRACE => 0
processing CWINUSEBUSY => 1
processing CID_PREPEND_REPLACE => 1
processing ASTSTOPPOLLINT => 2
processing AMPBADNUMBER => 1
processing USEGOOGLEDNSFORENUM => 0
processing ASTSTOPTIMEOUT => 120
processing AUTOMIXMON => 0
processing ASTAGIDIR => /var/lib/asterisk/agi-bin
processing ASTVARLIBDIR => /var/lib/asterisk
processing ASTETCDIR => /etc/asterisk
processing ASTLOGDIR => /var/log/asterisk
processing ASTMODDIR => /usr/lib/asterisk/modules
processing ASTRUNDIR => /var/run/asterisk
processing ASTSPOOLDIR => /var/spool/asterisk
processing AMPCGIBIN => /var/www/cgi-bin
processing AMPBIN => /var/lib/asterisk/bin
processing AMPSBIN => /usr/local/sbin
processing AMPWEBROOT => /var/www/html
processing MOHDIR => mohmp3
processing MIXMON_DIR =>
processing FOPDISABLE =>
processing FOPPASSWORD => password.1
processing FOPSORT => extension
processing FOPWEBROOT => /var/www/html/panel
processing FOPRUN => 1
processing BADDESTABORT =>
processing XTNCONFLICTABORT =>
processing CHECKREFERER => 1
processing SERVERINTITLE =>
processing CUSTOMASERROR => 1
processing RELOADCONFIRM => 1
processing USECATEGORIES => 1
processing MODULEADMINWGET => 1
processing DASHBOARD_INFO_UPDATE_TIME => 30
processing MAXCALLS =>
processing DASHBOARD_STATS_UPDATE_TIME => 6
processing AST_APP_VQA =>
processing AST_FUNC_CONNECTEDLINE =>
processing AST_FUNC_DEVICE_STATE => DEVICE_STATE
processing AST_FUNC_EXTENSION_STATE => EXTENSION_STATE
processing AST_FUNC_MASTER_CHANNEL =>
processing AST_FUNC_SHARED => SHARED
processing ASTVERSION => 1.6.2.14
processing mainstyle_css_generated => common/mstyle_autogen_1320332730.css
processing mainstyle_css_mtime => 1320332730
processing QUEUES_PESISTENTMEMBERS => 1
processing QUEUES_SHARED_LASTCALL => 1
processing QUEUES_UPDATECDR => 0
processing QUEUES_MIX_MONITOR => 1
processing QUEUES_HIDE_NOANSWER => 1
processing USEQUEUESTATE =>
processing CDRDBHOST =>
processing CDRDBNAME =>
processing CDRDBPASS =>
processing CDRDBPORT =>
processing CDRDBTABLENAME =>
processing CDRDBTYPE =>
processing CDRDBUSER =>
processing AMPADMINLOGO => logo.png
processing BRAND_IMAGE_HIDE_NAV_BACKGROUND => 0
processing BRAND_IMAGE_SHADOW_SIDE_BACKGROUND => images/shadow-side-background.png
processing BRAND_IMAGE_FREEPBX_RIGHT => images/logo.png
processing BRAND_IMAGE_FREEPBX_LEFT => images/freepbx_large.png
processing BRAND_IMAGE_FREEPBX_FOOT => images/freepbx_small.png
processing BRAND_IMAGE_RELOAD_LOADING => images/loading.gif
processing BRAND_FREEPBX_ALT_LEFT =>
processing BRAND_FREEPBX_ALT_RIGHT =>
processing BRAND_FREEPBX_ALT_FOOT =>
processing BRAND_IMAGE_FREEPBX_LINK_LEFT =>
processing BRAND_IMAGE_FREEPBX_LINK_RIGHT =>
processing BRAND_IMAGE_FREEPBX_LINK_FOOT =>
processing BRAND_HIDE_LOGO_RIGHT => 0
processing BRAND_HIDE_HEADER_VERSION => 0
processing BRAND_HIDE_HEADER_MENUS => 0
processing BRAND_CSS_ALT_MAINSTYLE =>
processing BRAND_CSS_CUSTOM =>
processing VIEW_FREEPBX_ADMIN => views/freepbx_admin.php
processing VIEW_FREEPBX => views/freepbx.php
processing VIEW_FREEPBX_RELOAD => views/freepbx_reload.php
processing VIEW_FREEPBX_RELOADBAR => views/freepbx_reloadbar.php
processing VIEW_WELCOME => views/welcome.php
processing VIEW_WELCOME_NONMANAGER => views/welcome_nomanager.php
processing VIEW_MENUITEM_DISABLED => views/menuitem_disabled.php
processing VIEW_NOACCESS => views/noaccess.php
processing VIEW_UNAUTHORIZED => views/unauthorized.php
processing VIEW_BAD_REFFERER => views/bad_refferer.php
processing VIEW_LOGGEDOUT => views/loggedout.php
processing VIEW_PANEL => views/panel.php
processing VIEW_REPORTS => views/reports.php
processing AMPSYSLOGLEVEL => FILE
processing AMPDISABLELOG => 1
processing LOG_OUT_MESSAGES => 1
processing LOG_NOTIFICATIONS => 1
processing FPBX_LOG_FILE => /var/log/asterisk/freepbx.log
processing PHP_ERROR_HANDLER_OUTPUT => dbug
processing AMPEXTENSIONS => extensions
processing AUTHTYPE => none
processing AMP_ACCESS_DB_CREDS => 0
processing ARI_ADMIN_USERNAME => admin
processing ARI_ADMIN_PASSWORD => ari_password
processing AMPVMUMASK => 007
processing FORCED_ASTVERSION =>
processing AMPWEBADDRESS => xx.xx.xx.xx
processing AMPASTERISKGROUP => asterisk
processing AMPASTERISKUSER => asterisk
processing AMPDEVGROUP => asterisk
processing AMPDEVUSER => asterisk
processing AMPASTERISKWEBGROUP => asterisk
processing AMPASTERISKWEBUSER => asterisk
processing AMPENGINE => asterisk
processing AMPMPG123 => 1
processing SSHPORT =>
processing AMPPLAYKEY =>
processing PARKINGPATCH => 0
processing TCMAINT => 1
processing TCINTERVAL => 60
processing VMX_CONTEXT => from-internal
processing VMX_LOOPDEST_CONTEXT =>
processing VMX_LOOPDEST_EXT => dovm
processing VMX_LOOPDEST_PRI => 1
processing VMX_PRI => 1
processing VMX_TIMEDEST_CONTEXT =>
processing VMX_TIMEDEST_EXT => dovm
processing VMX_TIMEDEST_PRI => 1
processing VM_SHOW_IMAP => 0
processing AMPDBUSER => asteriskuser
setting category old value Voicemail Module
processing AMPDBPASS => xxxx
processing AMPDBHOST => localhost
processing AMPDBNAME => asterisk
processing AMPDBENGINE => mysql
processing datasource =>
processing AMPENABLEDEVELDEBUG =>
[ERROR] error running retrieve_op_conf_from_mysql.php
Please update your modules and reload Asterisk by visiting http://xx.xx.xx.x/admin

[[email protected] /]# /var/lib/asterisk/bin/retrieve_conf --debug
Checking for PEAR Console::Getopt…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 = xxx
Added to globals: AMPMGRPASS = xxx
Added to globals: AMPDBENGINE = mysql
Added to globals: AMPDBHOST = localhost
Added to globals: AMPDBNAME = asterisk
Added to globals: AMPDBUSER = xxx
Added to globals: AMPDBPASS = xxx
Added to globals: VMX_CONTEXT = from-internal
Added to globals: VMX_PRI = 1
Added to globals: VMX_TIMEDEST_CONTEXT =
Added to globals: VMX_TIMEDEST_EXT = dovm
Added to globals: VMX_TIMEDEST_PRI = 1
Added to globals: VMX_LOOPDEST_CONTEXT =
Added to globals: VMX_LOOPDEST_EXT = dovm
Added to globals: VMX_LOOPDEST_PRI = 1
Added to globals: MIXMON_DIR =
Added to globals: MIXMON_POST =
processing AS_DISPLAY_FRIENDLY_NAME => 1
processing AS_DISPLAY_HIDDEN_SETTINGS => 0
processing AS_DISPLAY_READONLY_SETTINGS => 0
processing AS_OVERRIDE_READONLY => 0
processing ASTMANAGERHOST => localhost
processing AMPMGRPASS => amp111
processing ASTMANAGERPORT => 5038
processing ASTMANAGERPROXYPORT =>
processing AMPMGRUSER => admin
processing AMPBACKUPEMAILFROM =>
processing AMPBACKUPADVANCED => 0
processing DAYNIGHTTCHOOK =>
processing FORCE_JS_CSS_IMG_DOWNLOAD => 0
processing AMPLOCALBIN =>
processing FPBXDBUGFILE => /tmp/freepbx_debug.log
processing DEVEL =>
processing FPBXDBUGDISABLE =>
processing DISABLE_CSS_AUTOGEN => 0
processing MODULEADMIN_SKIP_CACHE => 0
processing DEVELRELOAD =>
processing POST_RELOAD_DEBUG => 0
processing POST_RELOAD =>
processing PRE_RELOAD =>
processing DIE_FREEPBX_VERBOSE => 0
processing USE_PACKAGED_JS => 1
processing MIXMON_POST =>
processing ALWAYS_SHOW_DEVICE_DETAILS => 0
processing DEVICE_STRONG_SECRETS => 1
processing DEVICE_SIP_CANREINVITE => no
processing DEVICE_SIP_TRUSTRPID => yes
processing DEVICE_SIP_SENDRPID => no
processing DEVICE_SIP_NAT => no
processing DEVICE_SIP_ENCRYPTION => no
processing DEVICE_SIP_QUALIFYFREQ => 60
processing DEVICE_QUALIFY => yes
processing DEVICE_ALLOW =>
processing DEVICE_DISALLOW =>
processing DEVICE_CALLGROUP =>
processing DEVICE_PICKUPGROUP =>
processing BLOCK_OUTBOUND_TRUNK_CNAM => 0
processing CFRINGTIMERDEFAULT => 0
processing ZAP2DAHDICOMPAT =>
processing ENABLECW => 1
processing DISABLECUSTOMCONTEXTS =>
processing DITECH_VQA_INBOUND => 7
processing DITECH_VQA_OUTBOUND => 7
processing DYNAMICHINTS =>
processing USEDEVSTATE =>
processing CONCURRENCYLIMITDEFAULT => 0
processing FCBEEPONLY => 0
processing FORCE_INTERNAL_AUTO_ANSWER_ALL => 0
processing DIVERSIONHEADER =>
processing DEFAULT_INTERNAL_AUTO_ANSWER => disabled
processing NOOPTRACE => 0
processing CWINUSEBUSY => 1
processing CID_PREPEND_REPLACE => 1
processing ASTSTOPPOLLINT => 2
processing AMPBADNUMBER => 1
processing USEGOOGLEDNSFORENUM => 0
processing ASTSTOPTIMEOUT => 120
processing AUTOMIXMON => 0
processing ASTAGIDIR => /var/lib/asterisk/agi-bin
processing ASTVARLIBDIR => /var/lib/asterisk
processing ASTETCDIR => /etc/asterisk
processing ASTLOGDIR => /var/log/asterisk
processing ASTMODDIR => /usr/lib/asterisk/modules
processing ASTRUNDIR => /var/run/asterisk
processing ASTSPOOLDIR => /var/spool/asterisk
processing AMPCGIBIN => /var/www/cgi-bin
processing AMPBIN => /var/lib/asterisk/bin
processing AMPSBIN => /usr/local/sbin
processing AMPWEBROOT => /var/www/html
processing MOHDIR => mohmp3
processing MIXMON_DIR =>
processing FOPDISABLE =>
processing FOPPASSWORD => password.1
processing FOPSORT => extension
processing FOPWEBROOT => /var/www/html/panel
processing FOPRUN => 1
processing BADDESTABORT =>
processing XTNCONFLICTABORT =>
processing CHECKREFERER => 1
processing SERVERINTITLE =>
processing CUSTOMASERROR => 1
processing RELOADCONFIRM => 1
processing USECATEGORIES => 1
processing MODULEADMINWGET => 1
processing DASHBOARD_INFO_UPDATE_TIME => 30
processing MAXCALLS =>
processing DASHBOARD_STATS_UPDATE_TIME => 6
processing AST_APP_VQA =>
processing AST_FUNC_CONNECTEDLINE =>
processing AST_FUNC_DEVICE_STATE => DEVICE_STATE
processing AST_FUNC_EXTENSION_STATE => EXTENSION_STATE
processing AST_FUNC_MASTER_CHANNEL =>
processing AST_FUNC_SHARED => SHARED
processing ASTVERSION => 1.6.2.14
processing mainstyle_css_generated => common/mstyle_autogen_1320332730.css
processing mainstyle_css_mtime => 1320332730
processing QUEUES_PESISTENTMEMBERS => 1
processing QUEUES_SHARED_LASTCALL => 1
processing QUEUES_UPDATECDR => 0
processing QUEUES_MIX_MONITOR => 1
processing QUEUES_HIDE_NOANSWER => 1
processing USEQUEUESTATE =>
processing CDRDBHOST =>
processing CDRDBNAME =>
processing CDRDBPASS =>
processing CDRDBPORT =>
processing CDRDBTABLENAME =>
processing CDRDBTYPE =>
processing CDRDBUSER =>
processing AMPADMINLOGO => logo.png
processing BRAND_IMAGE_HIDE_NAV_BACKGROUND => 0
processing BRAND_IMAGE_SHADOW_SIDE_BACKGROUND => images/shadow-side-background.png
processing BRAND_IMAGE_FREEPBX_RIGHT => images/logo.png
processing BRAND_IMAGE_FREEPBX_LEFT => images/freepbx_large.png
processing BRAND_IMAGE_FREEPBX_FOOT => images/freepbx_small.png
processing BRAND_IMAGE_RELOAD_LOADING => images/loading.gif
processing BRAND_FREEPBX_ALT_LEFT =>
processing BRAND_FREEPBX_ALT_RIGHT =>
processing BRAND_FREEPBX_ALT_FOOT =>
processing BRAND_IMAGE_FREEPBX_LINK_LEFT =>
processing BRAND_IMAGE_FREEPBX_LINK_RIGHT =>
processing BRAND_IMAGE_FREEPBX_LINK_FOOT =>
processing BRAND_HIDE_LOGO_RIGHT => 0
processing BRAND_HIDE_HEADER_VERSION => 0
processing BRAND_HIDE_HEADER_MENUS => 0
processing BRAND_CSS_ALT_MAINSTYLE =>
processing BRAND_CSS_CUSTOM =>
processing VIEW_FREEPBX_ADMIN => views/freepbx_admin.php
processing VIEW_FREEPBX => views/freepbx.php
processing VIEW_FREEPBX_RELOAD => views/freepbx_reload.php
processing VIEW_FREEPBX_RELOADBAR => views/freepbx_reloadbar.php
processing VIEW_WELCOME => views/welcome.php
processing VIEW_WELCOME_NONMANAGER => views/welcome_nomanager.php
processing VIEW_MENUITEM_DISABLED => views/menuitem_disabled.php
processing VIEW_NOACCESS => views/noaccess.php
processing VIEW_UNAUTHORIZED => views/unauthorized.php
processing VIEW_BAD_REFFERER => views/bad_refferer.php
processing VIEW_LOGGEDOUT => views/loggedout.php
processing VIEW_PANEL => views/panel.php
processing VIEW_REPORTS => views/reports.php
processing AMPSYSLOGLEVEL => FILE
processing AMPDISABLELOG => 1
processing LOG_OUT_MESSAGES => 1
processing LOG_NOTIFICATIONS => 1
processing FPBX_LOG_FILE => /var/log/asterisk/freepbx.log
processing PHP_ERROR_HANDLER_OUTPUT => dbug
processing AMPEXTENSIONS => extensions
processing AUTHTYPE => none
processing AMP_ACCESS_DB_CREDS => 0
processing ARI_ADMIN_USERNAME => admin
processing ARI_ADMIN_PASSWORD => ari_password
processing AMPVMUMASK => 007
processing FORCED_ASTVERSION =>
processing AMPWEBADDRESS => xx.xx.xx.xx
processing AMPASTERISKGROUP => asterisk
processing AMPASTERISKUSER => asterisk
processing AMPDEVGROUP => asterisk
processing AMPDEVUSER => asterisk
processing AMPASTERISKWEBGROUP => asterisk
processing AMPASTERISKWEBUSER => asterisk
processing AMPENGINE => asterisk
processing AMPMPG123 => 1
processing SSHPORT =>
processing AMPPLAYKEY =>
processing PARKINGPATCH => 0
processing TCMAINT => 1
processing TCINTERVAL => 60
processing VMX_CONTEXT => from-internal
processing VMX_LOOPDEST_CONTEXT =>
processing VMX_LOOPDEST_EXT => dovm
processing VMX_LOOPDEST_PRI => 1
processing VMX_PRI => 1
processing VMX_TIMEDEST_CONTEXT =>
processing VMX_TIMEDEST_EXT => dovm
processing VMX_TIMEDEST_PRI => 1
processing VM_SHOW_IMAP => 0
processing AMPDBUSER => asteriskuser
setting category old value Voicemail Module
processing AMPDBPASS => xxx
processing AMPDBHOST => localhost
processing AMPDBNAME => asterisk
processing AMPDBENGINE => mysql
processing datasource =>
processing AMPENABLEDEVELDEBUG =>
Notice: no iax trunks defined
Notice: no AMP Users defined
Please update your modules and reload Asterisk by visiting http://xx.xx.xx.xx/admin

To make this a bit easier to solve, I think all I really need is how to point FreePBX to update the right files. To prove this, I created symbolic links on the root to point to the files in /etc/asterisk. I was able to enter a new extension and register the phone and make calls, etc.

Thanks for your help!

Just to clarify, I am currently able to edit configs via FreePBX, but had to use a workaround to do so. The problem is that the config files that should be in /etc/asterisk were mysteriously installed on the root (/). The workaround is that I made symbolic links to the conf files in /etc/asterisk. I need to figure out how to get FreePBX to look to /etc/asterisk as the current fix was really just a way to test the system, and is a crappy fix at that. Any suggestions or help is greatly appreciated.

Does anyone have the answer to the question above?

If you files are installed in the wrong place you probably have many more issues with your system.

But I resolved them. This is the last issue to resolve. If I can find out how to point FreePBX to /etc/asterisk then I will be able to fix this last issue.

Fortunately the server is a VM and I took a copy before the upgrade. I read a bit here-
http://www.freepbx.org/news/2011-02-28/version-2-9-amportal-conf-advanced-settings-im-confused

-and determined that amportal.conf needs to have asterisk user able to write to it for the upgrade process to go through ok. I set this up and then did the upgrade and stuff went through ok this time, all looks good.