Skip to content

Commit

Permalink
Modify kapi_route module to use kapi_definition module (2600hz#6335)
Browse files Browse the repository at this point in the history
  • Loading branch information
harenson authored and jamesaimonetti committed Feb 26, 2020
1 parent 02527fe commit c4bbd57
Show file tree
Hide file tree
Showing 8 changed files with 895 additions and 193 deletions.
268 changes: 268 additions & 0 deletions applications/crossbar/priv/api/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -25105,6 +25105,274 @@
],
"type": "object"
},
"kapi.route.route_req": {
"description": "AMQP API for route.route_req",
"properties": {
"Body": {
"type": "string"
},
"Call-Direction": {
"type": "string"
},
"Call-ID": {
"type": "string"
},
"Caller-ID-Name": {
"type": "string"
},
"Caller-ID-Number": {
"type": "string"
},
"Codecs": {
"type": "string"
},
"Context": {
"type": "string"
},
"Cost-Parameters": {
"type": "string"
},
"Custom-Application-Vars": {
"type": "object"
},
"Custom-Channel-Vars": {
"type": "object"
},
"Custom-Routing-Headers": {
"type": "object"
},
"Custom-SIP-Headers": {
"type": "object"
},
"Destination-Number": {
"type": "string"
},
"Event-Category": {
"enum": [
"dialplan"
],
"type": "string"
},
"Event-Name": {
"enum": [
"route_req"
],
"type": "string"
},
"Event-Queue": {
"type": "string"
},
"From": {
"type": "string"
},
"From-Network-Addr": {
"type": "string"
},
"From-Network-Port": {
"type": "string"
},
"From-Tag": {
"type": "string"
},
"Geo-Location": {
"type": "string"
},
"Max-Call-Length": {
"type": "string"
},
"Media": {
"enum": [
"process",
"proxy",
"bypass"
],
"type": "string"
},
"Message-ID": {
"type": "string"
},
"Orig-IP": {
"type": "string"
},
"Orig-Port": {
"type": "string"
},
"Origination-Call-ID": {
"type": "string"
},
"Prepend-CID-Name": {
"type": "string"
},
"Request": {
"type": "string"
},
"Resource-Type": {
"enum": [
"mms",
"sms",
"audio",
"video",
"chat",
"metaflow"
],
"type": "string"
},
"Ringback-Media": {
"type": "string"
},
"SIP-Request-Host": {
"type": "string"
},
"Switch-Hostname": {
"type": "string"
},
"Switch-Nodename": {
"type": "string"
},
"Switch-URI": {
"type": "string"
},
"Switch-URL": {
"type": "string"
},
"To": {
"type": "string"
},
"To-Tag": {
"type": "string"
},
"Transcode": {
"type": "string"
},
"Transfer-Media": {
"type": "string"
},
"User-Agent": {
"type": "string"
}
},
"required": [
"Call-ID",
"From",
"Request",
"To"
],
"type": "object"
},
"kapi.route.route_resp": {
"description": "AMQP API for route.route_resp",
"properties": {
"Application-Data": {
"type": "string"
},
"Custom-Application-Vars": {
"type": "object"
},
"Custom-Channel-Vars": {
"type": "object"
},
"Event-Category": {
"enum": [
"dialplan"
],
"type": "string"
},
"Event-Name": {
"enum": [
"route_resp"
],
"type": "string"
},
"From-Realm": {
"type": "string"
},
"From-URI": {
"type": "string"
},
"From-User": {
"type": "string"
},
"Method": {
"enum": [
"bridge",
"park",
"error",
"sms",
"plan",
"application"
],
"type": "string"
},
"Plan-Data": {
"type": "string"
},
"Pre-Park": {
"enum": [
"none",
"ring_ready",
"answer"
],
"type": "string"
},
"Ringback-Media": {
"type": "string"
},
"Route-Error-Code": {
"type": "string"
},
"Route-Error-Message": {
"type": "string"
},
"Routes": {
"items": {
"$ref": "#/definitions/kapi.route.resp_route",
"type": "object"
},
"type": "array"
},
"Transfer-Media": {
"type": "string"
}
},
"required": [
"Method"
],
"type": "object"
},
"kapi.route.route_win": {
"description": "AMQP API for route.route_win",
"properties": {
"Call-ID": {
"type": "string"
},
"Control-Queue": {
"type": "string"
},
"Custom-Channel-Vars": {
"type": "object"
},
"Event-Category": {
"enum": [
"dialplan"
],
"type": "string"
},
"Event-Name": {
"enum": [
"route_win"
],
"type": "string"
},
"Switch-Hostname": {
"type": "string"
}
},
"required": [
"Call-ID",
"Control-Queue"
],
"type": "object"
},
"kapi.route.win": {
"description": "AMQP API for route.win",
"properties": {
Expand Down
Loading

0 comments on commit c4bbd57

Please sign in to comment.