private string InviteCallReply(IStepInput input) { if (Data["invite_unique_id"] != null) { var invite = InviteInput.FromDict(this.Data); var contact = Contact.FromDict(this.Data); var message = "Hello {0}, You have been invited to {1} on {2}. Please press 1 if you want to come, 2 if not."; message = string.Format( message, contact.Name, invite.Title, invite.Start.ToString() ); XmlWriter.EnterNumber( message, new Dictionary <string, string>() { { "step", "callreply" }, { "type", "invite" } } ); } else { XmlWriter.SayMessage("You have not been invited to this event, hang up"); } return(XmlWriter.ToString()); }