A NodeJS application that allows you to upload new greeting audio files to Unity Connections. Application uses the Cisco Unity Connection Provisioning Interface (CUPI) to download the greetings and the Webex Audio API to upload them.
Cisco Unity Connection Provisioning Interface (CUPI) information can be found at: Cisco Unity Connection Provisioning Interface (CUPI).
- Run as native node application using npm:
npm install
npm run start
- Build and run using Docker:
npm run docker:build
npm run docker:run
- Pull image from Docker.io and run with the following:
docker run -d --rm -v ./files:/app/files --env-file=.env sieteunoseis/unity-audio-importer:latest
Need to have an input.csv file in the volume of the project that you map to the container with the following columns:
name,extension,file,greeting
TEST-CallHandler,5035551212,standard-greeting.wav,Standard
All wav files should be in the same folder. The above example uses a file structure like the following:
Folder: files
- input.csv
- standard-greeting.wav
Log files will be created in the folder that you map to the container.
CUC_HOSTNAME=devnetsandbox.cisco.com
CUC_USERNAME=administrator
CUC_PASSWORD=ciscopsdt
Variable | Description | Required | Default |
---|---|---|---|
CUC_HOSTNAME | Cisco Unity Connections Hostname or IP Address. | Yes | N/A |
CUC_USERNAME | Cisco Unity Connections REST Username. | Yes | N/A |
CUC_PASSWORD | Cisco Unity Connections REST Password. | Yes | N/A |
If you would like to support my work and the time I put in creating the code, you can click the image below to get me a coffee. I would really appreciate it (but is not required).