I'm trying to follow the Twilio docs for adding a Caller ID as a verified out going telephone number.
The Twilio c# helper library has a method signature which looks like so
void AddOutgoingCallerId (phoneNumber, friendlyName, callDelay, callback)
where callback is Action<ValidationRequestResult>
I don't understand this. I'm trying to set a URL that Twilio can post back to once the verification has taken place.
Help appreciated.
You need to implement a method that takes a ValidationRequestResult
and returns void
. That's the method that will get called. You provide that method as the callback parameter.
Here's your call:
AddOutgoingCallerId (phoneNumber, friendlyName, callDelay, HandleAddOutgoingCallerId)
And here's the method that you need to create.
private void HandleAddOutgoingCallerId(ValidationRequestResult result)
{
// Do something (or just return).
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.