-
Notifications
You must be signed in to change notification settings - Fork 23
[App] make calls and send SMS
HouzuoGuo edited this page Dec 31, 2019
·
4 revisions
Dial a friend's phone number, speak a text message, and send then SMS texts.
- Sign up for an account at twilio.com - an API platform that connects computer programs with public switched telephone and mobile network. Sign up is free.
- Visit Twilio developer's console, then purchase a phone number. Make sure the number can make calls and SMS - not all numbers come with these capabilities! A number costs between 2-10 USD/month to own, and each call/SMS costs extra.
- Visit account settings and note down "Account SID" and "Auth Token" of LIVE Credentials. Do not use TEST credentials, and there is no need to request a secondary token.
- Visit phone numbers and note down the phone number including country code. Later this number will be used to dial calls and send SMS.
If you have or plan to use web service hook for Twilio telephone and SMS, feel free to share the Twilio account and phone number with the web service as well.
Under JSON object Features
, construct a JSON object called Twilio
that has the following mandatory properties:
Property | Type | Meaning |
---|---|---|
AccountSID | string | Account SID of Twilio LIVE credentials. |
AuthToken | string | Auth Token of Twilio LIVE credentials. |
PhoneNumber | string |
Your purchased Twilio phone number including +country code. Do not place additional space and symbol among the numbers. |
Here is an example:
{ ... "Features": { ... "Twilio": { "AccountSID": "AC00000000111112222222222333333", "AuthToken": "689781347878abcdefg895897892342", "PhoneNumber": "+35815123456789" }, ... }, ... }
Use any capable laitos daemon to invoke the app:
- Leave a voice message:
.pc +123456789 this is the voice message content
. Make sure the destination number comes with country code and there is no extra space or symbol among the numbers. The message will be spoken and repeated twice. - Send an SMS:
.pt +123456789 this is the text message content
. Make sure the destination number comes with country code and there is no extra space or symbol among the numbers.
Table of Contents
- Home
- Get started
- Component list
- Tips for running on public cloud
- Tips for using apps over satellite
- laitos terminal
Daemon Components
- DNS server
- Mail server
- Web server
- Web proxy server
- Telnet server
- Telegram chat-bot
- Simple IP services server
- SNMP server
- System maintenance
- Phone home telemetry
Web Service Components
- Twilio telephone/SMS hook
- Microsoft chat bot hook
- The Things Network LORA tracker integration
- Recurring commands
- App command form
- Simple app command execution API
- GitLab browser
- Temporary file storage
- Simple web proxy
- Desktop on a page (virtual machine)
- Read telemetry records
- Program health report
- System process explorer
- Prometheus metrics exporter
- HTTP request inspector
- HTTP request logger
Apps