Failed to load xml file when I try to use Voicemail App on s500

I’m having some trouble with the phone apps voicemail on the Sangoma S500 telephones

Some XML apps work, but the voicemail tells me the xml file is missing.

s500 ver
Distro FreePBX

XML BLF$$LINESTATE$$&user=4244 doesn’t work

XML BLF Does work, but when I try to access voicemail I get the same error.

I grab a pcap from the phone and it looks like the server can’t process voicemail/apps.php

GET /applications.php/voicemail/main?user=4244 HTTP/1.1
User-Agent: Sangoma S500 00:50:58:50:9c:ea
Accept: /
Connection: Keep-Alive

HTTP/1.1 500 Internal Server Error
Date: Thu, 30 Nov 2017 22:40:23 GMT
Server: Apache/2.4.6 (Sangoma) OpenSSL/1.0.1e-fips PHP/5.6.32
X-Powered-By: PHP/5.6.32
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html;charset=UTF-8



Whoops\Exception\ErrorException: Invalid argument supplied for foreach() in file /var/www/html/admin/modules/restapps/modules/voicemail/apps.php on line 607
Stack trace:

  1. Whoops\Exception\ErrorException->() /var/www/html/admin/modules/restapps/modules/voicemail/apps.php:607
  2. Whoops\Run->handleError() /var/www/html/admin/modules/restapps/modules/voicemail/apps.php:607
  3. voicemail_main_get_cb() /var/www/html/admin/modules/restapps/
  4. call_user_func() /var/www/html/admin/modules/restapps/
  5. Page->data_get() /var/www/html/admin/modules/restapps/
  6. Controller->application_page_get() /var/www/html/admin/modules/restapps/applications.php:135

Any ideas?

Is this only happening when there are no messages waiting?

If it’s the same issue, you can rollback as shown in the ticket.

Ok, then it’s not broken. It works when you have a message like you said.

Now how do I fix it so when the user has no message and they press the voicemail button they get an empty mailbox they can administrate?

Did you read the ticket? Roll back with:

fwconsole ma downloadinstall restapps --tag

edit - no need to roll back, upgrade to current.

1 Like

igaetz, you called it. Same issue. I voted up your ticket.

1 Like

Thanks for this answer. We were getting the error when trying to change greetings for an empty mailbox. Ran your command and now all is well.

This error has been fixed.
At this point just upgrade all the modules to correct this trouble.