Quantcast
Channel: FreePBX Community Forums - Latest posts
Viewing all articles
Browse latest Browse all 227437

Retrieve recordings with REST interface

$
0
0

Hi everyone,
I’m working with FreePBX 16 (Asterisk 18) and trying to use the REST API to retrieve recordings list and files.
I see recordings go in the default location of /var/spool/asterisk/monitor/YYYY/MM/DD/ while REST API looks for file in /var/spool/asterisk/recording/ so this is not working at the moment. I also would like that only ‘complete’ recordings get returned by REST API (e.g. stored calls, not calls currently live). How to accomplish this?
I found these options, but I do know how to go on:

  • change the default folder of MixMonitor within extensions_additional.conf to /var/spool/asterisk/recording/ but I see 2 drawbacks: 1) this file is supposed NOT to be edited (so how FreePBX supports this?) 2) assuming this works, this would return live calls too and not stored calls only

  • leave asterisk configuration as it is, and then copy complete file from monitor folder to recordings folder at OS level, but I think this is an extremely dirty solution

  • I’ve read that REST API handles recordings done by Stasis application, so this would require writing a Stasis application but I don’t know how to make an application which simply record a call

Can anyone please point me to a good solution?


Viewing all articles
Browse latest Browse all 227437

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>