Skip to content

Commit

Permalink
Added new events for the Attendant Menu app
Browse files Browse the repository at this point in the history
  • Loading branch information
mrothstein committed Feb 26, 2018
1 parent f78df33 commit 91c43a6
Show file tree
Hide file tree
Showing 4 changed files with 115 additions and 0 deletions.
28 changes: 28 additions & 0 deletions schemas/app/attendant-menu/abandoned.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"schema": "http://json-schema.org/draft-04/schema#",
"title": "app.attendant-menu.abandoned",
"description": "The user hung up before being transferred.",

"definitions": {
"payload": {
"type": "object",
"properties": {
"callId": { "type": "string" },
"fromUri": { "type": "string" },
"toUri": { "type": "string" }
},
"required": ["fromUri", "toUri"]
}
},

"allOf": [
{ "$ref": "/base" },
{
"type": "object",
"properties": {
"payload": { "$ref": "#/definitions/payload" }
},
"required": ["payload"]
}
]
}
29 changes: 29 additions & 0 deletions schemas/app/attendant-menu/invalid-dtmf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"schema": "http://json-schema.org/draft-04/schema#",
"title": "app.attendant-menu.invalid-dtmf",
"description": "The DTMF tones entered by the user map to neither an extension nor a preset option.",

"definitions": {
"payload": {
"type": "object",
"properties": {
"entry": { "type": "string" },
"callId": { "type": "string" },
"fromUri": { "type": "string" },
"toUri": { "type": "string" }
},
"required": ["entry", "fromUri", "toUri"]
}
},

"allOf": [
{ "$ref": "/base" },
{
"type": "object",
"properties": {
"payload": { "$ref": "#/definitions/payload" }
},
"required": ["payload"]
}
]
}
28 changes: 28 additions & 0 deletions schemas/app/attendant-menu/started.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"schema": "http://json-schema.org/draft-04/schema#",
"title": "app.attendant-menu.started",
"description": "The attendant menu started and a recording is played.",

"definitions": {
"payload": {
"type": "object",
"properties": {
"callId": { "type": "string" },
"fromUri": { "type": "string" },
"toUri": { "type": "string" }
},
"required": ["fromUri", "toUri"]
}
},

"allOf": [
{ "$ref": "/base" },
{
"type": "object",
"properties": {
"payload": { "$ref": "#/definitions/payload" }
},
"required": ["payload"]
}
]
}
30 changes: 30 additions & 0 deletions schemas/app/attendant-menu/transferred.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"schema": "http://json-schema.org/draft-04/schema#",
"title": "app.attendant-menu.transferred",
"Description": "A user is successfully transferred to the sip-address associated with an option, or to the extension. (Note: This also occurs when the user is transferred to another Attendant Menu.)",

"definitions": {
"payload": {
"type": "object",
"properties": {
"entry": { "type": "string" },
"callId": { "type": "string" },
"fromUri": { "type": "string" },
"toUri": { "type": "string" },
"referTo": { "type": "string" }
},
"required": ["entry", "fromUri", "toUri", "referTo"]
}
},

"allOf": [
{ "$ref": "/base" },
{
"type": "object",
"properties": {
"payload": { "$ref": "#/definitions/payload" }
},
"required": ["payload"]
}
]
}

0 comments on commit 91c43a6

Please sign in to comment.