asternet/Asterisk.2013/Asterisk.NET/Manager/Action/BridgeAction.cs

36 lines
1 KiB
C#
Raw Normal View History

2015-01-03 15:37:29 +00:00
namespace AsterNET.Manager.Action
2014-01-08 14:16:39 +00:00
{
public class BridgeAction : ManagerAction
{
/// <summary>
2015-01-03 15:37:29 +00:00
/// Bridge two channels already in the PBX.
2014-01-08 14:16:39 +00:00
/// </summary>
public BridgeAction()
{
}
/// <summary>
2015-01-03 15:37:29 +00:00
/// Bridge two channels already in the PBX.
2014-01-08 14:16:39 +00:00
/// </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)
{
2015-01-03 15:37:29 +00:00
Channel1 = channel1;
Channel2 = channel2;
Tone = tone;
2014-01-08 14:16:39 +00:00
}
public override string Action
{
get { return "Bridge"; }
}
2015-01-03 15:37:29 +00:00
public string Channel1 { get; set; }
2014-01-08 14:16:39 +00:00
2015-01-03 15:37:29 +00:00
public string Channel2 { get; set; }
2014-01-08 14:16:39 +00:00
2015-01-03 15:37:29 +00:00
public string Tone { get; set; }
2014-01-08 14:16:39 +00:00
}
2015-01-03 15:37:29 +00:00
}