Home / Companies / Vonage / Blog / Post Details
Content Deep Dive

Record a Phone Message with PHP

Blog post from Vonage

Post Details
Company
Date Published
Author
Martyn Davies
Word Count
1,153
Language
English
Hacker News Points
-
Summary

The tutorial provides step-by-step instructions on how to set up a phone number with the ability to record an incoming call using PHP and the Nexmo command line interface. The code is designed to work with any version of PHP 5.6 or above, and it uses a virtual phone number and ngrok to expose the local machine's server to the outside world. The process involves installing Slim, creating an index.php file, adding the necessary code, and running the code using the terminal. Once set up, the app can be tested by dialing the purchased number and following the prompts, and the recorded message can be accessed through a URL provided by ngrok. The tutorial concludes by suggesting ways to extend the code into a more fully fledged voicemail system.