GithubHelp home page GithubHelp logo

docker-cucm-risport's Introduction

Cisco CUCM RisPort Docker Gateway

NodeJS application using Cisco RisPort API to send data to InfluxDB cloud.

Install

npm run docker:build
npm run docker:run

Needed Enviromental Variables

NODE_ENV=production # production or development. uses dotenv for development purpose before building container
PM2_PUBLIC_KEY= # Optional for pm2.keymetrics.io
PM2_SECRET_KEY= # Optional for pm2.keymetrics.io
CUCM_PUB=<INSERT IP ADDRESS>
CUCM_USERNAME=<INSERT USERNAME>
CUCM_PASSWORD=<INSERT PASSWORD>
INTERVAL_TIMER=5000 # This should not be less than 4 seconds. By default RisPort70 accepts up to 18 requests per minute, combined across all RisPort70 applications
INFLUXDB_TOKEN=<INSERT INFLUXDB TOKEN>
INFLUXDB_ORG=<INSERT INFLUXDB ORG>
INFLUXDB_BUCKET=cisco_risport
INFLUXDB_URL=<INSERT INFLUXDB URL>
RISPORT_SOAPACTION=SelectCmDeviceExt # SelectCmDevice, SelectCmDeviceExt
RISPORT_MAXRETURNEDDEVICES=1000 # Max is 1000
RISPORT_DEVICECLASS=Any # Any, Phone, Gateway, H323, Cti, VoiceMail, MediaResources, HuntList, SIPTrunk, Unknown
RISPORT_MODEL=255 # Either ENUM integer or string of model name. 255 for "any model."
RISPORT_STATUS=Any # Any, Registered, UnRegistered, Rejected, PartiallyRegistered, Unknow
RISPORT_NODE= # The UC Manager node name to query. If no NodeName is given, all nodes in the cluster are queried.
RISPORT_SELECTBY=Name # Search by Name, IPV4Address, IPV6Address, DirNumber, Description, SIPStatus
RISPORT_SELECTITEM= # Either a single item or commma separated list
RISPORT_PROTOCOL=Any # Search by device protocol: Any, SCCP, SIP, Unknown
RISPORT_DOWNLOADSTATUS=Any # Any, Upgrading, Successful, Failed, Unknown

Save to .env file within project.

To view Docker enviromental variables within container run:

env

Giving Back

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).

Buy Me A Coffee

-Jeremy Worden

Enjoy!

docker-cucm-risport's People

Contributors

sieteunoseis avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.