asternet/Asterisk.2013/Asterisk.NET/Manager/Action/BridgeAction.cs
2015-01-03 15:37:29 +00:00

36 lines
1 KiB
C#

namespace AsterNET.Manager.Action
{
public class BridgeAction : ManagerAction
{
/// <summary>
/// Bridge two channels already in the PBX.
/// </summary>
public BridgeAction()
{
}
/// <summary>
/// Bridge two channels already in the PBX.
/// </summary>
/// <param name="channel1">Channel to Bridge to Channel2</param>
/// <param name="channel2">Channel to Bridge to Channel1</param>
/// <param name="tone">Play courtesy tone to Channel 2 [yes|no]</param>
public BridgeAction(string channel1, string channel2, string tone)
{
Channel1 = channel1;
Channel2 = channel2;
Tone = tone;
}
public override string Action
{
get { return "Bridge"; }
}
public string Channel1 { get; set; }
public string Channel2 { get; set; }
public string Tone { get; set; }
}
}