[Freeswitch-users] Post-processing conference recording

Sebastian Kemper sebastian_ml at gmx.net
Mon Apr 17 10:17:58 MSD 2017


On Sun, Apr 16, 2017 at 11:33:47PM -0500, Chad Phillips wrote:
> I’m looking to do some simple post-processing on a recording made via
> “conference foo recording start /tmp/bar.mp4” — in this case, just fix
> up the file permissions and move it to a web-accessible directory.
> 
> I’m curious how others have approached this. My current plan is:
> 
>  - Fire up a simple event listener (probably a node.js service,
>  running as the same user that runs the FreeSWITCH process)
> 
>  - Listen for ‘del-member’ conference event, where Conference-Size is
>  0 (I'd prefer some kind of 'conference-end' event, but didn't find
>  any documentation saying something like that exists)
> 
>  - Locate the recording based on conference name, then handle the
>  perms/moving
> 
> Would love to hear a better/cleaner approach if anyone has one :)

Hello Chad,

Provided you're using Unix you can set up a simple cron job at an
interval of your choice that checks for *.mp4 files in your recordings
directory and in case it finds some moves them over to your web
directory with the permissions you want.

Regards,
Sebastian



Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list