UCP - User Control Panel unable to set presence or control voicemails

I’m having all kinds of issues with UCP. I am unable to set any kind of presence status or even manage my voicemails; when I try to record greetings, they won’t save at all. The extension I’m managing voicemails on shows (1) voicemail count even though there are none. I’ve reinstalled the FreePBX distro twice. Any ideas? Nothing in the FreePBX logs shows anything obvious, and I’ve tried several different browsers.

What happens when you set presence. What happens when you manage voicemails? Please give more descriptive answers.

http://wiki.freepbx.org/display/GHWF/Providing+Great+Debug

I can’t even set presence at all. When I click on the “Status Not Set” in the upper right hand corner, there is no menu that pops up. When I go to manage voicemails, the total count says “0” while the extension says “1” voicemail, but there are no voicemails. When I try to play a test voicemail that I leave, it says “Media URL could not be loaded,” and when I try to delete it, nothing happens.

asterisk/full log

015-03-24 12:00:30] VERBOSE[18110] loader.c: -- Reloading module 'res_config_ldap.so' (LDAP realtime interface)
[2015-03-24 12:00:30] ERROR[18110] res_config_ldap.c: Cannot load configuration file: res_ldap.conf
[2015-03-24 12:00:30] NOTICE[18110] res_config_ldap.c: Cannot reload LDAP RealTime driver.
[2015-03-24 12:00:30] VERBOSE[18110] loader.c: -- Reloading module 'res_config_mysql.so' (MySQL RealTime Configuration Driver)
[2015-03-24 12:00:30] VERBOSE[18110] res_config_mysql.c: == MySQL RealTime reloaded.
[2015-03-24 12:00:30] VERBOSE[18110] loader.c: -- Reloading module 'res_config_odbc.so' (Realtime ODBC configuration)
[2015-03-24 12:00:30] VERBOSE[18110] loader.c: -- Reloading module 'res_config_sqlite3.so' (SQLite 3 realtime config engine)
[2015-03-24 12:00:30] ERROR[18110] res_config_sqlite3.c: Missing config file 'res_config_sqlite3.conf'
[2015-03-24 12:00:30] VERBOSE[18110] loader.c: -- Reloading module 'res_crypto.so' (Cryptographic Digital Signatures)
[2015-03-24 12:00:30] VERBOSE[18110] loader.c: -- Reloading module 'res_fax.so' (Generic FAX Applications)
[2015-03-24 12:00:30] VERBOSE[18110] config.c: == Parsing '/etc/asterisk/res_fax.conf': Found
[2015-03-24 12:00:30] VERBOSE[18110] config.c: == Parsing '/etc/asterisk/res_fax_custom.conf': Found
[2015-03-24 12:00:30] VERBOSE[18110] loader.c: -- Reloading module 'res_musiconhold.so' (Music On Hold Resource)
[2015-03-24 12:00:30] VERBOSE[18110] config.c: == Parsing '/etc/asterisk/musiconhold.conf': Found
[2015-03-24 12:00:30] VERBOSE[18110] config.c: == Parsing '/etc/asterisk/musiconhold_custom.conf': Found
[2015-03-24 12:00:30] VERBOSE[18110] config.c: == Parsing '/etc/asterisk/musiconhold_additional.conf': Found
[2015-03-24 12:00:30] VERBOSE[18110] loader.c: -- Reloading module 'res_odbc.so' (ODBC resource)
[2015-03-24 12:00:30] VERBOSE[18110] config.c: == Parsing '/etc/asterisk/res_odbc.conf': Found
[2015-03-24 12:00:30] VERBOSE[18110] config.c: == Parsing '/etc/asterisk/res_odbc_custom.conf': Found
[2015-03-24 12:00:30] VERBOSE[18110] config.c: == Parsing '/etc/asterisk/res_odbc_additional.conf': Found
[2015-03-24 12:00:30] NOTICE[18110] res_odbc.c: Connecting asteriskcdrdb
[2015-03-24 12:00:30] NOTICE[18110] res_odbc.c: res_odbc: Connected to asteriskcdrdb [MySQL-asteriskcdrdb]
[2015-03-24 12:00:30] NOTICE[18110] res_odbc.c: Registered ODBC class 'asteriskcdrdb' dsn->[MySQL-asteriskcdrdb]
[2015-03-24 12:00:30] VERBOSE[18110] loader.c: -- Reloading module 'res_phoneprov.so' (HTTP Phone Provisioning)
[2015-03-24 12:00:30] VERBOSE[18110] config.c: == Parsing '/etc/asterisk/sip.conf': Found
[2015-03-24 12:00:30] VERBOSE[18110] config.c: == Parsing '/etc/asterisk/sip_general_additional.conf': Found
[2015-03-24 12:00:30] VERBOSE[18110] config.c: == Parsing '/etc/asterisk/sip_general_custom.conf': Found
[2015-03-24 12:00:30] VERBOSE[18110] config.c: == Parsing '/etc/asterisk/sip_nat.conf': Found
[2015-03-24 12:00:30] VERBOSE[18110] config.c: == Parsing '/etc/asterisk/sip_registrations_custom.conf': Found
[2015-03-24 12:00:30] VERBOSE[18110] config.c: == Parsing '/etc/asterisk/sip_registrations.conf': Found
[2015-03-24 12:00:30] VERBOSE[18110] config.c: == Parsing '/etc/asterisk/sip_custom.conf': Found
[2015-03-24 12:00:30] VERBOSE[18110] config.c: == Parsing '/etc/asterisk/sip_additional.conf': Found
[2015-03-24 12:00:30] VERBOSE[18110] config.c: == Parsing '/etc/asterisk/sip_custom_post.conf': Found
[2015-03-24 12:00:30] WARNING[18110] res_phoneprov.c: Unable to load users.conf
[2015-03-24 12:00:30] VERBOSE[18110] loader.c: -- Reloading module 'res_rtp_asterisk.so' (Asterisk RTP Stack)
[2015-03-24 12:00:30] VERBOSE[18110] config.c: == Parsing '/etc/asterisk/rtp.conf': Found
[2015-03-24 12:00:30] VERBOSE[18110] config.c: == Parsing '/etc/asterisk/rtp_additional.conf': Found
[2015-03-24 12:00:30] VERBOSE[18110] config.c: == Parsing '/etc/asterisk/rtp_custom.conf': Found
[2015-03-24 12:00:30] VERBOSE[18110] res_rtp_asterisk.c: == RTP Allocating from port range 10000 -> 20000
[2015-03-24 12:00:30] VERBOSE[10854] netsock2.c: == Using SIP TOS bits 96
[2015-03-24 12:00:30] VERBOSE[10854] netsock2.c: == Using SIP CoS mark 4
[2015-03-24 12:00:30] NOTICE[10854] chan_sip.c: 'Auto' is not a valid transport type. if no other is specified, the defaults from general will be used.
[2015-03-24 12:00:30] VERBOSE[10854] config.c: == Parsing '/etc/asterisk/sip_notify.conf': Found
[2015-03-24 12:00:30] VERBOSE[10854] config.c: == Parsing '/etc/asterisk/sip_notify_custom.conf': Found
[2015-03-24 12:00:30] VERBOSE[10854] config.c: == Parsing '/etc/asterisk/sip_notify_additional.conf': Found

Here’s my amportal a dbug output at the current time:

==> /var/log/asterisk/freepbx_dbug <==

==> /var/log/httpd/error_log <==
[Tue Mar 24 08:37:55 2015] [notice] caught SIGTERM, shutting down
[Tue Mar 24 08:37:55 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Mar 24 08:37:55 2015] [notice] Digest: generating secret for digest authentication ...
[Tue Mar 24 08:37:55 2015] [notice] Digest: done
[Tue Mar 24 08:37:55 2015] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.28 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips configured -- resuming normal operations
[Tue Mar 24 09:42:31 2015] [notice] caught SIGTERM, shutting down
[Tue Mar 24 09:42:31 2015] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Mar 24 09:42:31 2015] [notice] Digest: generating secret for digest authentication ...
[Tue Mar 24 09:42:31 2015] [notice] Digest: done
[Tue Mar 24 09:42:32 2015] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.28 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips configured -- resuming normal operations

==> /var/log/asterisk/freepbx.log <==
[2015-Mar-24 13:00:01] [PHP-NOTICE] (/var/www/html/admin/modules/sysadmin/functions.inc/storage.php:39) - Undefined index: sysadmin_exp
[2015-Mar-24 13:21:01] [PHP-WARNING] (/var/www/html/admin/modules/cxpanel/brand.php:3) - file_get_contents(/etc/schmooze/operator-panel-brand): failed to open stream: No such file or directory
[2015-Mar-24 13:21:01] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 48
[2015-Mar-24 13:21:01] [PHP-NOTICE] (/var/www/html/admin/modules/sysadmin/functions.inc/storage.php:39) - Undefined index: sysadmin_exp
[2015-Mar-24 13:52:09] [PHP-WARNING] (/var/www/html/admin/modules/cxpanel/brand.php:3) - file_get_contents(/etc/schmooze/operator-panel-brand): failed to open stream: No such file or directory
[2015-Mar-24 13:52:09] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 48
[2015-Mar-24 13:55:05] [INFO] (bin/freepbx_setting:42) - trying to run as user asterisk:
[2015-Mar-24 13:55:05] [INFO] (bin/freepbx_setting:43) -
[2015-Mar-24 13:55:05] [INFO] (bin/freepbx_setting:79) - [FPBXDBUGDISABLE] changed from previous value: [1] to new value: [0]
[2015-Mar-24 13:55:05] [INFO] (bin/freepbx_setting:80) -

Here’s my freepbx.log:

[2015-Mar-24 12:00:32] [PHP-NOTICE] (/var/www/html/admin/modules/ucp/htdocs/index.php:230) - Undefined variable: lang
    [2015-Mar-24 12:00:34] [PHP-NOTICE] (/var/www/html/admin/modules/presencestate/ucp/Presencestate.class.php:207) - Undefined index: State
    [2015-Mar-24 12:00:34] [PHP-NOTICE] (/var/www/html/admin/modules/presencestate/ucp/Presencestate.class.php:207) - Undefined index:
    [2015-Mar-24 12:00:39] [PHP-NOTICE] (/var/www/html/admin/modules/voicemail/Voicemail.class.php:762) - Undefined index: messages
    [2015-Mar-24 12:00:39] [PHP-WARNING] (/var/www/html/admin/modules/voicemail/Voicemail.class.php:762) - Invalid argument supplied for foreach()
    [2015-Mar-24 12:00:39] [PHP-NOTICE] (/var/www/html/admin/modules/voicemail/Voicemail.class.php:762) - Undefined index: messages
    [2015-Mar-24 12:00:39] [PHP-WARNING] (/var/www/html/admin/modules/voicemail/Voicemail.class.php:762) - Invalid argument supplied for foreach()
    [2015-Mar-24 12:00:39] [PHP-NOTICE] (/var/www/html/admin/modules/voicemail/Voicemail.class.php:762) - Undefined index: messages
    [2015-Mar-24 12:00:39] [PHP-WARNING] (/var/www/html/admin/modules/voicemail/Voicemail.class.php:762) - Invalid argument supplied for foreach()
    [2015-Mar-24 12:00:39] [PHP-NOTICE] (/var/www/html/admin/modules/voicemail/Voicemail.class.php:762) - Undefined index: messages
    [2015-Mar-24 12:00:39] [PHP-WARNING] (/var/www/html/admin/modules/voicemail/Voicemail.class.php:762) - Invalid argument supplied for foreach()
    [2015-Mar-24 12:00:39] [PHP-NOTICE] (/var/www/html/admin/modules/voicemail/Voicemail.class.php:762) - Undefined index: messages
    [2015-Mar-24 12:00:39] [PHP-WARNING] (/var/www/html/admin/modules/voicemail/Voicemail.class.php:762) - Invalid argument supplied for foreach()
    [2015-Mar-24 12:00:39] [PHP-NOTICE] (/var/www/html/admin/modules/voicemail/Voicemail.class.php:762) - Undefined index: messages
    [2015-Mar-24 12:00:39] [PHP-WARNING] (/var/www/html/admin/modules/voicemail/Voicemail.class.php:762) - Invalid argument supplied for foreach()
    [2015-Mar-24 12:00:39] [PHP-NOTICE] (/var/www/html/admin/modules/voicemail/Voicemail.class.php:726) - Undefined index: messages
    [2015-Mar-24 12:00:39] [PHP-WARNING] (/var/www/html/admin/modules/voicemail/Voicemail.class.php:726) - Invalid argument supplied for foreach()
    [2015-Mar-24 12:21:01] [PHP-WARNING] (/var/www/html/admin/modules/cxpanel/brand.php:3) - file_get_contents(/etc/schmooze/operator-panel-brand): failed to open stream: No such file or directory
    [2015-Mar-24 12:21:01] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 48
    [2015-Mar-24 12:21:01] [PHP-NOTICE] (/var/www/html/admin/modules/sysadmin/functions.inc/storage.php:39) - Undefined index: sysadmin_exp
    [2015-Mar-24 13:00:01] [PHP-NOTICE] (/var/www/html/admin/modules/sysadmin/functions.inc/storage.php:39) - Undefined index: sysadmin_exp
    [2015-Mar-24 13:21:01] [PHP-WARNING] (/var/www/html/admin/modules/cxpanel/brand.php:3) - file_get_contents(/etc/schmooze/operator-panel-brand): failed to open stream: No such file or directory
    [2015-Mar-24 13:21:01] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 48
    [2015-Mar-24 13:21:01] [PHP-NOTICE] (/var/www/html/admin/modules/sysadmin/functions.inc/storage.php:39) - Undefined index: sysadmin_exp
    [2015-Mar-24 13:52:09] [PHP-WARNING] (/var/www/html/admin/modules/cxpanel/brand.php:3) - file_get_contents(/etc/schmooze/operator-panel-brand): failed to open stream: No such file or directory
    [2015-Mar-24 13:52:09] [WARNING] (libraries/modulefunctions.legacy.php:7) - Depreciated Function module_getinfo detected in /var/www/html/admin/modules/cxpanel/functions.inc.php on line 48

What browser are you using?

Chrome 41, Firefox 32, IE 11.

Ok IE 11 is not supported. The other two work fine for me. Media URL not set is happening because it can’t find the voicemail. Can you download it? I suggest you run: amportal chown

As it sounds like permissions issues

You need to set these in admin: config.php?display=presencestate

I ran the amportal chown command, but no changes. Also, there are already 6 presence statuses there. I am using the stock FreePBX distro 6.12.65-26 - brand new install.

Also - I can definitely download the VM.

Something is really wrong with your system. If it can’t delete voicemails then it’s permissions based. If you can’t listen to them then the same thing. Presence in UCP gets it’s information from admin, so if one is blank there is a corrupt database value of some sort. Your debugs didn’t provide me any insight. Sorry.

This can’t be right…I’ve installed FreePBX distro it on a totally different system with a brand-new download and still exhibits the same issue. What am I doing wrong?

It sure seems like you have a whole mess of javascript errors. So far you are the only user to report this. So I am at a little bit of a loss.

Which distro. 32 or 64 bit.

Have you checked the developer consoles in Chrome to see if there’s errors?

It’s really strange. I’ve tried it in 3 different environments. 64-bit distro. I have been looking there but haven’t seen anything. Maybe I am missing something in the Chrome Developer console, because I’ve been trying to figure out how to generate an error there. Where exactly should I look?

All I see in the JavaScript Console is this when I login to UCP and try to record a greeting in voicemail…

Auto Loading ContactmanagerC
jsphpg_ba3377c45ed69a48c1fc1d9467086c48.js:1153 Auto Loading EndpointC
jsphpg_ba3377c45ed69a48c1fc1d9467086c48.js:1153 Auto Loading FaxproC
jsphpg_ba3377c45ed69a48c1fc1d9467086c48.js:1153 Auto Loading SmsC
jsphpg_ba3377c45ed69a48c1fc1d9467086c48.js:1153 Auto Loading VoicemailC
jsphpg_ba3377c45ed69a48c1fc1d9467086c48.js:1153 Auto Loading WebrtcC
jsphpg_ba3377c45ed69a48c1fc1d9467086c48.js:1153 Auto Loading XmppC
Navigated to http://172.20.10.10/ucp/?logout=1
jsphpg_ba3377c45ed69a48c1fc1d9467086c48.js:1153 Auto Loading ContactmanagerC
jsphpg_ba3377c45ed69a48c1fc1d9467086c48.js:1153 Auto Loading EndpointC
jsphpg_ba3377c45ed69a48c1fc1d9467086c48.js:1153 Auto Loading FaxproC
jsphpg_ba3377c45ed69a48c1fc1d9467086c48.js:1153 Auto Loading SmsC
jsphpg_ba3377c45ed69a48c1fc1d9467086c48.js:1153 Auto Loading VoicemailC
jsphpg_ba3377c45ed69a48c1fc1d9467086c48.js:1153 Auto Loading WebrtcC
jsphpg_ba3377c45ed69a48c1fc1d9467086c48.js:1153 Auto Loading XmppC

And yet…I can play back my own voice when recording a greeting, but after it appears to save the greeting, it won’t play back at all. There is no indication of any errors whatsoever.

Wish someone would’ve told me how important WebRTC is. It was disabled on my test user by default.

Here I am on a rampage to remove as many modules as possible…maybe I should write a “minimal FreePBX module listing” page…thanks for responding so fast! Looks like I’ve figured it out.