Need validation for unverified twilio mobile number in phone verification page

Created on 23 May 2023, over 1 year ago
Updated 21 August 2023, over 1 year ago

Problem/Motivation

If we enter unverified twilio number and submit the form is redirecting to an error page

Getting below errors

Twilio\Exceptions\RestException: [HTTP 400] Unable to create record: The 'To' number {mobile no here} is not a valid phone number. in Twilio\Version->exception() (line 88 of /var/www/html/vendor/twilio/sdk/src/Twilio/Version.php).

"Twilio\Exceptions\RestException: [HTTP 400] Unable to create record: The number is unverified. Trial accounts cannot send messages to unverified numbers; verify at twilio.com/user/account/phone-numbers/verified, or purchase a Twilio number to send messages to unverified numbers. in Twilio\Version->exception() (line 85 of /var/www/html/vendor/twilio/sdk/src/Twilio/Version.php)."

Steps to reproduce

Go to user/{uid}/edit/twilio

Proposed resolution

Mobile number field should be validated with twilio and show the validation message in phone verification page

📌 Task
Status

Fixed

Version

3.0

Component

Code

Created by

🇮🇳India kpoornima

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024