" /> Syncing Audio Files - MCP - Genesys CTI User Forum

Author Topic: Syncing Audio Files - MCP  (Read 1856 times)

Offline zimmerru

  • Newbie
  • *
  • Posts: 17
  • Karma: 0
Syncing Audio Files - MCP
« on: February 09, 2017, 07:22:38 PM »
Advertisement
We have a number of MCP's for both Dev and Prod environments and I am wondering if anyone has done a script that could be used to sync the files on each MCP from a central master location.. like a web server. 

We don't want to just have the MCP pull files form the web server as that would be a single point of failure, but we do want to sync the music and announcement folders on each MCP install from a central location so when we deploy audio files out there, a script on the MCP grabs them and puts them where they need to be.  We have Redhat Linux for the OS on the MCP servers.

I'm open to other approaches as well, this is just what I had come up with as a solution. 

Offline borkokrz

  • Full Member
  • ***
  • Posts: 154
  • Karma: 6
Re: Syncing Audio Files - MCP
« Reply #1 on: March 11, 2017, 07:31:02 PM »
If you don't want single Web server and all OS are linux create a simple cron job that will copy (scp) all music/announcements into Dev/Prod hosts every 1 hour per example? Or more frequently if needed.
Do you use GAX? If yes, there is Audio Resource Management with possibility to upload audio files. That way you will have an GUI interface to upload files. Underneath you will have cron job that will propagate audio into dev/prod hosts. Unfortunately file naming rules are a little bit tricky in GAX (digits only that specify tenant, personality and message),  but you will have to live with it. 
The second idea is to use some external web server (Apache/Tomcat), use some servlets to upload audio files and cron job underneath. That way in case of web server failure you still will have a local copy on MCP hosts. The only functionality that will fail in this scenario will be file uploading. In this case file naming rules is your free will.