Created
January 22, 2016 21:48
-
-
Save dtolb/3371c5348c0ecbe34e49 to your computer and use it in GitHub Desktop.
2nd Outbound Leg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private async Task ProcessCatapultFromEvent(SpeakEvent ev) | |
{ | |
if (ev.Status != "done") return; | |
//a messages was spoken to "from" number. calling to "to" number | |
var c = await Call.Create(Client, new Dictionary<string, object> | |
{ | |
{"from", PhoneNumberForCallbacks}, | |
{"to", ev.Tag}, | |
{"callbackUrl", BaseUrl + Url.Action("CatapultToCallback")}, | |
{"tag", ev.CallId} | |
}); | |
Debug.WriteLine("Call Id to {0} is {1}", ev.Tag, c.Id); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment