I installed #3042: Call Me feature for ARI (click-to-call voicemail playback) this morning, now when anyone goes to the recordings web page all they get is garbage. What do I need to do to reverse this. Right now, I just want to get back to where I was, then we can work on troubleshooting…
The patch command may have created troubleshooting files if the installation ran into errors. There are probably .rej files in your recordings/modules/ directory which ARI is trying to load as valid php code. This could easily occur if the patch file was run twice. If you remove these .rej files, that should clear up the garbage you are seeing.
If the files above exist, you will need to remove them, no matter what version of ARI you are running. If you want to revert to the stock version of ARI after you remove the files, you can remove the admin/modules/fw_ari/ directory. Then the Module Admin will list FreePBX ARI Framework as Broken. Click on the module name and choose Install under the Action panel. This will reinstall the latest version of FreePBX ARI Framework that you have downloaded.
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /var/www/html/recordings/modules/voicemail.module on line 12
After Getting things back to normal, I had a bit of time to troubleshoot.
When I ran the patch command I get the following:
[root@ceros1 html]# patch -p0 < callme.patch
The next patch would create the file recordings/includes/callme.php,
which already exists! Assume -R? [n] yes
patching file recordings/includes/callme.php
patching file recordings/includes/common.php
patching file recordings/misc/callme_page.php
patching file recordings/misc/play_page.php
patching file recordings/modules/settings.module
patching file recordings/modules/voicemail.module
Hunk #3 FAILED at 383.
Hunk #4 FAILED at 404.
Hunk #5 succeeded at 443 with fuzz 2 (offset 14 lines).
Hunk #6 succeeded at 472 (offset -1 lines).
Hunk #7 succeeded at 505 (offset 14 lines).
Hunk #8 succeeded at 512 (offset -1 lines).
Hunk #9 succeeded at 582 (offset 14 lines).
2 out of 9 hunks FAILED – saving rejects to file recordings/modules/voicemail.module.rej
[root@ceros1 html]#
After this and deleting the .rej file I get the following errors from the ari web page:
Warning: main(./includes/callme.php): failed to open stream: No such file or directory in /var/www/html/recordings/includes/common.php on line 439
Warning: main(): Failed opening ‘./includes/callme.php’ for inclusion (include_path=’.:/usr/share/pear’) in /var/www/html/recordings/includes/common.php on line 439
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /var/www/html/recordings/modules/voicemail.module on line 12
Thanks for your follow up. Running the patch file several times is giving you a very odd result. Please download the tarball from #3042 and follow the instructions for installing it. That should give you the full set of files that you need. I’m looking forward to hearing your results.
Thanks for hanging in there. Once I saw your listing, I saw my mistake right away. My instructions on #3042 said to copy the patch or tarball to the webroot, but that was wrong. Please follow the updated instructions on #3042.
That did it. There is only one small problem, it appears that the speaker icon and the download icon do exactly the same thing. The download the audio file. Isn’t the speaker icon supposed to bring up a player…
On my system, clicking the speaker icon slides open a new row in the table below the row that was clicked, and a Quicktime control appears inside the new row and plays the embedded sound file. Clicking the download icon makes the browser just download the audio file. Any idea why your system is doing something different?
Firefox works just fine using the Quicktime plugin on several of my computers. Maybe Firefox doesn’t have a plugin installed to handle embedded audio files on your machine. In that case it would always try to save the file instead of play it back embedded on the page.