Browse Source

Answer submodule

pull/4/head
Vladimir Barkasov 6 years ago
parent
commit
67fa489c84
2 changed files with 28 additions and 0 deletions
  1. +4
    -0
      src/apps/callflows/i18n/en-US.json
  2. +24
    -0
      src/apps/callflows/submodules/misc/misc.js

+ 4
- 0
src/apps/callflows/i18n/en-US.json View File

@ -54,6 +54,10 @@
},
"warning": "Warning!"
},
"answer": {
"answer": "Answer",
"tooltip": "Attempts to answer the call; will block callflow execution until the call is answered"
},
"audio_macro": {
"dialog_title": "Audio Macro",
"macro_type": "Macro type",


+ 24
- 0
src/apps/callflows/submodules/misc/misc.js View File

@ -1282,6 +1282,30 @@ define(function(require) {
edit: function(node, callback) {
self.miscEditSetCAV(node, callback);
}
},
'answer[]': {
name: self.i18n.active().callflows.answer.answer,
icon: 'phone',
category: self.i18n.active().oldCallflows.basic_cat,
module: 'answer',
tip: self.i18n.active().callflows.answer.tooltip,
data: {},
rules: [
{
type: 'quantity',
maxSize: '1'
}
],
isUsable: 'true',
weight: 48,
caption: function(node, caption_map) {
return '';
},
edit: function(node, callback) {
if (typeof callback === 'function') {
callback();
}
}
}
});
},


Loading…
Cancel
Save