mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-02-16 21:24:54 +00:00
Minor updates from testing MC
This commit is contained in:
@@ -138,9 +138,9 @@ namespace PepperDash.Essentials.AppServer.Messengers
|
|||||||
// Add straight pulse calls
|
// Add straight pulse calls
|
||||||
Action<string, uint> addAction = (s, u) =>
|
Action<string, uint> addAction = (s, u) =>
|
||||||
AppServerController.AddAction(MessagePath + s, new Action(() => EISC.PulseBool(u, 100)));
|
AppServerController.AddAction(MessagePath + s, new Action(() => EISC.PulseBool(u, 100)));
|
||||||
addAction("/endCall", BDialHangup);
|
addAction("/endCallById", BDialHangup);
|
||||||
addAction("/incomingAnswer", BIncomingAnswer);
|
addAction("/acceptById", BIncomingAnswer);
|
||||||
addAction("/incomingReject", BIncomingReject);
|
addAction("/rejectById", BIncomingReject);
|
||||||
addAction("/speedDial1", BSpeedDial1);
|
addAction("/speedDial1", BSpeedDial1);
|
||||||
addAction("/speedDial2", BSpeedDial2);
|
addAction("/speedDial2", BSpeedDial2);
|
||||||
addAction("/speedDial3", BSpeedDial3);
|
addAction("/speedDial3", BSpeedDial3);
|
||||||
|
|||||||
@@ -49,6 +49,20 @@ namespace PepperDash.Essentials.AppServer.Messengers
|
|||||||
if (call != null)
|
if (call != null)
|
||||||
Codec.EndCall(call);
|
Codec.EndCall(call);
|
||||||
}));
|
}));
|
||||||
|
appServerController.AddAction(MessagePath + "/endAllCalls", new Action(Codec.EndAllCalls));
|
||||||
|
appServerController.AddAction(MessagePath + "/dtmf", new Action<string>(s => Codec.SendDtmf(s)));
|
||||||
|
appServerController.AddAction(MessagePath + "/rejectById", new Action<string>(s =>
|
||||||
|
{
|
||||||
|
var call = GetCallWithId(s);
|
||||||
|
if (call != null)
|
||||||
|
Codec.RejectCall(call);
|
||||||
|
}));
|
||||||
|
appServerController.AddAction(MessagePath + "/acceptById", new Action<string>(s =>
|
||||||
|
{
|
||||||
|
var call = GetCallWithId(s);
|
||||||
|
if (call != null)
|
||||||
|
Codec.AcceptCall(call);
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|||||||
Submodule essentials-framework updated: e5b7b4112b...e0f1dc0107
Reference in New Issue
Block a user