Asterisk dead when apply config in freepbx

Hi,

I have a problem with asterisk when we apply and save the config. When the config changes, asterisk dead instantly and everything else (calls, conferences, etc).

Could you please give us some clue? we don’t know what is happening at this moment.

Versions:

Asterisk 13.14.0
FreePBX 13.0.190.19

Kind regards.

Please post the log here.

/var/log/asterisk/full

[2017-03-07 12:01:59] VERBOSE[6202] asterisk.c: Remote UNIX connection
[2017-03-07 12:01:59] VERBOSE[7634] asterisk.c: Remote UNIX connection disconnected
[2017-03-07 12:01:59] VERBOSE[6202] asterisk.c: Remote UNIX connection
[2017-03-07 12:01:59] VERBOSE[7643] asterisk.c: Remote UNIX connection disconnected
[2017-03-07 12:01:59] VERBOSE[6202] asterisk.c: Remote UNIX connection
[2017-03-07 12:01:59] VERBOSE[7646] asterisk.c: Remote UNIX connection disconnected
[2017-03-07 12:02:00] VERBOSE[6202] asterisk.c: Remote UNIX connection
[2017-03-07 12:02:00] VERBOSE[7695] config.c: Parsing ‘/etc/asterisk/cel.conf’: Found
[2017-03-07 12:02:00] VERBOSE[7695] config.c: Parsing ‘/etc/asterisk/cel_general_additional.conf’: Found
[2017-03-07 12:02:00] VERBOSE[7695] config.c: Parsing ‘/etc/asterisk/cel_general_custom.conf’: Found
[2017-03-07 12:02:00] VERBOSE[7695] config.c: Parsing ‘/etc/asterisk/cel_custom_post.conf’: Found
[2017-03-07 12:02:00] VERBOSE[7695] cel.c: CEL logging enabled.
[2017-03-07 12:02:00] VERBOSE[7695] config.c: Parsing ‘/etc/asterisk/features.conf’: Found
[2017-03-07 12:02:00] VERBOSE[7695] config.c: Parsing ‘/etc/asterisk/features_general_additional.conf’: Found
[2017-03-07 12:02:00] VERBOSE[7695] config.c: Parsing ‘/etc/asterisk/features_general_custom.conf’: Found
[2017-03-07 12:02:00] VERBOSE[7695] config.c: Parsing ‘/etc/asterisk/features_applicationmap_additional.conf’: Found
[2017-03-07 12:02:00] VERBOSE[7695] config.c: Parsing ‘/etc/asterisk/features_applicationmap_custom.conf’: Found
[2017-03-07 12:02:00] VERBOSE[7695] config.c: Parsing ‘/etc/asterisk/features_featuremap_additional.conf’: Found
[2017-03-07 12:02:00] VERBOSE[7695] config.c: Parsing ‘/etc/asterisk/features_featuremap_custom.conf’: Found
[2017-03-07 12:02:00] VERBOSE[7695] config.c: Parsing ‘/etc/asterisk/http.conf’: Found
[2017-03-07 12:02:00] VERBOSE[7695] config.c: Parsing ‘/etc/asterisk/http_additional.conf’: Found
[2017-03-07 12:02:00] VERBOSE[7695] config.c: Parsing ‘/etc/asterisk/http_custom.conf’: Found
[2017-03-07 12:02:00] VERBOSE[7695] tcptls.c: TLS/SSL ECDH initialized (secp256r1), faster PFS cipher-suites enabled
[2017-03-07 12:02:00] VERBOSE[7695] tcptls.c: TLS/SSL certificate ok
[2017-03-07 12:02:05] Asterisk 13.14.0 built by root @ tc-pbx1 on a x86_64 running Linux on 2017-03-03 14:58:06 UTC
[2017-03-07 12:02:05] VERBOSE[7809] message.c: Message handler ‘dialplan’ registered.
[2017-03-07 12:02:05] VERBOSE[7809] pbx_functions.c: Registered custom function ‘MESSAGE’
[2017-03-07 12:02:05] VERBOSE[7809] pbx_functions.c: Registered custom function ‘MESSAGE_DATA’
[2017-03-07 12:02:05] VERBOSE[7809] pbx_app.c: Registered application ‘MessageSend’
[2017-03-07 12:02:05] VERBOSE[7809] manager.c: Manager registered action MessageSend
[2017-03-07 12:02:05] VERBOSE[7809] manager.c: Manager registered action DataGet
[2017-03-07 12:02:05] VERBOSE[7809] channel.c: Registered channel type ‘Surrogate’ (Surrogate channel used to pull channel from an application)
[2017-03-07 12:02:05] VERBOSE[7809] manager.c: Manager registered action BridgeTechnologyList
[2017-03-07 12:02:05] VERBOSE[7809] manager.c: Manager registered action BridgeTechnologySuspend
[2017-03-07 12:02:05] VERBOSE[7809] manager.c: Manager registered action BridgeTechnologyUnsuspend
[2017-03-07 12:02:05] VERBOSE[7809] loader.c: Asterisk Dynamic Loader Starting:
[2017-03-07 12:02:05] VERBOSE[7809] config.c: Parsing ‘/etc/asterisk/modules.conf’: Found
[2017-03-07 12:02:05] NOTICE[7809] loader.c: 4 modules will be loaded.
[2017-03-07 12:02:05] VERBOSE[7809] loader.c: Loading res_odbc.so.
[2017-03-07 12:02:05] VERBOSE[7809] config.c: Parsing ‘/etc/asterisk/res_odbc.conf’: Found
[2017-03-07 12:02:05] VERBOSE[7809] config.c: Parsing ‘/etc/asterisk/res_odbc_custom.conf’: Found
[2017-03-07 12:02:05] VERBOSE[7809] config.c: Parsing ‘/etc/asterisk/res_odbc_additional.conf’: Found
[2017-03-07 12:02:05] WARNING[7809] res_odbc.c: The ‘pooling’, ‘shared_connections’, ‘limit’, and ‘idlecheck’ options were replaced by ‘max_connections’. See res_odbc.conf.sample.
[2017-03-07 12:02:05] WARNING[7809] res_odbc.c: The ‘pooling’, ‘shared_connections’, ‘limit’, and ‘idlecheck’ options were replaced by ‘max_connections’. See res_odbc.conf.sample.
[2017-03-07 12:02:05] NOTICE[7809] res_odbc.c: Registered ODBC class ‘asteriskcdrdb’ dsn->[MySQL-asteriskcdrdb]
[2017-03-07 12:02:05] NOTICE[7809] res_odbc.c: res_odbc loaded.
[2017-03-07 12:02:05] VERBOSE[7809] loader.c: res_odbc.so => (ODBC resource)
[2017-03-07 12:02:05] VERBOSE[7809] loader.c: Loading res_config_odbc.so.
[2017-03-07 12:02:05] VERBOSE[7809] loader.c: res_config_odbc.so => (Realtime ODBC configuration)
[2017-03-07 12:02:05] VERBOSE[7809] loader.c: Loading cdr_adaptive_odbc.so.
[2017-03-07 12:02:05] VERBOSE[7809] config.c: Parsing ‘/etc/asterisk/cdr_adaptive_odbc.conf’: Found
[2017-03-07 12:02:05] VERBOSE[7809] cdr_adaptive_odbc.c: Found adaptive CDR table [email protected]
[2017-03-07 12:02:05] VERBOSE[7809] cdr_adaptive_odbc.c: Found alias start for column calldate in [email protected]
[2017-03-07 12:02:05] VERBOSE[7809] loader.c: cdr_adaptive_odbc.so => (Adaptive ODBC CDR backend)
[2017-03-07 12:02:05] VERBOSE[7809] loader.c: Loading func_db.so.
[2017-03-07 12:02:05] VERBOSE[7809] pbx_functions.c: Registered custom function ‘DB’
[2017-03-07 12:02:05] VERBOSE[7809] pbx_functions.c: Registered custom function ‘DB_EXISTS’
[2017-03-07 12:02:05] VERBOSE[7809] pbx_functions.c: Registered custom function ‘DB_DELETE’
[2017-03-07 12:02:05] VERBOSE[7809] pbx_functions.c: Registered custom function ‘DB_KEYS’
[2017-03-07 12:02:05] VERBOSE[7809] loader.c: func_db.so => (Database (astdb) related dialplan functions)
[2017-03-07 12:02:05] VERBOSE[7809] config.c: Parsing ‘/etc/asterisk/features.conf’: Found
[2017-03-07 12:02:05] VERBOSE[7809] config.c: Parsing ‘/etc/asterisk/features_general_additional.conf’: Found
[2017-03-07 12:02:05] VERBOSE[7809] config.c: Parsing ‘/etc/asterisk/features_general_custom.conf’: Found
[2017-03-07 12:02:05] VERBOSE[7809] config.c: Parsing ‘/etc/asterisk/features_applicationmap_additional.conf’: Found
[2017-03-07 12:02:05] VERBOSE[7809] config.c: Parsing ‘/etc/asterisk/features_applicationmap_custom.conf’: Found
[2017-03-07 12:02:05] VERBOSE[7809] config.c: Parsing ‘/etc/asterisk/features_featuremap_additional.conf’: Found
[2017-03-07 12:02:05] VERBOSE[7809] config.c: Parsing ‘/etc/asterisk/features_featuremap_custom.conf’: Found
[2017-03-07 12:02:05] VERBOSE[7809] pbx_functions.c: Registered custom function ‘FEATURE’
[2017-03-07 12:02:05] VERBOSE[7809] pbx_functions.c: Registered custom function ‘FEATUREMAP’
[2017-03-07 12:02:05] VERBOSE[7809] pbx_app.c: Registered application ‘Bridge’
[2017-03-07 12:02:05] VERBOSE[7809] manager.c: Manager registered action Bridge
[2017-03-07 12:02:05] VERBOSE[7809] config.c: Parsing ‘/etc/asterisk/dnsmgr.conf’: Found
[2017-03-07 12:02:05] NOTICE[7809] dnsmgr.c: Managed DNS entries will be refreshed every 300 seconds.
[2017-03-07 12:02:05] VERBOSE[7809] config.c: Parsing ‘/etc/asterisk/acl.conf’: Found
[2017-03-07 12:02:05] VERBOSE[7809] config.c: Parsing ‘/etc/asterisk/http.conf’: Found
[2017-03-07 12:02:05] VERBOSE[7809] config.c: Parsing ‘/etc/asterisk/http_additional.conf’: Found
[2017-03-07 12:02:05] VERBOSE[7809] config.c: Parsing ‘/etc/asterisk/http_custom.conf’: Found
[2017-03-07 12:02:05] VERBOSE[7809] tcptls.c: TLS/SSL ECDH initialized (secp256r1), faster PFS cipher-suites enabled
[2017-03-07 12:02:05] VERBOSE[7809] tcptls.c: TLS/SSL certificate ok
[2017-03-07 12:02:05] VERBOSE[7809] config.c: Parsing ‘/etc/asterisk/indications.conf’: Found
[2017-03-07 12:02:05] VERBOSE[7809] indications.c: Registered indication country ‘es’
[2017-03-07 12:02:05] VERBOSE[7809] indications.c: Setting default indication country to ‘es’
[2017-03-07 12:02:05] VERBOSE[7809] config.c: Parsing ‘/etc/asterisk/cdr.conf’: Found
[2017-03-07 12:02:05] NOTICE[7809] cdr.c: CDR simple logging enabled.
[2017-03-07 12:02:05] VERBOSE[7809] config.c: Parsing ‘/etc/asterisk/udptl.conf’: Found
[2017-03-07 12:02:05] VERBOSE[7809] config.c: Parsing ‘/etc/asterisk/udptl_custom.conf’: Found
[2017-03-07 12:02:05] VERBOSE[7809] pbx.c: Asterisk PBX Core Initializing
[2017-03-07 12:02:05] VERBOSE[7809] pbx.c: Registering builtin functions:
[2017-03-07 12:02:05] VERBOSE[7809] pbx_functions.c: Registered custom function ‘EXCEPTION’
[2017-03-07 12:02:05] VERBOSE[7809] pbx_functions.c: Registered custom function ‘TESTTIME’
[2017-03-07 12:02:05] VERBOSE[7809] manager.c: Manager registered action ShowDialPlan
[2017-03-07 12:02:05] VERBOSE[7809] manager.c: Manager registered action ExtensionStateList

/var/log/asterisk/freepbx.log

[2017-Mar-07 12:01:46] [WARNING] (core/functions.inc.php:6440) - Depreciated Function core_users_list detected in /var/www/html/admin/modules/core/functions.inc.php on line 6161
[2017-Mar-07 12:01:50] [WARNING] (core/functions.inc.php:6440) - Depreciated Function core_users_list detected in /var/www/html/admin/modules/core/functions.inc.php on line 6161
[2017-Mar-07 12:01:50] [WARNING] (core/functions.inc.php:6440) - Depreciated Function core_users_list detected in /var/www/html/admin/modules/core/functions.inc.php on line 831
[2017-Mar-07 12:01:50] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Mar-07 12:01:50] [WARNING] (ringgroups/functions.inc.php:485) - Depreciated Function ringgroups_list detected in /var/www/html/admin/modules/ringgroups/functions.inc.php on line 10
[2017-Mar-07 12:01:50] [WARNING] (core/functions.inc.php:6440) - Depreciated Function core_devices_get detected in /var/www/html/admin/modules/core/functions.inc.php on line 6202
[2017-Mar-07 12:01:51] [WARNING] (core/functions.inc.php:6440) - Depreciated Function core_devices_get detected in /var/www/html/admin/modules/core/functions.inc/drivers/Sip.class.php on line 263
[2017-Mar-07 12:01:51] [WARNING] (core/functions.inc.php:6440) - Depreciated Function core_users_list detected in /var/www/html/admin/modules/findmefollow/functions.inc.php on line 802
[2017-Mar-07 12:01:51] [WARNING] (core/functions.inc.php:6440) - Depreciated Function core_users_list detected in /var/www/html/admin/modules/core/functions.inc.php on line 831
[2017-Mar-07 12:01:51] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Mar-07 12:01:51] [WARNING] (ringgroups/functions.inc.php:485) - Depreciated Function ringgroups_list detected in /var/www/html/admin/modules/ringgroups/functions.inc.php on line 10
[2017-Mar-07 12:01:51] [WARNING] (core/functions.inc.php:6440) - Depreciated Function core_users_list detected in /var/www/html/admin/modules/userman/functions.inc/guihooks.php on line 59
[2017-Mar-07 12:01:56] [WARNING] (core/functions.inc.php:6440) - Depreciated Function core_users_list detected in /var/www/html/admin/modules/core/functions.inc.php on line 6161
[2017-Mar-07 12:01:56] [WARNING] (core/functions.inc.php:6440) - Depreciated Function core_users_add detected in /var/www/html/admin/modules/core/functions.inc.php on line 4576
[2017-Mar-07 12:01:56] [WARNING] (core/functions.inc.php:6440) - Depreciated Function core_devices_del detected in /var/www/html/admin/modules/core/functions.inc.php on line 6402
[2017-Mar-07 12:01:56] [WARNING] (core/functions.inc.php:6440) - Depreciated Function core_devices_add detected in /var/www/html/admin/modules/core/functions.inc.php on line 6420
[2017-Mar-07 12:01:56] [WARNING] (core/functions.inc.php:6440) - Depreciated Function core_users_list detected in /var/www/html/admin/modules/core/functions.inc.php on line 831
[2017-Mar-07 12:01:56] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Mar-07 12:01:56] [WARNING] (ringgroups/functions.inc.php:485) - Depreciated Function ringgroups_list detected in /var/www/html/admin/modules/ringgroups/functions.inc.php on line 10
[2017-Mar-07 12:01:56] [WARNING] (core/functions.inc.php:6440) - Depreciated Function core_devices_get detected in /var/www/html/admin/modules/core/functions.inc.php on line 6202
[2017-Mar-07 12:01:56] [WARNING] (core/functions.inc.php:6440) - Depreciated Function core_devices_get detected in /var/www/html/admin/modules/core/functions.inc/drivers/Sip.class.php on line 263
[2017-Mar-07 12:01:56] [WARNING] (core/functions.inc.php:6440) - Depreciated Function core_users_list detected in /var/www/html/admin/modules/findmefollow/functions.inc.php on line 802
[2017-Mar-07 12:01:56] [WARNING] (core/functions.inc.php:6440) - Depreciated Function core_users_list detected in /var/www/html/admin/modules/core/functions.inc.php on line 831
[2017-Mar-07 12:01:56] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Mar-07 12:01:56] [WARNING] (ringgroups/functions.inc.php:485) - Depreciated Function ringgroups_list detected in /var/www/html/admin/modules/ringgroups/functions.inc.php on line 10
[2017-Mar-07 12:01:56] [WARNING] (core/functions.inc.php:6440) - Depreciated Function core_users_list detected in /var/www/html/admin/modules/userman/functions.inc/guihooks.php on line 59
[2017-Mar-07 12:02:00] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Mar-07 12:02:00] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Mar-07 12:02:00] [WARNING] (timeconditions/functions.inc.php:836) - Depreciated Function timeconditions_get detected in /var/www/html/admin/modules/timeconditions/functions.inc.php on line 16
[2017-Mar-07 12:02:00] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Mar-07 12:02:00] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Mar-07 12:02:00] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Mar-07 12:02:00] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Mar-07 12:02:00] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Mar-07 12:02:00] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Mar-07 12:02:00] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Mar-07 12:02:00] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Mar-07 12:02:00] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Mar-07 12:02:00] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Mar-07 12:02:00] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/libraries/featurecodes.functions.php on line 42
[2017-Mar-07 12:02:00] [WARNING] (ringgroups/functions.inc.php:485) - Depreciated Function ringgroups_list detected in /var/www/html/admin/modules/ringgroups/functions.inc.php on line 75
[2017-Mar-07 12:02:00] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/core/functions.inc.php on line 1009
[2017-Mar-07 12:02:00] [WARNING] (ringgroups/functions.inc.php:485) - Depreciated Function ringgroups_list detected in /var/www/html/admin/modules/core/functions.inc.php on line 1264
[2017-Mar-07 12:02:00] [WARNING] (core/functions.inc.php:6440) - Depreciated Function core_users_list detected in /var/www/html/admin/modules/core/functions.inc.php on line 1612
[2017-Mar-07 12:02:00] [WARNING] (core/functions.inc.php:6440) - Depreciated Function core_routing_list detected in /var/www/html/admin/modules/callrecording/functions.inc.php on line 382
[2017-Mar-07 12:02:00] [WARNING] (core/functions.inc.php:6440) - Depreciated Function core_users_list detected in /var/www/html/admin/modules/core/functions.inc.php on line 4082
[2017-Mar-07 12:02:00] [CRITICAL] (admin/bootstrap.php:270) - Connection attmempt to AMI failed
[2017-Mar-07 12:02:01] [CRITICAL] (admin/bootstrap.php:270) - Connection attmempt to AMI failed
[2017-Mar-07 12:02:01] [CRITICAL] (admin/bootstrap.php:270) - Connection attmempt to AMI failed

At the bash prompt run:

yum update

and apply any pending Asterisk updates.

I used Debian 8.7.

Asterisk and freepbx were compiled.

There is an Asterisk bug in 13.14 that got patched for the Distro, you may well be seeing the same thing. Try Asterisk 13.13.