The server is operating as a personal PJ. I want to recover immediately when a fatal error occurs. Notification method What should I do
Django has Error Email Notification.
If it is gmail, it will be treated as SPAM and will be thrown into junk mail. Same with carrier email. Treated as SPAM. It is very troublesome to set the mail of the server so that it will not be treated as SPAM.
An American company with KDDI as an agent in Japan A service for making phone calls via API. Japan Official Page Twilio
The rate plan focuses on sending SMS, receiving calls, and making calls. It is designed not to assume the form of calling and leaving an incoming call. It can be used for free to some extent. If you just make a call and leave the incoming call history, it seems that you can operate it for free.
It seems that it will be 189 yen a month when charging. high. Stable to use only for free.
Account registration and issue the following 3-piece set ・ Calling phone number ・ ACCOUNT_SID ・ AUTH_TOKEN
shell
pip install twilio
from twilio.rest import TwilioRestClient
ACCOUNT_SID = "ABCDEFG"
AUTH_TOKEN = "0x0x0x0x0x0x"
FROM_CALL_NUMBER = "8109012345678"
TO_CALL_NUMBER = "8109011223344"
client = TwilioRestClient(ACCOUNT_SID, AUTH_TOKEN)
call = client.calls.create(to=TO_CALL_NUMBER, from_=FROM_CALL_NUMBER,
url="http://foo.com/call.xml")
print call.length
print call.sid
Incoming call in about 15 seconds after hitting the API
Recommended Posts