Skip to content

Commit

Permalink
support config referHook
Browse files Browse the repository at this point in the history
  • Loading branch information
xquanluu committed Sep 25, 2024
1 parent aa86d0b commit 4e0bc85
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@
"actionHookDelayAction": "#actionHookDelayAction",
"sipRequestWithinDialogHook": "object|string",
"boostAudioSignal": "number|string",
"vad":"#vad"
"vad":"#vad",
"referHook": "object|string"
},
"required": []
},
Expand Down
10 changes: 10 additions & 0 deletions test/jambonz-verb-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,16 @@ test("validate correct verbs", async (t) => {
}
}
},
{
"verb": "config",
"referHook": "https://referhook.com"
},
{
"verb": "config",
"referHook": {
"url": "https://referhook.com"
}
},
{
"verb": "config",
"recognizer": {
Expand Down

0 comments on commit 4e0bc85

Please sign in to comment.