<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Recordings]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">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.</p>
<ul>
<li>When I click on "play" icon nothing happens</li>
<li>When I click on "download" icon I get a message "no way".</li>
</ul>
<p dir="auto">I've found some information about the "no way" message and memcached, but I haven't found any settings in /etc/php.d.</p>
<p dir="auto">Also, is there a way of showing recorded calls in ARI (Freepbx call monitor) interface?</p>
<p dir="auto">Thank you,<br />
Andrej</p>
]]></description><link>http://localhost:4567/topic/1016/recordings</link><generator>RSS for Node</generator><lastBuildDate>Tue, 27 Oct 2026 06:41:23 GMT</lastBuildDate><atom:link href="http://localhost:4567/topic/1016.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 20 Jan 2012 11:07:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Recordings on Tue, 11 Mar 2014 02:18:47 GMT]]></title><description><![CDATA[<p dir="auto">A re-install with the latest version seems to have fixed all issues.</p>
<p dir="auto">Thanks for your help.</p>
]]></description><link>http://localhost:4567/post/4495</link><guid isPermaLink="true">http://localhost:4567/post/4495</guid><dc:creator><![CDATA[OZPHB]]></dc:creator><pubDate>Tue, 11 Mar 2014 02:18:47 GMT</pubDate></item><item><title><![CDATA[Reply to Recordings on Sun, 09 Mar 2014 13:15:49 GMT]]></title><description><![CDATA[<p dir="auto">I thinks your recordings table is not being populated right, seems like the context is being left blank or similar to that, perhaps due to the configuration in fop2.cfg being inherited from previous fop2 versions:</p>
<pre><code>monitor_filename=/var/spool/asterisk/monitor/${ORIG_EXTENSION}_${DEST_EXTENSION}_%h%i%s_${UNIQUEID}_${FOP2CONTEXT}
monitor_format=wav
monitor_mix=true
monitor_exec=/usr/local/fop2/recording_fop2.pl
</code></pre>
<p dir="auto">Also, in recording_fop2.pl, be sure you use the last version also:</p>
<pre><code>my ( $exten, $targetexten, $fullmbox, $uniqueid, $context ) = split( /_/, $basename );

if(!defined($context)) {
    $context="";
}

$uniqueid =~ s/\.wav//g;
$context  =~ s/\.wav//g;
</code></pre>
<p dir="auto">Best regards,</p>
]]></description><link>http://localhost:4567/post/4494</link><guid isPermaLink="true">http://localhost:4567/post/4494</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Sun, 09 Mar 2014 13:15:49 GMT</pubDate></item><item><title><![CDATA[Reply to Recordings on Sun, 09 Mar 2014 05:50:44 GMT]]></title><description><![CDATA[<p dir="auto">It looks like recordings.php is already set to allow persons with 'phonebook' permissions to view recordings:</p>
<pre><code>$context   = $_SESSION[MYAP]['context'];
$extension = $_SESSION[MYAP]['extension'];
$allowed   = $_SESSION[MYAP]['phonebook'];
$admin     = $_SESSION[MYAP]['admin'];
</code></pre>
<pre><code>if($allowed &lt;&gt; "yes") {
   die("You do not have permissions to access this resource.");
}
</code></pre>
<p dir="auto">and admin or ownerextension to play them:</p>
<pre><code>$grid-&gt;set_condition("(ownerextension='$extension' OR $admin=1)");
</code></pre>
<p dir="auto">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.</p>
<p dir="auto">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:  )</p>
]]></description><link>http://localhost:4567/post/4493</link><guid isPermaLink="true">http://localhost:4567/post/4493</guid><dc:creator><![CDATA[OZPHB]]></dc:creator><pubDate>Sun, 09 Mar 2014 05:50:44 GMT</pubDate></item><item><title><![CDATA[Reply to Recordings on Sat, 08 Mar 2014 22:42:15 GMT]]></title><description><![CDATA[<p dir="auto">Currently fop2 will set an "admin" session variable to the user with "all" in permissions, recordings will be available to that user. There is no separate "recordings" permission to be set. You could alter the code to require the "phonebook" permission instead of "admin" (in recordings.php), or even set the permission to particular extensions in code directly.</p>
<p dir="auto">Best regards,</p>
]]></description><link>http://localhost:4567/post/4492</link><guid isPermaLink="true">http://localhost:4567/post/4492</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Sat, 08 Mar 2014 22:42:15 GMT</pubDate></item><item><title><![CDATA[Reply to Recordings on Wed, 05 Mar 2014 02:08:17 GMT]]></title><description><![CDATA[<p dir="auto">The remaining issue is that my 'normal' fop2 users cannot see or play any recordings unless they have the 'all' permission.</p>
<p dir="auto">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.</p>
<p dir="auto">Specific permissions I have tested, none of which allow viewing or playing recordings are:<br />
chat<br />
dial<br />
hangupself<br />
meetme<br />
phonebook<br />
pickup<br />
preferences<br />
queueagent<br />
queuemanager<br />
record<br />
recordself<br />
transfer<br />
transferexternal</p>
<p dir="auto">I would prefer not to give the 'all' permission to all of my users.  Is there a better solution?</p>
]]></description><link>http://localhost:4567/post/4491</link><guid isPermaLink="true">http://localhost:4567/post/4491</guid><dc:creator><![CDATA[OZPHB]]></dc:creator><pubDate>Wed, 05 Mar 2014 02:08:17 GMT</pubDate></item><item><title><![CDATA[Reply to Recordings on Wed, 05 Mar 2014 02:03:20 GMT]]></title><description><![CDATA[<p dir="auto">Hi Nicolás,<br />
Digging up an old  post here, but it seems that the issue identified in this post is not wholly resolved  <img src="http://localhost:4567/assets/plugins/nodebb-plugin-emoji/emoji/android/1f61e.png?v=9c14fadbfa0" class="not-responsive emoji emoji-android emoji--disappointed" style="height:1.4em;width:auto;vertical-align:middle" title=":(" alt="😞" /></p>
<p dir="auto">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.</p>
<p dir="auto">I am using:<br />
FOP 2.27<br />
Asterisk 11.7.0<br />
FreePBX 2.11.0.24<br />
Running on CentOS 6.5</p>
<p dir="auto">I see that, in FOP2.27 you have incorporated the coding change mentioned in this post into the download.php file<br />
(for the benefit of other readers, this file is located here:  /var/www/html/fop2/download.php )</p>
<p dir="auto">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  ;<br />
instead, they are just being stored in /var/spool/asterisk/monitor</p>
<p dir="auto">accordingly, I changed this line in download.php:</p>
<pre><code>if(!stristr($_SESSION[MYAP]['vfile'],$_SESSION[MYAP]['vpath']) &amp;&amp; !stristr($_SESSION[MYAP]['vfile'],'/var/spool/asterisk/monitor/fop2')) {
</code></pre>
<p dir="auto">to remove the 'fop2', becoming:</p>
<pre><code>if(!stristr($_SESSION[MYAP]['vfile'],$_SESSION[MYAP]['vpath']) &amp;&amp; !stristr($_SESSION[MYAP]['vfile'],'/var/spool/asterisk/monitor')) {
</code></pre>
<p dir="auto">This now works. 8-)</p>
<p dir="auto">There is a sub-issue remaining, which I will post in a separate post below.</p>
]]></description><link>http://localhost:4567/post/4490</link><guid isPermaLink="true">http://localhost:4567/post/4490</guid><dc:creator><![CDATA[OZPHB]]></dc:creator><pubDate>Wed, 05 Mar 2014 02:03:20 GMT</pubDate></item><item><title><![CDATA[Reply to Recordings on Mon, 30 Jan 2012 19:44:29 GMT]]></title><description><![CDATA[<p dir="auto">Many thanks, that worked like a charm! <img src="http://localhost:4567/assets/plugins/nodebb-plugin-emoji/emoji/android/1f642.png?v=9c14fadbfa0" class="not-responsive emoji emoji-android emoji--slightly_smiling_face" style="height:1.4em;width:auto;vertical-align:middle" title=":-)" alt="🙂" /></p>
<p dir="auto">Have a good day,<br />
Andrej</p>
]]></description><link>http://localhost:4567/post/4489</link><guid isPermaLink="true">http://localhost:4567/post/4489</guid><dc:creator><![CDATA[tekach]]></dc:creator><pubDate>Mon, 30 Jan 2012 19:44:29 GMT</pubDate></item><item><title><![CDATA[Reply to Recordings on Fri, 27 Jan 2012 20:53:54 GMT]]></title><description><![CDATA[<p dir="auto">Hi Andrej,</p>
<p dir="auto">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.</p>
<p dir="auto">Maybe I can hardcode the /var/spool/asterisk/fop2 directory, or limit download for anything under /var/spool/asterisk only.</p>
<p dir="auto">You can modify donwload.php and change this:</p>
<pre><code>if(!stristr($_SESSION[MYAP]['vfile'],$_SESSION[MYAP]['vpath'])) {
    die("no way");
}
</code></pre>
<p dir="auto">to something like this:</p>
<pre><code>if(!stristr($_SESSION[MYAP]['vfile'],$_SESSION[MYAP]['vpath']) &amp;&amp; !stristr($_SESSION[MYAP]['vfile'],'/var/spool/asterisk/monitor/fop2')) {
    die("no way");
}
</code></pre>
]]></description><link>http://localhost:4567/post/4488</link><guid isPermaLink="true">http://localhost:4567/post/4488</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Fri, 27 Jan 2012 20:53:54 GMT</pubDate></item><item><title><![CDATA[Reply to Recordings on Thu, 26 Jan 2012 09:07:16 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">I've double checked the ownership of /var/lib/php/sessions and owner was already asterisk:asterisk.</p>
<p dir="auto">According to use of tail -f /var/log/httpd/error_log while clicking on play or download icons produces no error messages.</p>
<p dir="auto">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.</p>
<p dir="auto">Other apps relying on php sessions are working OK.</p>
<p dir="auto">I understand that working environment has nothing to do with excelent product of yours, but would appreciate any further hints.</p>
<p dir="auto">Thanks<br />
Andrej</p>
]]></description><link>http://localhost:4567/post/4487</link><guid isPermaLink="true">http://localhost:4567/post/4487</guid><dc:creator><![CDATA[tekach]]></dc:creator><pubDate>Thu, 26 Jan 2012 09:07:16 GMT</pubDate></item><item><title><![CDATA[Reply to Recordings on Wed, 25 Jan 2012 20:44:33 GMT]]></title><description><![CDATA[<p dir="auto">The reason was that I was on vacations.. it seems you have session problems. no way means that.</p>
<p dir="auto">If you use trixbox, disable memcache</p>
<p dir="auto">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:</p>
<pre><code>ls -lda /var/lib/php/sessions
</code></pre>
<p dir="auto">(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).</p>
<p dir="auto">If the directory above exists, and has an owner other than asterisk, then change ownwership</p>
<p dir="auto">chown asterisk.asterisk /var/lib/php/sessions</p>
<p dir="auto">Then restart the web server and try again. If you have session problems, they are usually logged in your apache error_log.</p>
<p dir="auto">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.</p>
<p dir="auto">ALL OF THE ABOVE is not related with the fop2 installation itself.</p>
<p dir="auto">Best regards,</p>
]]></description><link>http://localhost:4567/post/4486</link><guid isPermaLink="true">http://localhost:4567/post/4486</guid><dc:creator><![CDATA[nicolas]]></dc:creator><pubDate>Wed, 25 Jan 2012 20:44:33 GMT</pubDate></item><item><title><![CDATA[Reply to Recordings on Wed, 25 Jan 2012 16:48:43 GMT]]></title><description><![CDATA[<p dir="auto">Hi Nicolas,</p>
<p dir="auto">is there a reason why this post is ignored?</p>
<p dir="auto">BR<br />
Andrej</p>
]]></description><link>http://localhost:4567/post/4485</link><guid isPermaLink="true">http://localhost:4567/post/4485</guid><dc:creator><![CDATA[tekach]]></dc:creator><pubDate>Wed, 25 Jan 2012 16:48:43 GMT</pubDate></item></channel></rss>