[FIXED] Asterisk: ERROR, phone system with 50 users down

Was playing around with SCCP and now Asterisk is down,

I rebooted and its still not working

also tried amportal restart.

I thought if I messed something up with SCCP, that I would be able to just restore from backup, but restore is blocked bc Asterisk is down

What can I do?

start asterisk like so:

asterisk -fd

didnt work. Still down! panicking.

Would sure be nice to know WHAT it did…

Tried to setup a virtual machine w FreePBX and restore a backup to that, it worked for internal calls but SIP Trunks wouldnt regsiter.

back to trying to fix the original pbx

No idea … can you point me to some logs or something. It mustve been the database got messed up

Im digging thru /var/log/messages/asterisk/full

[2015-04-29 11:17:56] ERROR[11129] pbx_impl/ast/ast111.c: Chan_skinny is loaded. Please check modules.conf and remove chan_skinny before loading chan_sccp.
[2015-04-29 11:18:00] ERROR[11216] pbx.c: You have to be kidding-- add exten '' to context app-blacklist? Figure out a name and call me back. Action ignored.
[2015-04-29 11:18:00] ERROR[11216] config_options.c: Unable to load config file 'acl.conf'
[2015-04-29 11:18:00] ERROR[11216] config_options.c: Unable to load config file 'xmpp.conf'
[2015-04-29 11:18:00] ERROR[11216] res_calendar.c: Unable to load config calendar.conf
[2015-04-29 11:18:00] ERROR[11216] pbx_lua.c: Error loading extensions.lua: cannot open '/etc/asterisk/extensions.lua' for reading: No such file or directory
[2015-04-29 11:18:00] ERROR[11216] res_config_sqlite3.c: Missing config file 'res_config_sqlite3.conf'
[2015-04-29 11:18:00] ERROR[11216] res_config_ldap.c: Cannot load configuration file: res_ldap.conf
[2015-04-29 11:18:00] ERROR[11216] res_config_ldap.c: Cannot load LDAP RealTime driver.
[2015-04-29 11:18:00] ERROR[11216] res_config_sqlite.c: Unable to load res_config_sqlite.conf
[2015-04-29 11:18:00] ERROR[11216] chan_mobile.c: No Bluetooth devices found. Not loading module.
[2015-04-29 11:18:00] ERROR[11216] phone_users.c: accept_outofcall_messages must be enabled in sip.conf for res_digium_phone to function properly
[2015-04-29 11:18:00] ERROR[11216] config_options.c: Unable to load config file 'motif.conf'
[2015-04-29 11:18:00] ERROR[11216] chan_motif.c: Unable to read config file motif.conf. Not loading module.
[2015-04-29 11:18:00] ERROR[11216] cel_custom.c: Unable to load cel_custom.conf. Not logging CEL to custom CSVs.
[2015-04-29 11:18:00] ERROR[11216] cdr_custom.c: Unable to load cdr_custom.conf. Not logging custom CSV CDRs.
[2015-04-29 11:18:00] ERROR[11216] cdr_syslog.c: Unable to load cdr_syslog.conf. Not logging custom CSV CDRs to syslog.
[2015-04-29 11:18:00] ERROR[11216] app_amd.c: Configuration file amd.conf missing.
[2015-04-29 11:18:00] ERROR[11216] chan_unistim.c: Unable to load config unistim.conf
[2015-04-29 11:18:00] ERROR[11216] chan_ooh323.c: Can't load ooh323 config file, OOH323 Disabled
[2015-04-29 11:18:00] ERROR[11216] pbx_dundi.c: Unable to load config dundi.conf
[2015-04-29 11:18:00] ERROR[11216] res_clialiases.c: res_clialiases configuration file 'cli_aliases.conf' not found
[2015-04-29 11:18:00] ERROR[11216] pbx_impl/ast/ast111.c: Chan_skinny is loaded. Please check modules.conf and remove chan_skinny before loading chan_sccp.
[2015-04-29 11:18:05] ERROR[11292] pbx.c: You have to be kidding-- add exten '' to context app-blacklist? Figure out a name and call me back. Action ignored.
[2015-04-29 11:18:05] ERROR[11292] config_options.c: Unable to load config file 'acl.conf'
[2015-04-29 11:18:05] ERROR[11292] config_options.c: Unable to load config file 'xmpp.conf'
[2015-04-29 11:18:05] ERROR[11292] res_calendar.c: Unable to load config calendar.conf
[2015-04-29 11:18:05] ERROR[11292] pbx_lua.c: Error loading extensions.lua: cannot open '/etc/asterisk/extensions.lua' for reading: No such file or directory
[2015-04-29 11:18:05] ERROR[11292] res_config_sqlite3.c: Missing config file 'res_config_sqlite3.conf'
[2015-04-29 11:18:05] ERROR[11292] res_config_ldap.c: Cannot load configuration file: res_ldap.conf
[2015-04-29 11:18:05] ERROR[11292] res_config_ldap.c: Cannot load LDAP RealTime driver.
[2015-04-29 11:18:05] ERROR[11292] res_config_sqlite.c: Unable to load res_config_sqlite.conf
[2015-04-29 11:18:05] ERROR[11292] chan_mobile.c: No Bluetooth devices found. Not loading module.
[2015-04-29 11:18:05] ERROR[11292] phone_users.c: accept_outofcall_messages must be enabled in sip.conf for res_digium_phone to function properly
[2015-04-29 11:18:05] ERROR[11292] config_options.c: Unable to load config file 'motif.conf'
[2015-04-29 11:18:05] ERROR[11292] chan_motif.c: Unable to read config file motif.conf. Not loading module.
[2015-04-29 11:18:05] ERROR[11292] cel_custom.c: Unable to load cel_custom.conf. Not logging CEL to custom CSVs.
[2015-04-29 11:18:05] ERROR[11292] cdr_custom.c: Unable to load cdr_custom.conf. Not logging custom CSV CDRs.
[2015-04-29 11:18:05] ERROR[11292] cdr_syslog.c: Unable to load cdr_syslog.conf. Not logging custom CSV CDRs to syslog.
[2015-04-29 11:18:05] ERROR[11292] app_amd.c: Configuration file amd.conf missing.
[2015-04-29 11:18:05] ERROR[11292] chan_unistim.c: Unable to load config unistim.conf
[2015-04-29 11:18:05] ERROR[11292] chan_ooh323.c: Can't load ooh323 config file, OOH323 Disabled
[2015-04-29 11:18:05] ERROR[11292] pbx_dundi.c: Unable to load config dundi.conf
[2015-04-29 11:18:05] ERROR[11292] res_clialiases.c: res_clialiases configuration file 'cli_aliases.conf' not found
[2015-04-29 11:18:05] ERROR[11292] pbx_impl/ast/ast111.c: Chan_skinny is loaded. Please check modules.conf and remove chan_skinny before loading chan_sccp.
[2015-04-29 11:18:09] ERROR[11364] pbx.c: You have to be kidding-- add exten '' to context app-blacklist? Figure out a name and call me back. Action ignored.
[2015-04-29 11:18:09] ERROR[11364] config_options.c: Unable to load config file 'acl.conf'
[2015-04-29 11:18:09] ERROR[11364] config_options.c: Unable to load config file 'xmpp.conf'
[2015-04-29 11:18:09] ERROR[11364] res_calendar.c: Unable to load config calendar.conf
[2015-04-29 11:18:09] ERROR[11364] pbx_lua.c: Error loading extensions.lua: cannot open '/etc/asterisk/extensions.lua' for reading: No such file or directory
[2015-04-29 11:18:09] ERROR[11364] res_config_sqlite3.c: Missing config file 'res_config_sqlite3.conf'
[2015-04-29 11:18:09] ERROR[11364] res_config_ldap.c: Cannot load configuration file: res_ldap.conf
[2015-04-29 11:18:09] ERROR[11364] res_config_ldap.c: Cannot load LDAP RealTime driver.
[2015-04-29 11:18:09] ERROR[11364] res_config_sqlite.c: Unable to load res_config_sqlite.conf
[2015-04-29 11:18:09] ERROR[11364] chan_mobile.c: No Bluetooth devices found. Not loading module.
[2015-04-29 11:18:09] ERROR[11364] phone_users.c: accept_outofcall_messages must be enabled in sip.conf for res_digium_phone to function properly
[2015-04-29 11:18:10] ERROR[11364] config_options.c: Unable to load config file 'motif.conf'
[2015-04-29 11:18:10] ERROR[11364] chan_motif.c: Unable to read config file motif.conf. Not loading module.
[2015-04-29 11:18:10] ERROR[11364] cel_custom.c: Unable to load cel_custom.conf. Not logging CEL to custom CSVs.
[2015-04-29 11:18:10] ERROR[11364] cdr_custom.c: Unable to load cdr_custom.conf. Not logging custom CSV CDRs.
[2015-04-29 11:18:10] ERROR[11364] cdr_syslog.c: Unable to load cdr_syslog.conf. Not logging custom CSV CDRs to syslog.
[2015-04-29 11:18:10] ERROR[11364] app_amd.c: Configuration file amd.conf missing.
[2015-04-29 11:18:10] ERROR[11364] chan_unistim.c: Unable to load config unistim.conf
[2015-04-29 11:18:10] ERROR[11364] chan_ooh323.c: Can't load ooh323 config file, OOH323 Disabled
[2015-04-29 11:18:10] ERROR[11364] pbx_dundi.c: Unable to load config dundi.conf
[2015-04-29 11:18:10] ERROR[11364] res_clialiases.c: res_clialiases configuration file 'cli_aliases.conf' not found
[2015-04-29 11:18:10] ERROR[11364] pbx_impl/ast/ast111.c: Chan_skinny is loaded. Please check modules.conf and remove chan_skinny before loading chan_sccp.
[root@localhost asterisk]# cd /

thats full | grep ERROR

Theres your issues. Use chan_skinny or chan_sccp. You need to remove one or the other.

tail freepbx.log

[2015-Apr-29 11:23:18] [PHP-WARNING] (/var/lib/asterisk/agi-bin/enc/vmnotify-newvm.php:0) - License check failed!
[2015-Apr-29 11:23:18] [PHP-WARNING] (/var/lib/asterisk/agi-bin/enc/vmnotify-newvm.php:0) - No license for this product (PBXact) - make sure zend_loader.license_path is properly configured in your ini file!
[2015-Apr-29 11:23:18] [PHP-WARNING] (/var/lib/asterisk/agi-bin/enc/vmnotify-newvm.php:0) - License check failed!
[2015-Apr-29 11:23:18] [PHP-WARNING] (/var/lib/asterisk/agi-bin/enc/vmnotify-newvm.php:0) - No license for this product (PBXact) - make sure zend_loader.license_path is properly configured in your ini file!
[2015-Apr-29 11:23:18] [PHP-WARNING] (/var/lib/asterisk/agi-bin/enc/vmnotify-newvm.php:0) - License check failed!
[2015-Apr-29 11:23:19] [PHP-WARNING] (/var/www/html/admin/libraries/php-asmanager.php:343) - fsockopen(): unable to connect to localhost:5038 (Connection refused)
[2015-Apr-29 11:23:19] [CRITICAL] (admin/bootstrap.php:122) - Connection attmempt to AMI failed

Do you know how to uninstall them?

module.sconf

[root@localhost asterisk]# nano modules.conf
GNU nano 2.0.9 File: modules.conf

; KDE console is obsolete and was removed from Asterisk 2008-01-10
;
noload => pbx_gtkconsole.so
;load => pbx_gtkconsole.so
noload => pbx_kdeconsole.so
;
; Intercom application is obsoleted by
; chan_oss. Don’t load it.
;
noload => app_intercom.so
;
; DON’T load the chan_modem.so, as they are obsolete in * 1.2

noload => chan_modem.so
noload => chan_modem_aopen.so
noload => chan_modem_bestdata.so
noload => chan_modem_i4l.so

; Trunkisavail is a broken module supplied by Trixbox
noload => app_trunkisavail.so

; Ensure that format_* modules are loaded before res_musiconhold
;load => format_ogg_vorbis.so
load => format_wav.so
load => format_pcm.so

; format_au.so is removed from Asterisk 1.4 and later, remove ; to enable
;load => format_au.so

; This isn’t part of ‘Asterisk’ iteslf, it’s part of asterisk-addons. If this isn’t
; installed, asterisk will fail to start. But it does need to go here for native MOH
; to work using mp3’s.
; Note that on a system with a high number of calls, using a compressed audio format for
; musiconhold takes CPU resources. Converting these files to ulaw/alaw makes the job
; much easier for your CPU.
load => format_mp3.so
load => res_musiconhold.so
;
; Load either OSS or ALSA, not both
; By default, load no console driver
;
noload => chan_alsa.so
noload => chan_oss.so
;
noload => app_directory_odbcstorage.so
noload => app_voicemail_odbcstorage.so
noload => cdr_mysql.so
noload => cdr_radius.so
noload => cel_radius.so

add

noload => chan_skinny.so
1 Like

THANKS!!!

as soon as I put that in and saved, asterisk came back up

Checking to make sure everything is working now but so far looks good

1 Like

Everything is good now. I owe you one big time @tm1000

2 Likes

Just keep supporting FreePBX in any way possible. Word of Mouth or more. That’s all you owe me.

2 Likes

I love FreePBX its AWESOME! and community is the best

For all small - medium size businesses, I recommend FreePBX exclusively.

My only complaint on the technology side is the lack of multi-site dial plan support, to be able to separate groups of phones like example:

“San Diego office” “Chicago office” then based on that phone group, San Diego office calls would only see the san diego dial plan, when calling outbound, calls would go out the San Diego Trunk

This concept is called “Calling Search Spaces” and “Partitions” in Cisco’s CUCM

I’ve accomplished this by adding prefixes to the phone dial plan, so for example San Diego phones prefix “001” to all calls after they are dialed and then freepbx is able to route 001xxxxxxxxx out the San Diego Trunk

Without a better solution for multi-site, freepbx/asterisk cant compete against Cisco’s CUCM for multi-site businesses

I will continue to recommend FreePBX and spread the word! I also try to give back to the community as much as I can by helping others in the forum. I try to keep a ratio of helping others more than I ask for help.

If there is another way I can help, let me know!

Also, is there an app I can get for my phone. I would be more active on the forum if I had an app

1 Like

Extension Routes will do what you are talking about - for a whopping $39.00 it will let you control to a VERY FINE grain who goes out where:

http://wiki.freepbx.org/display/FCM/Extension+Routing-Admin+Guide

I have found that the only thing Cisco has over FreePBX is it’s ability to empty your wallet - but maybe that’s just me :wink:

1 Like

It’s free for 1 year. $39 for 25 years. After 1 year it still works but you don’t receive updates.

1 Like

Hmmm…I was trying for sarcasm there, but apparently it was lost - I don’t think you can buy a Cisco Pen for $39.00 - let alone anything having to do with VoIP - So much “Conventional Wisdom” around Cisco products and yet we have replaced LARGE (100+ phones) Cisco systems many times and once we do, people are always amazed what Asterisk/FreePBX can do that is included, versus a hefty fee for every little thing on the Cisco.

Even if you bought every paid module including HA on even a small (40+ phones) system, you might approach the cost of a BASIC Call Manager.

An open challenge - Post what you think Call Manager can do that Asterisk/FreePBX can’t either on this thread, or in a new thread and let the community weigh in - I think you will be proven wrong.

1 Like

Just now saw this (yes 2 years later lol) but yeah FreePBX is great, it isn’t CUCM though

Name a feature?

  1. Multi-tenancy – cant even have overlapping patterns or extensions in different groups in FreePBX (Asterisk). FusionPBX (FreeSWITCH) fixes that though so they are my CUCM open source replacement. FreePBX is great for small businesses.

  2. Another major feature, SRST. But there are literally hundreds (probably thousands) of minor features as well which CUCM has that aren’t matched by FreePBX. They are two different markets though, no need to compete. CUCM cannot be configured properly without years of training and practice, whereas FreePBX can be setup easily.

  3. One more CUCM feature to name drop, Checkout SAF. Its like a routing protocol to dynamically advertise and route to blocks of phone numbers, its pretty awesome.

Extension Routes is equal to Cisco’s “Class of Restriction” feature. Its not the same thing at all, a common misconception, and I think the module name itself is misleading, should be renamed to Extension Restrictions

By the way, 100+ phones isn’t large for the Cisco VAR i work for, that’s a small client, which I agree would be better served by FreePBX. Try connecting 125,000 phones to a FreePBX HA, that is where CUCM shines with clusters of servers all connected, SRST for internet failures reverting to PRI/POTS lines etc

The small business market is wide however, and Cisco has largely stopped competing in it (their smallest product, CUCMBE, is even overkill for under a few hundred phones IMO). They also have Meraki but its no comparison to FreePBX (FreePBX is better)

1 Like