From 00e55dbbd5e5dbd34d6cfb21c3eb7244f2bc3588 Mon Sep 17 00:00:00 2001 From: "j.goderbauer" <j.goderbauer@adito.de> Date: Mon, 25 Nov 2019 13:58:54 +0100 Subject: [PATCH] cti-serverProcess: added some comments --- process/ctiServerEvents/process.js | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/process/ctiServerEvents/process.js b/process/ctiServerEvents/process.js index da681a7c36..f1d066d995 100644 --- a/process/ctiServerEvents/process.js +++ b/process/ctiServerEvents/process.js @@ -75,7 +75,7 @@ var talkingHandlerFn = function() var cols = ["DATE_EDIT", "ANSWERMODE"]; var vals = [datetime.date(), $KeywordRegistry.callAnswerMode$accepted()]; db.updateData("AB_CTILOG", cols, null, vals, SqlCondition.begin().andPrepare("AB_CTILOG.CALLID", this.callData.callId).build()); -//do not notify here since the user _should_ know when he accepts a call + //do not notify here since the user _should_ know when he accepts a call }; var disconnectingHandlerFn = function() @@ -139,6 +139,8 @@ var disconnectingHandlerFn = function() if (this.contactsCall.length > 0) { + //add the linkInfo again because otherwise the linkInfo would be overwritten with null when disconnecting + //TODO: wait for #1047703 var affectedContext = this.contactsCall[0].PERSON_ID.trim() == "" ? "Organisation" : "Person"; var affectedContactId = this.contactsCall[0].CONTACTID; notificationConfig.linkInfo(text.encodeMS([affectedContext, affectedContactId])); @@ -166,9 +168,9 @@ var callData = { ,isConnectedCall: false }; -//for testing only: -//callData.callAddress = "01731858728"; -//callData.localAddress = "PJSIP/212"; +//you could overwrite the values for testing for example here: +//callData.callAddress = "exampleValue"; +//callData.localAddress = "PJSIP/xyzExample"; var ic = new IncomingCallExecutor(callData); //ic.logData(); -- GitLab