namespace AsterNET.Manager.Action { /// /// The AgentCallbackLoginAction sets an agent as logged in with callback.
/// You can pass an extentsion (and optionally a context) to specify the /// destination of the callback.
/// In contrast to the AgentCallbackLogin application that you can use within /// Asterisk's dialplan, you don't need to know the agent's password when logging /// in an agent.
/// Available since Asterisk 1.2 ///
public class AgentCallbackLoginAction : ManagerAction { /// /// Creates a new empty AgentCallbackLoginAction. /// public AgentCallbackLoginAction() { } /// /// Creates a new AgentCallbackLoginAction, that logs in the given agent at /// the given callback extension. /// /// the name of the agent to log in /// the extension that is called to connect a queue member with this agent public AgentCallbackLoginAction(string agent, string exten) { Agent = agent; Exten = exten; } /// /// Creates a new AgentCallbackLoginAction, that logs in the given agent at /// the given callback extension in the given context. /// /// the name of the agent to log in /// the extension that is called to connect a queue member with this agent /// the context of the extension to use for callback public AgentCallbackLoginAction(string agent, string exten, string context) : this(agent, exten) { Context = context; } /// /// Get the name of this action, i.e. "AgentCallbackLogin". /// public override string Action { get { return "AgentCallbackLogin"; } } /// /// Get/Set the name of the agent to log in, for example "1002".
/// This is property is mandatory. ///
public string Agent { get; set; } /// /// Get/Set the extension to use for callback.
/// This is property is mandatory. ///
public string Exten { get; set; } /// /// Get/Set the context of the extension to use for callback. /// public string Context { get; set; } /// /// Get/Set if an acknowledgement is needed when agent is called back.
/// true if acknowledgement by '#' is required when agent is called back, false otherwise. /// This property is optional, it allows you to override the defaults defined in Asterisk's configuration. ///
public bool AckCall { get; set; } /// /// Returns the minimum amount of time (in milliseconds) after disconnecting before the caller can receive a new call. ///
/// This property is optional, it allows you to override the defaults defined in Asterisk's configuration. ///
public long WrapupTime { get; set; } } }