-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Call Parking Action Improved by Adding Additional Parameter #229
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
namespace AsterNET.Manager.Action | ||
namespace AsterNET.Manager.Action | ||
{ | ||
/// <summary> | ||
/// The ParkAction allows to send a Channel to a Parking lot.<br /> | ||
/// A successful login is the precondition for sending for that | ||
/// </summary> | ||
public class ParkAction : ManagerAction | ||
{ | ||
|
||
/// <summary> | ||
/// Creates a new ParkAction. | ||
/// </summary> | ||
|
@@ -34,6 +35,23 @@ public ParkAction(string channel, string channel2, string timeout, string parkin | |
this.Parkinglot = parkinglot; | ||
} | ||
|
||
/// <summary> | ||
/// Creates a new ParkAction with announce channel .<br /> | ||
/// </summary> | ||
/// <param name="callerChannel">Set the Channel which should be parked</param> | ||
/// <param name="calleeChannel">Set the Channel where the Call will end up after the timeout is reached.</param> | ||
/// <param name="timeout">Timeout in milliseconds, after timeout is reached call will come back to channel2</param> | ||
/// <param name="announceChannel">If specified, then this channel will receive an announcement when Channel is parked</param> | ||
/// <param name="parkinglot">Set the Parking lot.</param> | ||
public ParkAction(string callerChannel, string calleeChannel, string announceChannel, string timeout, string parkinglot) | ||
{ | ||
Channel = callerChannel; | ||
TimeoutChannel = calleeChannel; | ||
AnnounceChannel = announceChannel; | ||
Timeout = timeout; | ||
Parkinglot = parkinglot; | ||
} | ||
|
||
/// <summary> | ||
/// Get the name of this action, i.e. "Park". | ||
/// </summary> | ||
|
@@ -52,6 +70,16 @@ public override string Action | |
/// </summary> | ||
public string Channel2 { get; set; } | ||
|
||
/// <summary> | ||
/// Set the Channel where the Call will end up after the timeout is reached. | ||
/// </summary> | ||
public string TimeoutChannel { get; set; } | ||
|
||
/// <summary> | ||
/// Set the Announcement Channel to receive the AMI Announcement. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe add the full parameter description shown on the Asterisk Documentation:
|
||
/// </summary> | ||
public string AnnounceChannel { get; set; } | ||
|
||
/// <summary> | ||
/// Timeout in msec, after timeout is reached call will come back to channel2 | ||
/// </summary> | ||
|
@@ -62,4 +90,4 @@ public override string Action | |
/// </summary> | ||
public string Parkinglot { get; set; } | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The copy way didn't work?