C# Class Queue_Demo.Controllers.CallController

Inheritance: Twilio.TwiML.Mvc.TwilioController
Mostrar archivo Open project: devinrader/Queue-Demo

Public Methods

Method Description
Connect ( ) : System.Web.Mvc.ActionResult
Dial ( ) : System.Web.Mvc.ActionResult

Action Method that returns the TwiML needed to connect an 'Agent' to the first call in the Queue

This method also includes the 'url' parameter in the generated TwiML. This allows you to provide a URL that can return TwiML that will be executed to the dequeued caller as a Whisper

LeaveQueue ( string QueueSid ) : System.Web.Mvc.ActionResult
QueueCall ( ) : System.Web.Mvc.ActionResult
WaitInQueue ( string CurrentQueueSize, string QueuePosition ) : System.Web.Mvc.ActionResult

Method Details

Connect() public method

public Connect ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

Dial() public method

Action Method that returns the TwiML needed to connect an 'Agent' to the first call in the Queue
This method also includes the 'url' parameter in the generated TwiML. This allows you to provide a URL that can return TwiML that will be executed to the dequeued caller as a Whisper
public Dial ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

LeaveQueue() public method

public LeaveQueue ( string QueueSid ) : System.Web.Mvc.ActionResult
QueueSid string
return System.Web.Mvc.ActionResult

QueueCall() public method

public QueueCall ( ) : System.Web.Mvc.ActionResult
return System.Web.Mvc.ActionResult

WaitInQueue() public method

public WaitInQueue ( string CurrentQueueSize, string QueuePosition ) : System.Web.Mvc.ActionResult
CurrentQueueSize string
QueuePosition string
return System.Web.Mvc.ActionResult