- Upload the script on your server
- Update voice request url of your twilio number to point to record.php
- Make sure that the media folder is writable by the webserver
- Call any number as you normally do
- Now dial your twilio number while you are on the call. This will hold your call.
- Once your twilio call is connected, merge them both.
- Your call will be recorded and saved in the media folder.