I am trying to develop an application with Twilio using the free trail. Looks like unless a number is manually verified using the Twilio , I cannot send sms or phone call using the Twilio account number. Assuming , I need to verify the number xxx-xxx-yyyy in my application,whats the C# code to implement verify phone number . Here is the screenshot of the feature I would like to implement in c#.

enter image description here

有帮助吗?

解决方案

Twilio evangelist here.

You can use the AddOutgoingCallerId method in the .NET helper library to validate new phone numbers. Calling this method will return to you the 6 digit validation code and make an outgoing call to the phone number provided to the method.

Note that verified phone numbers can only be used to make outgoing voice calls. You cannot send SMS messages using the verified number as the From number.

Hope that helps.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top