mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-15 12:44:58 +00:00
feat(essentials): Adds HoldAllCalls join and action
This commit is contained in:
@@ -1028,6 +1028,20 @@ namespace PepperDash.Essentials.Core.Bridges.JoinMaps
|
|||||||
JoinType = eJoinType.Digital
|
JoinType = eJoinType.Digital
|
||||||
});
|
});
|
||||||
|
|
||||||
|
[JoinName("HoldAllCalls")]
|
||||||
|
public JoinDataComplete HoldAllCalls = new JoinDataComplete(
|
||||||
|
new JoinData
|
||||||
|
{
|
||||||
|
JoinNumber = 220,
|
||||||
|
JoinSpan = 1
|
||||||
|
},
|
||||||
|
new JoinMetadata
|
||||||
|
{
|
||||||
|
Description = "Holds all calls",
|
||||||
|
JoinCapabilities = eJoinCapabilities.FromSIMPL,
|
||||||
|
JoinType = eJoinType.Digital
|
||||||
|
});
|
||||||
|
|
||||||
[JoinName("HoldCallsStart")]
|
[JoinName("HoldCallsStart")]
|
||||||
public JoinDataComplete HoldCallsStart = new JoinDataComplete(
|
public JoinDataComplete HoldCallsStart = new JoinDataComplete(
|
||||||
new JoinData
|
new JoinData
|
||||||
|
|||||||
@@ -1216,6 +1216,14 @@ ScreenIndexIsPinnedTo: {8} (a{17})
|
|||||||
var holdCodec = this as IHasCallHold;
|
var holdCodec = this as IHasCallHold;
|
||||||
if (holdCodec != null)
|
if (holdCodec != null)
|
||||||
{
|
{
|
||||||
|
trilist.SetSigFalseAction(joinMap.HoldAllCalls.JoinNumber, () =>
|
||||||
|
{
|
||||||
|
foreach (var call in ActiveCalls)
|
||||||
|
{
|
||||||
|
holdCodec.HoldCall(call);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
for (int i = 0; i < joinMap.HoldCallsStart.JoinSpan; i++)
|
for (int i = 0; i < joinMap.HoldCallsStart.JoinSpan; i++)
|
||||||
{
|
{
|
||||||
var index = i;
|
var index = i;
|
||||||
|
|||||||
Reference in New Issue
Block a user