Skip to content

Commit

Permalink
Updated the Park Action
Browse files Browse the repository at this point in the history
Announce Channel in AsterNET not Available in ParkAction, fix for this issue AsterNET#228
  • Loading branch information
nalaka-perera committed Feb 6, 2020
1 parent 2428cc1 commit 220ab2c
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion Asterisk.2013/Asterisk.NET/Manager/Action/ParkAction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,21 @@ public ParkAction(string channel, string channel2, string timeout)
}

/// <summary>
/// Creates a new ParkAction with Announcement.<br />
/// </summary>
/// <param name="channel">Set the Channel which should be parked</param>
/// <param name="TimeoutChannel">Channel name to use when constructing the dial string that will be dialed if the parked channel times out. If TimeoutChannel is in a two party bridge with Channel, then TimeoutChannel will receive an announcement and be treated as having parked Channel in the same manner as the Park Call DTMF feature.</param>
/// <param name="AnnounceChannel"> If specified, then this channel will receive an announcement when Channel is parked if AnnounceChannel is in a state where it can receive announcements (AnnounceChannel must be bridged). AnnounceChannel has no bearing on the actual state of the parked call.</param>
/// <param name="timeout">Timeout in msec, after timeout is reached call will come back to channel2</param>
public ParkAction(string channel, string TimeoutChannel, string AnnounceChannel, string timeout)
{
this.Channel = channel;
this.TimeoutChannel = TimeoutChannel;
this.AnnounceChannel = AnnounceChannel;
this.Timeout = timeout;
}

/// <summary>
/// Creates a new ParkAction.<br />
/// </summary>
/// <param name="channel">Set the Channel which should be parked</param>
Expand Down Expand Up @@ -62,4 +77,4 @@ public override string Action
/// </summary>
public string Parkinglot { get; set; }
}
}
}

0 comments on commit 220ab2c

Please sign in to comment.