kris-classes / restart

2022 Semester 2 Course Topics
10 stars 7 forks source link

Use SNS or Twilio to send an SMS message #9

Open krp opened 1 year ago

bevanryken commented 1 year ago

Will try Twilio first then SNS - Need to figure out if it is SNS from AWS or a different service

bevanryken commented 1 year ago

Had issues with registering phone number as well, page must have a bug. Goto your user settings on the top right corner, and update / re-enter from there to work around

P00t1s commented 1 year ago

Bev, any luck with your own phone number? I've tried the two numbers I have access to, neither of them are getting sent the sms to add the number as a verified one

bevanryken commented 1 year ago

Mine is not working at the moment as well. However, after fishing on YouTube regarding Twilio - Watch from 6:45 but the answer is at 8:35 under "making a voicecall", there seems to be tighter restrictions in NZ "New Zealand Carriers have recently intensified their message filtering, to help prevent malicious / unwanted messages to their subscribers. As a result, SMS delivery over standard routes has degraded." He says the programmable voice API does work so I'm about to try that now. Will also look at any other angles.

bevanryken commented 1 year ago

Sent a message to 2Degrees to see if they can do a special request from my Twilio sample number to my mobile and unfilter. Probably won't happen but worth a try. Also checked on Twilio if there were geo-tagging restrictions, had a look through the Twilio docs - So much you can do with this service.

Note: For results, in Python, I get a response such as SM0149bbf2db9915596c07e8e8402c7e79 When checking logs under monitor, also says that it has successfully sent the message, so can only presume that it is prevented fro the Telco side.

Image

P00t1s commented 1 year ago

Yeah, with this I'm going to guess that our messages are being sent from Twilio, and are being stopped by the telco provider considering the short code message that holds the 2fa verification code functions fine