diff --git a/PepperDashEssentials/AppServer/Messengers/AtcDdvc01Messenger.cs b/PepperDashEssentials/AppServer/Messengers/AtcDdvc01Messenger.cs
index 139ada9a..8eb47aa4 100644
--- a/PepperDashEssentials/AppServer/Messengers/AtcDdvc01Messenger.cs
+++ b/PepperDashEssentials/AppServer/Messengers/AtcDdvc01Messenger.cs
@@ -15,18 +15,6 @@ namespace PepperDash.Essentials.AppServer.Messengers
{
BasicTriList EISC;
- const uint BKeypad1 = 201;
- const uint BKeypad2 = 202;
- const uint BKeypad3 = 203;
- const uint BKeypad4 = 204;
- const uint BKeypad5 = 205;
- const uint BKeypad6 = 206;
- const uint BKeypad7 = 207;
- const uint BKeypad8 = 208;
- const uint BKeypad9 = 209;
- const uint BKeypad0 = 210;
- const uint BKeypadStar = 211;
- const uint BKeypadPound = 212;
const uint BDialHangup = 221;
const uint BIncomingAnswer = 251;
const uint BIncomingReject = 252;
@@ -35,14 +23,38 @@ namespace PepperDash.Essentials.AppServer.Messengers
const uint BSpeedDial3 = 243;
const uint BSpeedDial4 = 244;
- const uint BIsOnHook = 222;
- const uint BIsOffHook = 224;
- const uint BDialHangupIsVisible = 251;
- const uint BCallIsIncoming = 254;
-
+ ///
+ /// 201
+ ///
const uint SCurrentDialString = 201;
+ ///
+ /// 211
+ ///
+ const uint SCurrentCallString = 211;
+ ///
+ /// 221
+ ///
const uint SHookState = 221;
+ ///
+ ///
+ ///
+ Dictionary DTMFMap = new Dictionary
+ {
+ { "1", 201 },
+ { "2", 202 },
+ { "3", 203 },
+ { "4", 204 },
+ { "5", 205 },
+ { "6", 206 },
+ { "7", 207 },
+ { "8", 208 },
+ { "9", 209 },
+ { "0", 210 },
+ { "*", 211 },
+ { "#", 212 },
+ };
+
///
///
@@ -53,7 +65,6 @@ namespace PepperDash.Essentials.AppServer.Messengers
: base(messagePath)
{
EISC = eisc;
-
}
///
@@ -66,10 +77,8 @@ namespace PepperDash.Essentials.AppServer.Messengers
{
atc = new
{
- callIsIncoming = EISC.GetBool(BCallIsIncoming),
- isOnHook = EISC.GetBool(BIsOnHook),
- isOffHook = EISC.GetBool(BIsOffHook),
- dialHangupIsVisible = EISC.GetBool(BDialHangupIsVisible),
+ callStatus = EISC.GetString(SHookState),
+ currentCallString = EISC.GetString(SCurrentCallString),
currentDialString = EISC.GetString(SCurrentDialString),
}
});
@@ -82,33 +91,18 @@ namespace PepperDash.Essentials.AppServer.Messengers
protected override void CustomRegisterWithAppServer(CotijaSystemController appServerController)
{
Action