Browse Source

UI-553: Comitted updated error list of Hangup causes

4.3
Jean-Roch Maitre 11 years ago
parent
commit
060f79e40e
1 changed files with 9 additions and 6 deletions
  1. +9
    -6
      submodules/callLogs/callLogs.js

+ 9
- 6
submodules/callLogs/callLogs.js View File

@ -289,14 +289,17 @@ define(function(require){
durationMin = parseInt(cdr.duration_seconds/60).toString(), durationMin = parseInt(cdr.duration_seconds/60).toString(),
durationSec = (cdr.duration_seconds % 60 < 10 ? "0" : "") + (cdr.duration_seconds % 60), durationSec = (cdr.duration_seconds % 60 < 10 ? "0" : "") + (cdr.duration_seconds % 60),
hangupI18n = self.i18n.active().hangupCauses, hangupI18n = self.i18n.active().hangupCauses,
hangupHelp = '';
hangupHelp = '',
isOutboundCall = "authorizing_id" in cdr && cdr.authorizing_id.length > 0;
// Only display help if it's in the i18n.
if(hangupI18n.hasOwnProperty(cdr.hangup_cause)) { if(hangupI18n.hasOwnProperty(cdr.hangup_cause)) {
if(hangupI18n[cdr.hangup_cause].label !== '') {
hangupHelp += (hangupI18n[cdr.hangup_cause].label + ': ');
if(isOutboundCall && hangupI18n[cdr.hangup_cause].hasOwnProperty('outbound')) {
hangupHelp += hangupI18n[cdr.hangup_cause].outbound;
}
else if(!isOutboundCall && hangupI18n[cdr.hangup_cause].hasOwnProperty('inbound')) {
hangupHelp += hangupI18n[cdr.hangup_cause].inbound;
} }
hangupHelp += hangupI18n[cdr.hangup_cause].description;
} }
return { return {
@ -312,7 +315,7 @@ define(function(require){
duration: durationMin + ":" + durationSec, duration: durationMin + ":" + durationSec,
hangupCause: cdr.hangup_cause, hangupCause: cdr.hangup_cause,
hangupHelp: hangupHelp, hangupHelp: hangupHelp,
isOutboundCall: ("authorizing_id" in cdr && cdr.authorizing_id.length > 0),
isOutboundCall: isOutboundCall,
mailtoLink: "mailto:support@2600hz.com" mailtoLink: "mailto:support@2600hz.com"
+ "?subject=Call Report: " + cdr.call_id + "?subject=Call Report: " + cdr.call_id
+ "&body=Please describe the details of the issue:%0D%0A%0D%0A" + "&body=Please describe the details of the issue:%0D%0A%0D%0A"


Loading…
Cancel
Save