added initial support for REST-initiated outdials

This commit is contained in:
Dave Horton
2020-02-01 16:16:00 -05:00
parent 44a1b45357
commit 2525b8c70a
28 changed files with 985 additions and 127 deletions

View File

@@ -83,9 +83,14 @@
"listen": {
"properties": {
"action": "string",
"auth": "#auth",
"finishOnKey": "string",
"maxLength": "number",
"metadata": "object",
"method": {
"type": "string",
"enum": ["GET", "POST"]
},
"mixType": {
"type": "string",
"enum": ["mono", "stereo", "mixed"]
@@ -96,6 +101,7 @@
"timeout": "number",
"transcribe": "#transcribe",
"url": "string",
"wsAuth": "#auth",
"earlyMedia": "boolean"
},
"required": [
@@ -115,6 +121,19 @@
"action"
]
},
"rest:dial": {
"properties": {
"call_hook": "object",
"from": "string",
"to": "#target",
"timeout": "number"
},
"required": [
"call_hook",
"from",
"to"
]
},
"tag": {
"properties": {
"data": "object"
@@ -155,11 +174,11 @@
},
"auth": {
"properties": {
"user": "string",
"username": "string",
"password": "string"
},
"required": [
"user",
"username",
"password"
]
},