Skip to content

Instantly share code, notes, and snippets.

@dtolb
Created January 22, 2016 21:48
Show Gist options
  • Save dtolb/3371c5348c0ecbe34e49 to your computer and use it in GitHub Desktop.
Save dtolb/3371c5348c0ecbe34e49 to your computer and use it in GitHub Desktop.
2nd Outbound Leg
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