«Hanguponstar» необходимо добавить в пример «Dial»:
var dial = new Dial (hangupOnStar: true);
// POST: Conference/Connect
[HttpPost]
public ActionResult Connect(string digits)
{
var isMuted = digits.Equals("1"); // Listener
var canControlConferenceOnEnter = digits.Equals("3"); // Moderator
var response = new VoiceResponse();
response.Say("You have joined the conference");
var dial = new Dial(hangupOnStar: true);
dial.Conference("ConferenceRoom",
waitUrl: new Uri("http://twimlets.com/holdmusic?Bucket=com.twilio.music.rock"),
muted: isMuted,
startConferenceOnEnter: canControlConferenceOnEnter,
endConferenceOnExit: canControlConferenceOnEnter);
response.Append(dial);
response.Gather();
return TwiML(response);
}