Recordings
Hello,
I have a problem with using recordings interface on FOP 2.24. I can see recorded calls in FOP2's interface. They are also physically present in /var/spool/asterisk/fop2/date.
- When I click on "play" icon nothing happens
- When I click on "download" icon I get a message "no way".
I've found some information about the "no way" message and memcached, but I haven't found any settings in /etc/php.d.
Also, is there a way of showing recorded calls in ARI (Freepbx call monitor) interface?
Thank you,
Andrej
I have a problem with using recordings interface on FOP 2.24. I can see recorded calls in FOP2's interface. They are also physically present in /var/spool/asterisk/fop2/date.
- When I click on "play" icon nothing happens
- When I click on "download" icon I get a message "no way".
I've found some information about the "no way" message and memcached, but I haven't found any settings in /etc/php.d.
Also, is there a way of showing recorded calls in ARI (Freepbx call monitor) interface?
Thank you,
Andrej
Comments
is there a reason why this post is ignored?
BR
Andrej
If you use trixbox, disable memcache
If you are not using trixbox, but you updated php via yum, most probably your php sessions directory has a different owner than asterisk, to find out run:
(assuming your php session directory is the above, I do not have a way to know what your php session directory is nor its configuration, you have to check your php settings).
If the directory above exists, and has an owner other than asterisk, then change ownwership
chown asterisk.asterisk /var/lib/php/sessions
Then restart the web server and try again. If you have session problems, they are usually logged in your apache error_log.
Again, I said USUALLY. No install is the same, so I do not know if your php is logging in errors into the web server error log or not, that depends on your install/configuration.
ALL OF THE ABOVE is not related with the fop2 installation itself.
Best regards,
I've double checked the ownership of /var/lib/php/sessions and owner was already asterisk:asterisk.
According to use of tail -f /var/log/httpd/error_log while clicking on play or download icons produces no error messages.
I'm using Centos 5.7 x64, Freepbx and compiled asterisk. Asterisk and apache are running under asterisk user. I'm getting same result with Chrome and IE.
Other apps relying on php sessions are working OK.
I understand that working environment has nothing to do with excelent product of yours, but would appreciate any further hints.
Thanks
Andrej
I have found the problem, it is indeed a bug as 2.24 has some security improvements that is actually preventing the download of recordings (as it only allows the voicemail path for files to be downloaded). If the destination directory is set to /var/spool/asterisk/voicemail/something , it will work. But /var/spool/asterisk/fop2 does not.
Maybe I can hardcode the /var/spool/asterisk/fop2 directory, or limit download for anything under /var/spool/asterisk only.
You can modify donwload.php and change this:
to something like this:
Have a good day,
Andrej
Digging up an old post here, but it seems that the issue identified in this post is not wholly resolved
I found this post by googling this site for the same issue - namely, a 'no way' message when a user tried to play or download a recording.
I am using:
FOP 2.27
Asterisk 11.7.0
FreePBX 2.11.0.24
Running on CentOS 6.5
I see that, in FOP2.27 you have incorporated the coding change mentioned in this post into the download.php file
(for the benefit of other readers, this file is located here: /var/www/html/fop2/download.php )
Even with this change, I still experienced the issue. I have looked at my config, and the FOP2 recordings are no longer being stored in /var/spool/asterisk/monitor/fop2 ;
instead, they are just being stored in /var/spool/asterisk/monitor
accordingly, I changed this line in download.php:
to remove the 'fop2', becoming:
This now works. 8-)
There is a sub-issue remaining, which I will post in a separate post below.
I have tried giving the users pretty much every permission individually, and in every case, they cannot see nor play the recordings. If I give them the 'all' permission, they can see and play the recordings.
Specific permissions I have tested, none of which allow viewing or playing recordings are:
chat
dial
hangupself
meetme
phonebook
pickup
preferences
queueagent
queuemanager
record
recordself
transfer
transferexternal
I would prefer not to give the 'all' permission to all of my users. Is there a better solution?
Best regards,
and admin or ownerextension to play them:
However this is not the actual behaviour I am seeing. What is happening is that if the user has anything other than 'all' permission set, then they cannot see anything at all under the "Recordings" tab. If they have the 'all' permissions set, then they see ALL recordings, made by any extension.
Am I right in thinking that this is not the designed behaviour? According to the script (which I have not modified) shouldn't a user with 'phonebook' permission already be able to see their own list, and play it ? If so, any theories as to what is going wrong? (Or am I misreading the script entirely :oops: )
Also, in recording_fop2.pl, be sure you use the last version also:
Best regards,
Thanks for your help.