#3042: Call Me feature for ARI (click-to-call voicemail playback)

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…

Bill/W5WAF

Bill,

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.

Thanks, Seth

Thanks…I’ll get it back to normal…then troubleshoot it…

Bill/W5WAF

Yes…I did indeed see errors…

Bill

After removing the .rej files I get:

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

Bill

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
Bill/W5WAF

Bill,

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,
Seth

Did the tarball…no errors, I can get to the Recordings page, but don’t see anything different.

Strange…Huh???

Bill

Bill, can you post the results of:

ls -la

from your webroot directory?

/var/www/html
[root@ceros1 html]# ls -la
total 3328
drwxr-xr-x 20 root root 4096 Sep 26 18:45 .
drwxr-xr-x 7 root root 4096 May 30 20:13 …
drwxr-xr-x 4 root root 4096 May 30 20:13 aastra
-rw-rw-r-- 1 root root 5324 Jan 5 2007 about.php
drwxrwx-w- 9 asterisk asterisk 4096 Oct 23 2007 admin
drwxrwxr-x 2 asterisk asterisk 4096 Dec 7 2006 _asterisk
-rw-r–r-- 1 root root 22365 Sep 26 15:28 callme-2.5.1.1.tgz
-rw-r–r-- 1 root root 22365 Sep 25 12:43 callme-2.5.1.1.tgz?format=raw
-rw-r–r-- 1 root root 21491 Aug 15 15:15 callme.patch
drwxrwxr-x 4 asterisk asterisk 4096 Dec 7 2006 cisco
drwxrwxr-x 16 asterisk asterisk 4096 Dec 7 2006 crm
-rw-rw-r-- 1 asterisk asterisk 1150 Dec 7 2006 favicon.ico
drwxrwxr-x 2 asterisk asterisk 4096 Dec 7 2006 images
drwxrwxr-x 3 asterisk asterisk 4096 Dec 7 2006 include
drwxr-xr-x 2 root root 4096 Sep 26 16:48 includes
-rw-rw-r-- 1 asterisk asterisk 602 Aug 19 03:04 index.html
-rw-rw-r-- 1 asterisk asterisk 97 Dec 7 2006 index.php
-rwxrw-rw- 1 asterisk asterisk 4542 Aug 19 03:04 mainstyle.css
drwxrwxr-x 12 asterisk asterisk 4096 Aug 3 2007 maint
drwxrwxr-x 5 asterisk asterisk 4096 Dec 7 2006 meetme
drwxr-xr-x 2 root root 4096 Sep 26 16:48 misc
drwxr-xr-x 2 root root 4096 Sep 26 16:48 modules
drwxrwxr-x 2 asterisk asterisk 4096 Dec 7 2006 nwebmail
drwxrwx— 2 asterisk asterisk 4096 Jul 18 2007 panel
drwxrwxr-x 7 asterisk asterisk 4096 Dec 7 2006 recordings
-rw-rw-r-- 1 asterisk asterisk 17 Aug 2 2007 .regData
lrwxrwxrwx 1 root root 24 Aug 3 2007 rhino -> /home/rhino/public_html/
-rw-rw-r-- 1 asterisk asterisk 28 Dec 7 2006 robots.txt
-rw-r–r-- 1 root root 3200944 Jan 25 2008 snom320-7.1.30-SIP-f.bin
drwxrwxr-x 2 asterisk asterisk 4096 Mar 17 2007 templates_c
drwxrwxr-x 12 asterisk asterisk 4096 Jul 21 2007 user
drwxrwxr-x 7 asterisk asterisk 4096 Apr 11 2007 xmlservices

Bill,

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.

Thanks, Seth

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…

But Maybe I misunderstand.

Thanks
Bill/W5WAF

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?

Thanks, Seth

Hi Seth:

Apparently a browser thing. I was running Firefox and it didn’t work, Running with IE works perfectly.

Bill

Bill,

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.

Thanks, Seth