https://github.com/apidaze/localtunnel_ngrok_example
A simple PSTN audio bridge application built with APIdaze
https://github.com/apidaze/localtunnel_ngrok_example
localtunnel ngrok webrtc
Last synced: 3 months ago
JSON representation
A simple PSTN audio bridge application built with APIdaze
- Host: GitHub
- URL: https://github.com/apidaze/localtunnel_ngrok_example
- Owner: apidaze
- Created: 2014-04-15T15:01:29.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-08-11T20:37:28.000Z (about 8 years ago)
- Last Synced: 2025-04-07T18:13:51.564Z (6 months ago)
- Topics: localtunnel, ngrok, webrtc
- Language: HTML
- Homepage:
- Size: 23.4 KB
- Stars: 5
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sample code that works with localtunnel/ngrok
A sample code to start using your own webserver as an interface to APIdaze conference bridge.
# Want to build your own ?
## Clone this repository and install
$ git clone git@github.com:apidaze/localtunnel_ngrok_example
$ cd webrtc_server_example# Configure your External Script
APIdaze fetches your web server in order to get instructions on how to process calls. Your server must return XML tags to APIdaze, which acts as an HTTP client. You may also want to start your HTTP server locally, and use tools like `localtunnel` or `ngrok` to expose your external script.
## locatunnel
$ cd external_script/php
$ php -S localhost:8000
... then in another terminal
$ lt --port 8000 --subdomain apidazeexample
your url is: https://apidazeexample.localtunnel.meThen, in the developers portal, go to `API Reference -> External Script Create` and add `http://apidazeexample.localtunnel.me` to your new external script.
## ngrok
$ cd external_script/php
$ php -S localhost:8000
... then in another terminal
$ ./ngrok http 8000
Then, in the developers portal, go to `API Reference -> External Script Create` and add your ngrok provided URL to your new external script.## Customize
Just edit webrtc_server_example/public/index.html
## Access your web application
$ cd public
$ php -S localhost:8001Then, in your WebRTC enabled browser, access `http://locahost:8001`.