forked from 2600hz/kazoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify kapi_dialplan module to use kapi_definition module (2600hz#6464)
- Loading branch information
1 parent
0e7e374
commit d8dec0d
Showing
10 changed files
with
5,100 additions
and
1,776 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
718 changes: 718 additions & 0 deletions
718
applications/crossbar/priv/couchdb/schemas/kapi.dialplan.command.json
Large diffs are not rendered by default.
Oops, something went wrong.
47 changes: 47 additions & 0 deletions
47
applications/crossbar/priv/couchdb/schemas/kapi.dialplan.dialplan.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"_id": "kapi.dialplan.dialplan", | ||
"description": "AMQP API for dialplan.dialplan", | ||
"properties": { | ||
"Call-ID": { | ||
"type": "string" | ||
}, | ||
"Channel-Call-State": { | ||
"type": "string" | ||
}, | ||
"Channel-State": { | ||
"type": "string" | ||
}, | ||
"Custom-Channel-Vars": { | ||
"type": "object" | ||
}, | ||
"Dialplan-Error": { | ||
"type": "string" | ||
}, | ||
"Error-Message": { | ||
"type": "string" | ||
}, | ||
"Event-Category": { | ||
"enum": [ | ||
"error" | ||
], | ||
"type": "string" | ||
}, | ||
"Event-Name": { | ||
"enum": [ | ||
"dialplan" | ||
], | ||
"type": "string" | ||
}, | ||
"Request": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"Channel-Call-State", | ||
"Channel-State", | ||
"Dialplan-Error", | ||
"Error-Message" | ||
], | ||
"type": "object" | ||
} |
252 changes: 252 additions & 0 deletions
252
applications/crossbar/priv/couchdb/schemas/kapi.dialplan.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,252 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"_id": "kapi.dialplan", | ||
"description": "AMQP API for dialplan", | ||
"properties": { | ||
"Account-ID": { | ||
"type": "string" | ||
}, | ||
"Application-Name": { | ||
"enum": [ | ||
"store" | ||
], | ||
"type": "string" | ||
}, | ||
"Auth-Password": { | ||
"type": "string" | ||
}, | ||
"Auth-Realm": { | ||
"type": "string" | ||
}, | ||
"Auth-User": { | ||
"type": "string" | ||
}, | ||
"Bypass-Media": { | ||
"type": "string" | ||
}, | ||
"Call-Context": { | ||
"type": "string" | ||
}, | ||
"Call-ID": { | ||
"type": "string" | ||
}, | ||
"Callee-ID-Name": { | ||
"type": "string" | ||
}, | ||
"Callee-ID-Number": { | ||
"type": "string" | ||
}, | ||
"Caller-ID-Name": { | ||
"type": "string" | ||
}, | ||
"Caller-ID-Number": { | ||
"type": "string" | ||
}, | ||
"Codecs": { | ||
"type": "string" | ||
}, | ||
"Custom-Application-Vars": { | ||
"type": "object" | ||
}, | ||
"Custom-Channel-Vars": { | ||
"type": "object" | ||
}, | ||
"Custom-SIP-Headers": { | ||
"type": "object" | ||
}, | ||
"Duration-OFF": { | ||
"type": "string" | ||
}, | ||
"Duration-ON": { | ||
"type": "string" | ||
}, | ||
"Enable-T38-Fax": { | ||
"type": "string" | ||
}, | ||
"Enable-T38-Fax-Request": { | ||
"type": "string" | ||
}, | ||
"Enable-T38-Gateway": { | ||
"enum": [ | ||
"self", | ||
"peer" | ||
], | ||
"type": "string" | ||
}, | ||
"Enable-T38-Passthrough": { | ||
"type": "string" | ||
}, | ||
"Endpoint-Actions": { | ||
"type": "object" | ||
}, | ||
"Endpoint-Delay": { | ||
"type": "string" | ||
}, | ||
"Endpoint-ID": { | ||
"type": "string" | ||
}, | ||
"Endpoint-Options": { | ||
"type": "string" | ||
}, | ||
"Endpoint-Progress-Timeout": { | ||
"type": "integer" | ||
}, | ||
"Endpoint-Timeout": { | ||
"type": "integer" | ||
}, | ||
"Endpoint-Type": { | ||
"enum": [ | ||
"sip", | ||
"freetdm", | ||
"skype" | ||
], | ||
"type": "string" | ||
}, | ||
"Endpoint-URI": { | ||
"type": "string" | ||
}, | ||
"Failover": { | ||
"type": "string" | ||
}, | ||
"Force-Fax": { | ||
"type": "string" | ||
}, | ||
"Forward-IP": { | ||
"type": "string" | ||
}, | ||
"Frequencies": { | ||
"type": "string" | ||
}, | ||
"Hold-Media": { | ||
"type": "string" | ||
}, | ||
"Ignore-Completed-Elsewhere": { | ||
"type": "string" | ||
}, | ||
"Ignore-Early-Media": { | ||
"type": "string" | ||
}, | ||
"Invite-Format": { | ||
"enum": [ | ||
"username", | ||
"e164", | ||
"npan", | ||
"1npan", | ||
"route", | ||
"loopback", | ||
"contact", | ||
"endpoint", | ||
"forward" | ||
], | ||
"type": "string" | ||
}, | ||
"Loopback-Bowout": { | ||
"type": "string" | ||
}, | ||
"Media-Content": { | ||
"type": "string" | ||
}, | ||
"Media-Name": { | ||
"type": "string" | ||
}, | ||
"Media-Sequence-ID": { | ||
"type": "string" | ||
}, | ||
"Media-Transfer-Method": { | ||
"enum": [ | ||
"stream" | ||
], | ||
"type": "string" | ||
}, | ||
"Outbound-Call-ID": { | ||
"type": "string" | ||
}, | ||
"Outbound-Callee-ID-Name": { | ||
"type": "string" | ||
}, | ||
"Outbound-Callee-ID-Number": { | ||
"type": "string" | ||
}, | ||
"Outbound-Caller-ID-Name": { | ||
"type": "string" | ||
}, | ||
"Outbound-Caller-ID-Number": { | ||
"type": "string" | ||
}, | ||
"Presence-ID": { | ||
"type": "string" | ||
}, | ||
"Privacy-Hide-Name": { | ||
"type": "string" | ||
}, | ||
"Privacy-Hide-Number": { | ||
"type": "string" | ||
}, | ||
"Privacy-Method": { | ||
"type": "string" | ||
}, | ||
"Proxy-IP": { | ||
"type": "string" | ||
}, | ||
"Proxy-Zone": { | ||
"type": "string" | ||
}, | ||
"Repeat": { | ||
"type": "string" | ||
}, | ||
"Route": { | ||
"type": "string" | ||
}, | ||
"SIP-Interface": { | ||
"type": "string" | ||
}, | ||
"SIP-Invite-Parameters": { | ||
"type": "string" | ||
}, | ||
"SIP-Transport": { | ||
"enum": [ | ||
"udp", | ||
"tcp", | ||
"tls", | ||
"sctp" | ||
], | ||
"type": "string" | ||
}, | ||
"Simplify-Loopback": { | ||
"type": "string" | ||
}, | ||
"To-DID": { | ||
"type": "string" | ||
}, | ||
"To-IP": { | ||
"type": "string" | ||
}, | ||
"To-Realm": { | ||
"type": "string" | ||
}, | ||
"To-URI": { | ||
"type": "string" | ||
}, | ||
"To-User": { | ||
"type": "string" | ||
}, | ||
"To-Username": { | ||
"type": "string" | ||
}, | ||
"Volume": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"Application-Name", | ||
"Call-ID", | ||
"Duration-OFF", | ||
"Duration-ON", | ||
"Frequencies", | ||
"Invite-Format", | ||
"Media-Content", | ||
"Media-Name", | ||
"Media-Transfer-Method" | ||
], | ||
"type": "object" | ||
} |
49 changes: 49 additions & 0 deletions
49
applications/crossbar/priv/couchdb/schemas/kapi.dialplan.response.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"_id": "kapi.dialplan.response", | ||
"description": "AMQP API for dialplan.response", | ||
"properties": { | ||
"Application-Name": { | ||
"enum": [ | ||
"store" | ||
], | ||
"type": "string" | ||
}, | ||
"Call-ID": { | ||
"type": "string" | ||
}, | ||
"Event-Category": { | ||
"enum": [ | ||
"call" | ||
], | ||
"type": "string" | ||
}, | ||
"Event-Name": { | ||
"enum": [ | ||
"response" | ||
], | ||
"type": "string" | ||
}, | ||
"Media-Name": { | ||
"type": "string" | ||
}, | ||
"Media-Transfer-Method": { | ||
"enum": [ | ||
"put", | ||
"post" | ||
], | ||
"type": "string" | ||
}, | ||
"Media-Transfer-Results": { | ||
"type": "string" | ||
} | ||
}, | ||
"required": [ | ||
"Application-Name", | ||
"Call-ID", | ||
"Media-Name", | ||
"Media-Transfer-Method", | ||
"Media-Transfer-Results" | ||
], | ||
"type": "object" | ||
} |
Oops, something went wrong.