Skip to content

Instantly share code, notes, and snippets.

@johnsheehan
Created March 22, 2010 19:12
Show Gist options
  • Save johnsheehan/340414 to your computer and use it in GitHub Desktop.
Save johnsheehan/340414 to your computer and use it in GitHub Desktop.
public class HomeController : TwilioController
{
// /StartPhoneCall
public void StartPhoneCall() {
Say("Thank you for calling " + Called);
Say("Hello world!", 1, Voice.Man, Language.English);
Play("http://example.com", 1);
Gather(30,
() => Say("Nested 1"),
() => Say("Netsed 2"),
() => Play("http://nested.example.com")
);
Dial(
() => Number("555-123-4567"),
() => Number("555-987-6543"),
() => Conference("Conf1")
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment