From 185e4df06e5f12bca8be08bf9f398c641876638b Mon Sep 17 00:00:00 2001 From: Quan HL Date: Thu, 10 Aug 2023 13:56:10 +0700 Subject: [PATCH] obholdMusic for config verb --- specs.json | 6 +++--- test/jambonz-verb-test.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/specs.json b/specs.json index 3d0aa14..58f0df0 100644 --- a/specs.json +++ b/specs.json @@ -45,7 +45,8 @@ "listen": "#listenOptions", "amd": "#amd", "notifyEvents": "boolean", - "reset": "string|array" + "reset": "string|array", + "onHoldMusic": "string" }, "required": [] }, @@ -213,8 +214,7 @@ "timeout": "number", "proxy": "string", "transcribe": "#transcribe", - "amd": "#amd", - "onHoldMusic": "string" + "amd": "#amd" }, "required": [ "target" diff --git a/test/jambonz-verb-test.js b/test/jambonz-verb-test.js index be7b262..9f17092 100644 --- a/test/jambonz-verb-test.js +++ b/test/jambonz-verb-test.js @@ -34,7 +34,8 @@ test("validate correct verbs", async (t) => { "enable": true, "input" : ["speech"], "actionHook": "/userInput" - } + }, + "onHoldMusic": "http://server.com/hold" }, { "verb": "config", @@ -68,7 +69,6 @@ test("validate correct verbs", async (t) => { "callerName": "Tom", "answerOnBridge": true, "dtmfCapture": ["*2", "*3"], - "onHoldMusic": "http://server.com/hold", "dtmfHook": { "url": "/dtmf", "method": "GET"