diff --git a/process/ctiServerEvents/process.js b/process/ctiServerEvents/process.js index da681a7c366102ad5f3faa5e6e7f51f1943de2f9..f1d066d995e3529f60ea448e46f0b7dfc2e2fac3 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();