No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
public
routes
views
.gitignore
CODE_OF_CONDUCT.md
CONTRIBUTING.md
ISSUE_TEMPLATE.md
LICENSE
PULLREQUEST.md
PULL_REQUEST_TEMPLATE.md
README.md
app.js
options.json
package.json
yarn.lock

README.md

Bandwidth early media example

Bandwidth Call & Conference API Sample App for early media, see http://ap.bandwidth.com/

Prerequisites

  • Bandwidth account
  • Node 0.12+

Open external access via ngrock to receive callbacks

First instal ngrock on your computer. Run ngrock by

ngrok http 3000 #you can use another free port if need 

You will see url like http://XXXXXXX.ngrok.io on console output. Open options.json and fill it callbackUrl.

"callbackUrl": "http://XXXXXXX.ngrok.io/"

Add credentials

Add credentials on options.json file

{    
    "apiEndPoint": "<API_ENDPOINT>",
    "apiToken": "<API_TOKEN>",
    "apiSecret": "<API_SECRET>",    
    "userId": "<USER_ID>",    
    "callbackUrl": "http://XXXXXXX.ngrok.io"    
}

Save changes.

Run

Install app dependencies by

npm install

Run the app by

PORT=3000 node app.js

Open http://localhost:3000 in browser.