magnusbilling7 icon indicating copy to clipboard operation
magnusbilling7 copied to clipboard

Bug Report: Queue Call Recordings Not Downloadable

Open Thiviyan opened this issue 9 months ago • 0 comments
trafficstars

Describe the bug

Queue call recordings are not being saved in the correct user folder, making them undownloadable from the Magnus Billing UI. Regular call recordings work fine, but queue call recordings show “Audio not found” when attempting to download them.

To Reproduce

Steps to reproduce the behavior: 1. Receive a call through a queue. 2. Answer and complete the call. 3. Go to Call Recordings in Magnus Billing UI. 4. Try to download the queue call recording → Error: “Audio not found.” 5. Check the recording location using:

ls -lh /var/spool/asterisk/monitor/

•	✅ Expected: /var/spool/asterisk/monitor/{username}/{uniqueid}.wav
•	❌ Actual: /var/spool/asterisk/monitor/{uniqueid}.wav (wrong location)

Expected behavior

Queue call recordings should be saved in /var/spool/asterisk/monitor/{username}/, similar to regular calls. The UI should be able to locate and download them correctly.

Screenshots

N/A (CLI output available in logs below)

Desktop (please complete the following information): • OS: Debian GNU/Linux 12 (Bookworm) • Web Server: Apache 2.4.62 • PHP Version: 8.2.26 • MySQL/MariaDB Version: 10.11.6-MariaDB • Kernel Version: 6.1.0-30-cloud-amd64

Smartphone (please complete the following information, if applicable):

N/A

Additional context • Magnus Billing Version: 7.8.5.0 • Asterisk Version: 13.38.3 • Installed PHP Modules: curl, json, libxml, mbstring, mysqli, mysqlnd, openssl, pdo_mysql, pdo_sqlite, xml, xmlreader, xmlwriter

Possible Causes / Suggestions • QueueAgi.php might not be properly setting the user folder for queue recordings. • CallController.php might be looking in the wrong directory for queue recordings. • Asterisk mixmonitor settings may need adjustments to ensure queue calls are stored in the right folder.

Let me know if further logs or testing are required! 🚀

Thiviyan avatar Jan 31 '25 14:01 Thiviyan