Setup SMS for phone number verification
-
Hello,
I'm trying to get this working with Twilio. I've added this to the homeserver.yaml file.
sms: sms_gateway: twilio twilio: account_sid: "***********************************" auth_token: "***********************************" from_phone: "+************" msisdn: # Message template for the verification code sent by SMS body_template: "Your auth code is {token}." sms_gateway: twilio registration: enable_3pid_changes: true trusted_third_party_id_servers: - server_name: "matrix.org" account_threepid_delegates: msisdn: "https://matrix.org"
But got this error
Oct 17 19:49:57 - 2024-10-17 17:49:57,050 - synapse.rest.client.account - 419 - INFO - POST-11 - Request #1 to verify ownership of 41771111111 Oct 17 19:49:57 - 2024-10-17 17:49:57,466 - synapse.http.client - 428 - INFO - POST-11 - Received response to POST https://matrix.org/_matrix/identity/api/v1/validate/msisdn/requestToken: 500 Oct 17 19:49:57 - 2024-10-17 17:49:57,466 - synapse.handlers.identity - 460 - INFO - POST-11 - Proxied requestToken failed: HttpResponseException('500: Internal Server Error') Oct 17 19:49:57 - 2024-10-17 17:49:57,467 - synapse.http.server - 130 - INFO - POST-11 - <XForwardedForRequest at 0x7f44682b5b10 method='POST' uri='/_matrix/client/v3/account/3pid/msisdn/requestToken' clientproto='HTTP/1.1' site='8008'> SynapseError: 500 - Internal Server Error Oct 17 19:49:57 - 2024-10-17 17:49:57,467 - synapse.access.http.8008 - 473 - INFO - POST-11 - 82.197.186.105 - 8008 - {None} Processed request: 0.418sec/0.000sec (0.003sec, 0.000sec) (0.000sec/0.001sec/1) 55B 500 "POST /_matrix/client/v3/account/3pid/msisdn/requestToken HTTP/1.1" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Element/1.11.81 Chrome/128.0.6613.36 Electron/32.0.1 Safari/537.36" [0 dbevts] Oct 17 19:50:00 - 2024-10-17 17:50:00,045 - synapse.access.http.8008 - 473 - INFO - GET-12 - 172.18.0.1 - 8008 - {None} Processed request: 0.000sec/-0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 208B 302 "GET / HTTP/1.1" "Mozilla (CloudronHealth)" [0 dbevts] Oct 17 19:50:10 - 2024-10-17 17:50:10,042 - synapse.access.http.8008 - 473 - INFO - GET-13 - 172.18.0.1 - 8008 - {None} Processed request: 0.000sec/-0.000sec (0.000sec, 0.000sec) (0.000sec/0.000sec/0) 208B 302 "GET / HTTP/1.1" "Mozilla (CloudronHealth)" [0 dbevts]
Any help would be appreciated