voice-api-outbound-recording

所属分类:构建工具
开发工具:JavaScript
文件大小:0KB
下载次数:0
上传日期:2023-10-26 04:48:40
上 传 者sh-1993
说明:  使用我们的EnableX可编程语音API使用指南来管理出站呼叫。深入了解说明并简化您的语音...,
(Master outbound calls with our guide on using the EnableX Programmable Voice APIs. Dive into the instructions and streamline your voice communications by setting up key environment variables, configuring webhooks, and employing the client-outbound-recording.js script.)

文件列表:
.editorconfig (483, 2023-10-25)
.env.example (1826, 2023-10-25)
.eslintrc.json (259, 2023-10-25)
client-outbound-recording.js (7130, 2023-10-25)
client/ (0, 2023-10-25)
client/index.html (8331, 2023-10-25)
client/public/ (0, 2023-10-25)
client/public/css/ (0, 2023-10-25)
client/public/css/style-sign-in.css (13295, 2023-10-25)
client/public/img/ (0, 2023-10-25)
client/public/img/enableX_logo.png (1354, 2023-10-25)
client/public/img/enablex.png (2430, 2023-10-25)
client/public/img/end-call.png (3634, 2023-10-25)
client/public/img/favicon.ico (887, 2023-10-25)
client/public/img/loader.gif (23462, 2023-10-25)
client/public/img/logo.png (6694, 2023-10-25)
client/public/img/mike.png (3178, 2023-10-25)
client/public/img/mute-mike.png (3435, 2023-10-25)
client/public/img/mute-video.png (3261, 2023-10-25)
client/public/img/player-bg.gif (1099, 2023-10-25)
client/public/img/video.png (2834, 2023-10-25)
client/public/img/video_off.svg (1956, 2023-10-25)
client/public/img/video_on.svg (1799, 2023-10-25)
client/public/img/volume_off.svg (482, 2023-10-25)
client/public/img/volume_on.svg (742, 2023-10-25)
client/public/js/ (0, 2023-10-25)
client/public/js/index.js (2109, 2023-10-25)
logger.js (796, 2023-10-25)
package-lock.json (79474, 2023-10-25)
package.json (543, 2023-10-25)
voiceapi.js (3980, 2023-10-25)

# Initiating Outbound Calls with EnableX Programmable Voice APIs: Step-by-Step Guide Learn how to initiate efficient outbound calling with EnableX Programmable Voice APIs. This guide walks you through the setup – from cloning our repository to configuring essential webhooks. Secure your calls with optional SSL certificates and confidently manage your call workflows using the 'client-outbound-recording.js' script. Dive in today and revolutionize your voice communication with EnableX ## Pre-requisite - You will need Enablex Application credentials, APP ID and APP KEY. To find credentials, register with EnableX (https://portal.enablex.io/cpaas/trial-sign-up/). - You will need a place for hosting this application either cloud or local machine. ## Installation - `git clone https://github.com/EnableX/voice-api-outbound-recording.git` - `cd voice-api-outbound-recording` - `npm install` ## Setting up configurations using environment variables For Mac and Linux, open a terminal window and type the following commands. Note - Replace all the characters after the = with values from your EnableX account: - Set APP ID and APP KEY. It is required configuration. - `export ENABLEX_APP_ID=` - `export ENABLEX_APP_KEY=` - Set port. Default port is set to 3000. It is an optional configuration. - `export SERVICE_PORT=` For Windows: - Make a file with name ".env" in root directory . And copy content of .env.example in .env file . Then set these variables manually in .env file. - `ENABLEX_APP_ID` , `ENABLEX_APP_KEY` , `SERVICE_PORT` ## Webhook - EnableX will send HTTP requests to your application (`/event`) after certain events occur. For Mac and Linux, open a terminal window and type the following commands. Note - Replace all the characters after the = with values from your EnableX account: - If you have deployed this service on a web server which is publicly accessible, set the public URL. Example - `https://{PUBLIC_URL}` - `export PUBLIC_WEBHOOK_URL=` - If you want to test this service on a web server running locally on your own computer at a given port, with ngrok, you can generate URL that tunnels requests to your web server running locally. Once ngrok installed, run following - - `./ngrok http {SERVICE_PORT}` . It should provide you a ngrok URL something similar to `https://fc6c892d6cd7.ngrok.io`. Now, Set the ngrok URL. Example - `https://fc6c892d6cd7.ngrok.io` - `export PUBLIC_WEBHOOK_URL=` - Set to run the service on http / https (false / true) - `export LISTEN_SSL=` For Windows: - In that .env file also update the values of `PUBLIC_WEBHOOK_URL` , `LISTEN_SSL`. - Their explanation is given in Linux/Mac section (Upper section). ## SSL Certificate (Self Signed or Registered). It is required configuration if LISTEN_SSL is set to true. For Linux/Mac: - Make a directory called certs on the root of the project - `mkdir certs` - Change to certs directory - `cd certs` - Create and Install certificates - `sudo openssl req -nodes -new -x509 -keyout example.key -out example.crt -days 365 -subj '/CN=example.com/O=My Company Name LTD./C=US'; cat example.crt > example.ca-bundle` - use the certificate .key [self signed or registered] - `export CERTIFICATE_SSL_KEY=` - use the certificate .crt [self signed or registered] - `export CERTIFICATE_SSL_CERT=` - use the certificate CA[chain] [self signed or registered] - `export CERTIFICATE_SSL_CACERTS=` - switch to the root of the project - `cd ..` For Windows (Using Git Bash): - Make a directory called certs on the root of the project - `mkdir certs` - Change to certs directory - `cd certs` - Create and Install certificates - `openssl req -nodes -new -x509 -keyout example.key -out example.crt -days 365` - `cat example.crt > example.ca-bundle` - Update these fields manually in .env file if not given else you can ignore it. - use the certificate .key [self signed or registered] - `CERTIFICATE_SSL_KEY=` - use the certificate .crt [self signed or registered] - `CERTIFICATE_SSL_CERT=` - use the certificate CA[chain] [self signed or registered] - `CERTIFICATE_SSL_CACERTS=` - switch to the root of the project - `cd ..` ## Starting the client application script - For Outbound Calls, - `node client-outbound-recording.js`

近期下载者

相关文件


收藏者