Can i store call record sessions locally? I dont w...
# ask-ai
e
Can i store call record sessions locally? I dont want to use cloud to store them
t
Thanks for reaching out, Zaid. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Yes, you can store call recording sessions locally instead of using cloud storage by configuring the Egress service to save files to a mounted directory. Here’s how you can set it up: 1. Mount a Local Volume with Docker: Use Docker to mount a local directory to the Egress service. For example: `docker run --rm \ -v ~/livekit-egress:/out \ livekit/egress`This mounts the
~/livekit-egress
directory on your host machine to
/out
inside the container. 2. Configure the Egress Service: Create a configuration file (
config.yaml
) specifying the local directory for file storage: `# Required fields api_key: livekit_server_api_key api_secret: livekit_server_api_secret ws_url: ws://livekit-server-url:7880 redis: address: redis-server-address:6379 # Local storage configuration storage: local: path: /out/recordings`Replace
/out/recordings
with your desired local path and ensure the directory has write permissions. 3. Start the Egress Service with the Configuration: Run the Egress service with the configuration file:
Copy code
docker run --rm \
  -e EGRESS_CONFIG_FILE=/out/config.yaml \
  -v ~/livekit-egress:/out \
  livekit/egress
By following these steps, you can store recordings locally. Let me know if you need further assistance!