Happy Medium's Holiday Hotline was built in 2014 as a fun project using the Twilio API.
Call the following number to see how it works:
515-532-5541
To get the hotline running on your own machine or server, fork it and clone it to your local machine.
Navigate to your local version, and install dependences from both PHP Composer and NPM:
$ composer install
$ npm install
To deploy your server, you can set the deployment path on lines 18 and 19 of Gruntfile.js
(be sure you have SSH access), and run:
$ grunt deploy
The next step is to tell Twilio that you want to use the endpoint on your new server for Voice calls.
Let's assume you've deployed your hotline to http://hotline.yoursite.com/hotline.php
. Create an account on Twilio and find your Numbers section.
Click on the phone number given to you after having created an account, and update the Voice Request URL to match the URL of your deployed hotline.
Then, give your Twilio phone number a ring, and see what happens!
Note: In order to get rid of the demo message at the beginning of every call, you'll want to upgrade to a paid plan.