mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-04-12 12:06:58 +00:00
Minor updates from testing MC
This commit is contained in:
parent
ff6184c241
commit
c3d6890a4c
3 changed files with 18 additions and 4 deletions
|
|
@ -138,9 +138,9 @@ namespace PepperDash.Essentials.AppServer.Messengers
|
|||
// Add straight pulse calls
|
||||
Action<string, uint> addAction = (s, u) =>
|
||||
AppServerController.AddAction(MessagePath + s, new Action(() => EISC.PulseBool(u, 100)));
|
||||
addAction("/endCall", BDialHangup);
|
||||
addAction("/incomingAnswer", BIncomingAnswer);
|
||||
addAction("/incomingReject", BIncomingReject);
|
||||
addAction("/endCallById", BDialHangup);
|
||||
addAction("/acceptById", BIncomingAnswer);
|
||||
addAction("/rejectById", BIncomingReject);
|
||||
addAction("/speedDial1", BSpeedDial1);
|
||||
addAction("/speedDial2", BSpeedDial2);
|
||||
addAction("/speedDial3", BSpeedDial3);
|
||||
|
|
|
|||
|
|
@ -49,6 +49,20 @@ namespace PepperDash.Essentials.AppServer.Messengers
|
|||
if (call != null)
|
||||
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>
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit e5b7b4112b9ef815f1edb92f1853f5e554f41173
|
||||
Subproject commit e0f1dc0107d0198208353d93892ebe493126ae3b
|
||||
Loading…
Add table
Add a link
Reference in a new issue