asternet/Asterisk.2013/Asterisk.NET/FastAGI/Command/SetCallerIdCommand.cs
2014-01-08 14:16:39 +00:00

35 lines
769 B
C#

using System;
namespace AsterNET.FastAGI.Command
{
/// <summary>
/// Changes the CallerID of the current channel.
/// </summary>
public class SetCallerIdCommand : AGICommand
{
/// <summary> The new callerId.</summary>
private string callerId;
/// <summary>
/// Get/Set the new callerId.
/// </summary>
public string CallerId
{
get { return callerId; }
set { this.callerId = value; }
}
/// <summary>
/// Creates a new SetCallerIdCommand.
/// </summary>
/// <param name="callerId">the new callerId.</param>
public SetCallerIdCommand(string callerId)
{
this.callerId = callerId;
}
public override string BuildCommand()
{
return "SET CALLERID " + EscapeAndQuote(callerId);
}
}
}