Add voice/SMS contacts with Twilio
-
Review changes -
-
Download -
Patches
-
Plain diff
This patch adds user-configurable SMS and text-to-speech voice alerts using Twilio, a programmable voice and SMS service. I use this service for iPTF alerts.
This is a cheaper and more powerful alternative to the Email2Phone service that is currently in use. The pricing for Twilio is $1/month, plus $0.015/minute voice and $0.0075/text message. This is about 1/20 to 10/10 the price of Email2Phone depending on volume.
Note that we do need to figure out who would pay for this service before merging it. That may depend on how much it costs, which in turn depends on how many people use it. If we have about 10 alerts a month, all going to about 20 follow-up advocates, then the service would cost $3.25 / month or $39 / year of continuous operation. If a significant fraction of the collaboration used it (about 500 people), then it would be $113.50 / month or $1362 / year. Another way to think of it is that it would cost on the order of a dollar per year per person who uses the feature.
TO DO
Note that we should probably restrict this feature to LVC users only (i.e., not EM partners). @tanner.prestegard should comment on how to test for LVC membership before issuing alerts.
How to set up phone alerts
Please do NOT overuse this test script. It WILL cost me money.
Once you are logged in to GraceDB, navigate to the OPTIONS
tab:
Then click Create New Contact
. In the form, enter a description and a phone number, then click Submit
:
Click Create Notification
. Select ADVREQ
from the Labels
list and your new contact from the Contacts
list, then click Submit
.
You have now created a voice/SMS notification that will be triggered whenever the ADVREQ
label is applied to an event.
Merge request reports
- version 2689cadcca
- version 2589cadcca
- version 2489cadcca
- version 2389cadcca
- version 2261affb64
- version 21754a3490
- version 2055861ad7
- version 19761a9e17
- version 18f95d9da9
- version 176e9f165a
- version 16766cf048
- version 155ce829ac
- version 14a3eb9744
- version 13285cf22e
- version 127c273d6f
- version 1132eaa7aa
- version 109298dfdb
- version 9f3826f0a
- version 820ea2636
- version 78a234e2c
- version 6d38dc2a8
- version 55b6a212f
- version 4afb511a2
- version 3f3c0b77c
- version 2be22baac
- version 19ec019a1
- master (base)
- latest version1ec8e0275 commits,
- version 2689cadcca1 commit,
- version 2589cadcca1 commit,
- version 2489cadcca1 commit,
- version 2389cadcca1 commit,
- version 2261affb641 commit,
- version 21754a349022 commits,
- version 2055861ad721 commits,
- version 19761a9e1720 commits,
- version 18f95d9da919 commits,
- version 176e9f165a18 commits,
- version 16766cf04817 commits,
- version 155ce829ac16 commits,
- version 14a3eb974415 commits,
- version 13285cf22e14 commits,
- version 127c273d6f13 commits,
- version 1132eaa7aa12 commits,
- version 109298dfdb11 commits,
- version 9f3826f0a10 commits,
- version 820ea26369 commits,
- version 78a234e2c8 commits,
- version 6d38dc2a87 commits,
- version 55b6a212f6 commits,
- version 4afb511a25 commits,
- version 3f3c0b77c4 commits,
- version 2be22baac3 commits,
- version 19ec019a11 commit,
- Side-by-side
- Inline