Skip to content

luis-teixeira/react-twilio-webphone

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Config Value Description
Account SID Your primary Twilio account identifier - find this in the console here.
Auth Token Used to authenticate - just like the above, you'll find this here.
TwiML App SID The TwiML application with a voice URL configured to access your server running this app - create one in the console here. Also, you will need to configure the Voice "REQUEST URL" on the TwiML app once you've got your server up and running.
Twilio Phone  A Twilio phone number in E.164 format - you can get one here

Quick start

  1. Clone this repo using git clone --depth=1 [email protected]:luis-teixeira/react-twilio-webphone.git

  2. Run npm install to install dependencies.

  3. Edit server/twilio/config.js with the four configuration parameters we gathered from above.

  4. At this point you can run npm start:tunnel.

  5. When ngrok starts up, it will assign a unique URL to your tunnel. It might be something like https://asdf456.ngrok.io. Take note of this.

  6. Configure your TwiML app's Voice "REQUEST URL" to be your ngrok URL plus twilio/voice. For example:

    ![screenshot of twiml app](http://www.mynameisluis.com/assets/webphone.jpg)
    

You should now be ready to rock! Make some phone calls. Open it on another device and call yourself. Note that Twilio Client requires WebRTC enabled browsers, so Edge and Internet Explorer will not work for testing. We'd recommend Google Chrome or Mozilla Firefox instead.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •