Asterisk : 21.6.0
PBX: 17.0.19.24
PBX Distro: 12.7.8-2408-1.sng12
PHP : 8.2.26
ucp : 17.0.4.23
scribe : 17.0.2.34
cdr: 17.0.4.34
cdrpro: 17.0.4.8
callrecording: 17.0.3.8
OS is Debian.
The server is a Debian clean install with a Freepbx v16 imported backup.
I wanted to test Scribe and for that I’m testing for the first time call recordings and I found that I’m not able to play or download the call recordings from the UCP.
The call history and CDR widgets seem to load correctly, but I noticed two issues:
When I click on a line in the CDR widget, the following error in the browser’s console show up:
jquery-3.6.0.min.js?…ersion=v17.0.4.23:2
GET https://XXXXX.XXXXX.com/ucp/ajax.php?module=cel&command=eventmodal 500
(Internal Server Error)
Internal Server Error: Undefined variable $displayvars
https://XXXXX.XXXXX.com/ucp/assets/js/compiled/main/jsphpg_b010f040d71d00083c04dbcd3450bd73.js?load_version=v17.0.4.23
When I click to download the recording in the Call history widget, it opens a new page that display the following error message:
{“error”:“ajaxRequest declined”}
I can read the system recordings from the FreePBX GUI, for example the one we recording for IVR.
I can also read the Voicemails from the UCP.
But I’m don’t know how to find the recorded calls since I don’t own the Call Recording Reports commercial module. I assume I can only read them from the UCP. I don’t even know if the recording I did actually worked. This is what I see in the call history widget on that particular call (assuming I successfully attached a screenshot)
I had a look at /var/spool/asterisk/monitor and I did find the test on demand call recording that is shown in the previous screenshot.
It’s a wave file called “ondemand-XXXXXXXXX-XXX-20250325-113210-1742927530.7023.wav” located in the directory “/var/spool/asterisk/monitor/2025/03/25”.
So I can say that recording works. It’s playing them or downloading them from the UCP widget that doesn’t work, rendering recording useless.
That and the fact that clicking on a line in the CDR UCP widget generate an error too, I have no idea what clicking on a line in the CDR is supposed to be doing.
And it results in not being able to use the module scribe at all.
Maybe this can help, when I click on the url https://XXXXX.XXXXX.com/ucp/index.php?quietmode=1 (which shows in the console as mentioned in the first message), it displays an exception page and the error is:
Undefined array key “command”
And it’s refering to a line of code in the file: /var/www/html/admin/modules/ucp/htdocs/index.php
The line of code is:
I fixed my issue with the Call History widget not playing recordings or not allowing me to download them. It’s embarrassing but I had it disabled in the group/user settings. I think the error message should be more explicit or the icons shouldn’t be displayed at all if the setting is disabled though.
I still have an issue with Scribe not doing any transcriptions, but that I should probably create a new topic.
Thank you for helping me fix the Call Event module by downgrading it!
Just in case someone has the same issues as me with Scribe not doing transcriptions:
User permissions don’t seem to overwrite Group permissions like all other permissions in Freepbx. You need to allow scribe at the group level and then limit it in for the users or remove permissions to record for example. It’s really strange, probably a bug too, but all my issues are resolved at this point.