Skip to content

Commit d8dec0d

Browse files
harensonjamesaimonetti
authored andcommitted
Modify kapi_dialplan module to use kapi_definition module (#6464)
1 parent 0e7e374 commit d8dec0d

File tree

10 files changed

+5100
-1776
lines changed

10 files changed

+5100
-1776
lines changed

applications/crossbar/priv/api/swagger.json

Lines changed: 1114 additions & 56 deletions
Large diffs are not rendered by default.

applications/crossbar/priv/couchdb/schemas/kapi.dialplan.command.json

Lines changed: 718 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"_id": "kapi.dialplan.dialplan",
4+
"description": "AMQP API for dialplan.dialplan",
5+
"properties": {
6+
"Call-ID": {
7+
"type": "string"
8+
},
9+
"Channel-Call-State": {
10+
"type": "string"
11+
},
12+
"Channel-State": {
13+
"type": "string"
14+
},
15+
"Custom-Channel-Vars": {
16+
"type": "object"
17+
},
18+
"Dialplan-Error": {
19+
"type": "string"
20+
},
21+
"Error-Message": {
22+
"type": "string"
23+
},
24+
"Event-Category": {
25+
"enum": [
26+
"error"
27+
],
28+
"type": "string"
29+
},
30+
"Event-Name": {
31+
"enum": [
32+
"dialplan"
33+
],
34+
"type": "string"
35+
},
36+
"Request": {
37+
"type": "string"
38+
}
39+
},
40+
"required": [
41+
"Channel-Call-State",
42+
"Channel-State",
43+
"Dialplan-Error",
44+
"Error-Message"
45+
],
46+
"type": "object"
47+
}
Lines changed: 252 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,252 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"_id": "kapi.dialplan",
4+
"description": "AMQP API for dialplan",
5+
"properties": {
6+
"Account-ID": {
7+
"type": "string"
8+
},
9+
"Application-Name": {
10+
"enum": [
11+
"store"
12+
],
13+
"type": "string"
14+
},
15+
"Auth-Password": {
16+
"type": "string"
17+
},
18+
"Auth-Realm": {
19+
"type": "string"
20+
},
21+
"Auth-User": {
22+
"type": "string"
23+
},
24+
"Bypass-Media": {
25+
"type": "string"
26+
},
27+
"Call-Context": {
28+
"type": "string"
29+
},
30+
"Call-ID": {
31+
"type": "string"
32+
},
33+
"Callee-ID-Name": {
34+
"type": "string"
35+
},
36+
"Callee-ID-Number": {
37+
"type": "string"
38+
},
39+
"Caller-ID-Name": {
40+
"type": "string"
41+
},
42+
"Caller-ID-Number": {
43+
"type": "string"
44+
},
45+
"Codecs": {
46+
"type": "string"
47+
},
48+
"Custom-Application-Vars": {
49+
"type": "object"
50+
},
51+
"Custom-Channel-Vars": {
52+
"type": "object"
53+
},
54+
"Custom-SIP-Headers": {
55+
"type": "object"
56+
},
57+
"Duration-OFF": {
58+
"type": "string"
59+
},
60+
"Duration-ON": {
61+
"type": "string"
62+
},
63+
"Enable-T38-Fax": {
64+
"type": "string"
65+
},
66+
"Enable-T38-Fax-Request": {
67+
"type": "string"
68+
},
69+
"Enable-T38-Gateway": {
70+
"enum": [
71+
"self",
72+
"peer"
73+
],
74+
"type": "string"
75+
},
76+
"Enable-T38-Passthrough": {
77+
"type": "string"
78+
},
79+
"Endpoint-Actions": {
80+
"type": "object"
81+
},
82+
"Endpoint-Delay": {
83+
"type": "string"
84+
},
85+
"Endpoint-ID": {
86+
"type": "string"
87+
},
88+
"Endpoint-Options": {
89+
"type": "string"
90+
},
91+
"Endpoint-Progress-Timeout": {
92+
"type": "integer"
93+
},
94+
"Endpoint-Timeout": {
95+
"type": "integer"
96+
},
97+
"Endpoint-Type": {
98+
"enum": [
99+
"sip",
100+
"freetdm",
101+
"skype"
102+
],
103+
"type": "string"
104+
},
105+
"Endpoint-URI": {
106+
"type": "string"
107+
},
108+
"Failover": {
109+
"type": "string"
110+
},
111+
"Force-Fax": {
112+
"type": "string"
113+
},
114+
"Forward-IP": {
115+
"type": "string"
116+
},
117+
"Frequencies": {
118+
"type": "string"
119+
},
120+
"Hold-Media": {
121+
"type": "string"
122+
},
123+
"Ignore-Completed-Elsewhere": {
124+
"type": "string"
125+
},
126+
"Ignore-Early-Media": {
127+
"type": "string"
128+
},
129+
"Invite-Format": {
130+
"enum": [
131+
"username",
132+
"e164",
133+
"npan",
134+
"1npan",
135+
"route",
136+
"loopback",
137+
"contact",
138+
"endpoint",
139+
"forward"
140+
],
141+
"type": "string"
142+
},
143+
"Loopback-Bowout": {
144+
"type": "string"
145+
},
146+
"Media-Content": {
147+
"type": "string"
148+
},
149+
"Media-Name": {
150+
"type": "string"
151+
},
152+
"Media-Sequence-ID": {
153+
"type": "string"
154+
},
155+
"Media-Transfer-Method": {
156+
"enum": [
157+
"stream"
158+
],
159+
"type": "string"
160+
},
161+
"Outbound-Call-ID": {
162+
"type": "string"
163+
},
164+
"Outbound-Callee-ID-Name": {
165+
"type": "string"
166+
},
167+
"Outbound-Callee-ID-Number": {
168+
"type": "string"
169+
},
170+
"Outbound-Caller-ID-Name": {
171+
"type": "string"
172+
},
173+
"Outbound-Caller-ID-Number": {
174+
"type": "string"
175+
},
176+
"Presence-ID": {
177+
"type": "string"
178+
},
179+
"Privacy-Hide-Name": {
180+
"type": "string"
181+
},
182+
"Privacy-Hide-Number": {
183+
"type": "string"
184+
},
185+
"Privacy-Method": {
186+
"type": "string"
187+
},
188+
"Proxy-IP": {
189+
"type": "string"
190+
},
191+
"Proxy-Zone": {
192+
"type": "string"
193+
},
194+
"Repeat": {
195+
"type": "string"
196+
},
197+
"Route": {
198+
"type": "string"
199+
},
200+
"SIP-Interface": {
201+
"type": "string"
202+
},
203+
"SIP-Invite-Parameters": {
204+
"type": "string"
205+
},
206+
"SIP-Transport": {
207+
"enum": [
208+
"udp",
209+
"tcp",
210+
"tls",
211+
"sctp"
212+
],
213+
"type": "string"
214+
},
215+
"Simplify-Loopback": {
216+
"type": "string"
217+
},
218+
"To-DID": {
219+
"type": "string"
220+
},
221+
"To-IP": {
222+
"type": "string"
223+
},
224+
"To-Realm": {
225+
"type": "string"
226+
},
227+
"To-URI": {
228+
"type": "string"
229+
},
230+
"To-User": {
231+
"type": "string"
232+
},
233+
"To-Username": {
234+
"type": "string"
235+
},
236+
"Volume": {
237+
"type": "string"
238+
}
239+
},
240+
"required": [
241+
"Application-Name",
242+
"Call-ID",
243+
"Duration-OFF",
244+
"Duration-ON",
245+
"Frequencies",
246+
"Invite-Format",
247+
"Media-Content",
248+
"Media-Name",
249+
"Media-Transfer-Method"
250+
],
251+
"type": "object"
252+
}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"_id": "kapi.dialplan.response",
4+
"description": "AMQP API for dialplan.response",
5+
"properties": {
6+
"Application-Name": {
7+
"enum": [
8+
"store"
9+
],
10+
"type": "string"
11+
},
12+
"Call-ID": {
13+
"type": "string"
14+
},
15+
"Event-Category": {
16+
"enum": [
17+
"call"
18+
],
19+
"type": "string"
20+
},
21+
"Event-Name": {
22+
"enum": [
23+
"response"
24+
],
25+
"type": "string"
26+
},
27+
"Media-Name": {
28+
"type": "string"
29+
},
30+
"Media-Transfer-Method": {
31+
"enum": [
32+
"put",
33+
"post"
34+
],
35+
"type": "string"
36+
},
37+
"Media-Transfer-Results": {
38+
"type": "string"
39+
}
40+
},
41+
"required": [
42+
"Application-Name",
43+
"Call-ID",
44+
"Media-Name",
45+
"Media-Transfer-Method",
46+
"Media-Transfer-Results"
47+
],
48+
"type": "object"
49+
}

0 commit comments

Comments
 (0)