Don't Dial That Digit! Twilio Has Your Back
Time to read: 1 minute
There are certain numbers that you probably don’t want dialed with your Twilio-powered application, such as 911 (taking time away from legitimate emergencies) or 411 (costing you money). Twilio will return a 21202 error “Phone number is a ‘premium’ number” whenever these numbers are dialed:
- 911
- 411
- (any x11 service)
- (XXX)-555-1212
- 900/976
Not only is this helpful for you, but it will enable you to rest assured that outbound applications where a number is specified by your end users won’t be compromised by people trying to prank or call premium paid lines (toll lines) but putting something into the input box that they shouldn’t.
So go ahead, put that phone number input form field on your website or inside your application with the confidence that Twilio will make sure your account doesn’t dial these numbers!
Related Posts
Related Resources
Twilio Docs
From APIs to SDKs to sample apps
API reference documentation, SDKs, helper libraries, quickstarts, and tutorials for your language and platform.
Resource Center
The latest ebooks, industry reports, and webinars
Learn from customer engagement experts to improve your own communication.
Ahoy
Twilio's developer community hub
Best practices, code samples, and inspiration to build communications and digital engagement experiences.