I assume you
already have a Twilio account set up (if not check out this post http://www.whiteboardcoder.com/2014/09/twilio-getting-started.html
)
This is my second write up on Twimlets, the first can be
found at http://www.whiteboardcoder.com/2014/09/twilio-using-twimlets.html
Create Simple Menu Twimlet
Select Simple Menu from the pull down and click Create New
Twimlet.
In the message box enter
Enter in the secrect code to leave a message
|
In the menu options enter
1234
|
For the secret password
A Simple Menu Twimlet can activate other Twimlets. In this case I want to have it activate a
voicemail Twimlet (if the correct code is entered).
To add this do the following….
Click Generate a Twimlet
Select voicemail
Click Continue
Enter your email
For message place the following…
Please record your message, when you are done press any
key
|
Set Transcribe to false and click OK
Click Save URL
Enter in a name for this Twimlet. I named mine secret-voice-mail and click
save.
This twimlet is now saved and is part of your account. Click OK
Click My Twimlets in the upper right
All your current Twimlets are displayed.
Copy this URL (I
blanked part of it out, since that is my account)
Login to your regular Twilio account
After logging in to Twilio click on the Numbers Tab.
Click on your Twilio phone number.
Paste the URL here in the Voice section.
Click Save.
Now make Your Call!
I dialed into my number.
Here is a recording of my call to the number.
The voice could not say secret very well for some
reason. But Twilio does provide other
voice types (which is a more advanced topic, I don't believe you can set them
in a Twimlet)
Looking at my email I see that the voice message was sent to
me.
If I click on the link I can listen to the audio or download
it.
Here is the actual message Twilio recorded
References
This post is a part of and epic, the pagerduty and twilio epic.
Epic Goal: Set up a phone number, via twillio, that when called will set off a pagerduty event.
No comments:
Post a Comment