9ebbac061f848fe022f64e7ada59d74a0d16b210
[asterisk/asterisk.git] / rest-api / api-docs / events.json
1 {
2         "_copyright": "Copyright (C) 2012 - 2013, Digium, Inc.",
3         "_author": "David M. Lee, II <dlee@digium.com>",
4         "_svn_revision": "$Revision$",
5         "apiVersion": "2.0.0",
6         "swaggerVersion": "1.2",
7         "basePath": "http://localhost:8088/ari",
8         "resourcePath": "/api-docs/events.{format}",
9         "apis": [
10                 {
11                         "path": "/events",
12                         "description": "Events from Asterisk to applications",
13                         "operations": [
14                                 {
15                                         "httpMethod": "GET",
16                                         "upgrade": "websocket",
17                                         "websocketProtocol": "ari",
18                                         "summary": "WebSocket connection for events.",
19                                         "nickname": "eventWebsocket",
20                                         "responseClass": "Message",
21                                         "parameters": [
22                                                 {
23                                                         "name": "app",
24                                                         "description": "Applications to subscribe to.",
25                                                         "paramType": "query",
26                                                         "required": true,
27                                                         "allowMultiple": true,
28                                                         "dataType": "string"
29                                                 },
30                                                 {
31                                                         "name": "subscribeAll",
32                                                         "description": "Subscribe to all Asterisk events. If provided, the applications listed will be subscribed to all events, effectively disabling the application specific subscriptions. Default is 'false'.",
33                                                         "paramType": "query",
34                                                         "required": false,
35                                                         "allowMultiple": false,
36                                                         "dataType": "boolean"
37                                                 }
38                                         ]
39                                 }
40                         ]
41                 },
42                 {
43                         "path": "/events/user/{eventName}",
44                         "description": "Stasis application user events",
45                         "operations": [
46                                 {
47                                         "httpMethod": "POST",
48                                         "summary": "Generate a user event.",
49                                         "nickname": "userEvent",
50                                         "responseClass": "void",
51                                         "parameters": [
52                                                 {
53                                                         "name": "eventName",
54                                                         "description": "Event name",
55                                                         "paramType": "path",
56                                                         "required": true,
57                                                         "allowMultiple": false,
58                                                         "dataType": "string"
59                                                 },
60                                                 {
61                                                         "name": "application",
62                                                         "description": "The name of the application that will receive this event",
63                                                         "paramType": "query",
64                                                         "required": true,
65                                                         "allowMultiple": false,
66                                                         "dataType": "string"
67                                                 },
68                                                 {
69                                                         "name": "source",
70                                                         "description": "URI for event source (channel:{channelId}, bridge:{bridgeId}, endpoint:{tech}/{resource}, deviceState:{deviceName}",
71                                                         "paramType": "query",
72                                                         "required": false,
73                                                         "allowMultiple": true,
74                                                         "dataType": "string"
75                                                 },
76                                                 {
77                                                         "name": "variables",
78                                                         "description": "The \"variables\" key in the body object holds custom key/value pairs to add to the user event. Ex. { \"variables\": { \"key\": \"value\" } }",
79                                                         "paramType": "body",
80                                                         "required": false,
81                                                         "allowMultiple": false,
82                                                         "dataType": "containers"
83                                                 }
84                                         ],
85                                         "errorResponses": [
86                                                 {
87                                                         "code": 404,
88                                                         "reason": "Application does not exist."
89                                                 },
90                                                 {
91                                                         "code": 422,
92                                                         "reason": "Event source not found."
93                                                 },
94                                                 {
95                                                         "code": 400,
96                                                         "reason": "Invalid even tsource URI or userevent data."
97                                                 }
98                                         ]
99                                 }
100                         ]
101                 }
102         ],
103         "models": {
104                 "Message": {
105                         "id": "Message",
106                         "description": "Base type for errors and events",
107                         "discriminator": "type",
108                         "properties": {
109                                 "type": {
110                                         "type": "string",
111                                         "required": true,
112                                         "description": "Indicates the type of this message."
113                                 },
114                                 "asterisk_id": {
115                                         "type": "string",
116                                         "required": false,
117                                         "description": "The unique ID for the Asterisk instance that raised this event."
118                                 }
119                         },
120                         "subTypes": [
121                                 "MissingParams",
122                                 "Event"
123                         ]
124                 },
125                 "MissingParams": {
126                         "id": "MissingParams",
127                         "description": "Error event sent when required params are missing.",
128                         "properties": {
129                                 "params": {
130                                         "required": true,
131                                         "type": "List[string]",
132                                         "description": "A list of the missing parameters"
133                                 }
134                         }
135                 },
136                 "Event": {
137                         "id": "Event",
138                         "description": "Base type for asynchronous events from Asterisk.",
139                         "properties": {
140                                 "application": {
141                                         "type": "string",
142                                         "description": "Name of the application receiving the event.",
143                                         "required": true
144                                 },
145                                 "timestamp": {
146                                         "type": "Date",
147                                         "description": "Time at which this event was created.",
148                                         "required": false
149                                 }
150                         },
151                         "subTypes": [
152                                 "DeviceStateChanged",
153                                 "PlaybackStarted",
154                                 "PlaybackContinuing",
155                                 "PlaybackFinished",
156                                 "RecordingStarted",
157                                 "RecordingFinished",
158                                 "RecordingFailed",
159                                 "ApplicationReplaced",
160                                 "BridgeCreated",
161                                 "BridgeDestroyed",
162                                 "BridgeMerged",
163                                 "BridgeBlindTransfer",
164                                 "BridgeAttendedTransfer",
165                                 "BridgeVideoSourceChanged",
166                                 "ChannelCreated",
167                                 "ChannelDestroyed",
168                                 "ChannelEnteredBridge",
169                                 "ChannelLeftBridge",
170                                 "ChannelStateChange",
171                                 "ChannelDtmfReceived",
172                                 "ChannelDialplan",
173                                 "ChannelCallerId",
174                                 "ChannelUserevent",
175                                 "ChannelHangupRequest",
176                                 "ChannelVarset",
177                                 "ChannelTalkingStarted",
178                                 "ChannelTalkingFinished",
179                                 "ChannelHold",
180                                 "ChannelUnhold",
181                                 "ContactStatusChange",
182                                 "EndpointStateChange",
183                                 "Dial",
184                                 "StasisEnd",
185                                 "StasisStart",
186                                 "TextMessageReceived",
187                                 "ChannelConnectedLine",
188                                 "PeerStatusChange"
189                         ]
190                 },
191                 "ContactInfo": {
192                         "id": "ContactInfo",
193                         "description": "Detailed information about a contact on an endpoint.",
194                         "properties": {
195                                 "uri": {
196                                         "type": "string",
197                                         "description": "The location of the contact.",
198                                         "required": true
199                                 },
200                                 "contact_status": {
201                                         "type": "string",
202                                         "description": "The current status of the contact.",
203                                         "required": true,
204                                         "allowableValues": {
205                                                 "valueType": "LIST",
206                                                 "values": [
207                                                         "Unreachable",
208                                                         "Reachable",
209                                                         "Unknown",
210                                                         "Created",
211                                                         "Removed"
212                                                 ]
213                                         }
214                                 },
215                                 "aor": {
216                                         "type": "string",
217                                         "description": "The Address of Record this contact belongs to.",
218                                         "required": true
219                                 },
220                                 "roundtrip_usec": {
221                                         "type": "string",
222                                         "description": "Current round trip time, in microseconds, for the contact.",
223                                         "required": false
224                                 }
225                         }
226                 },
227                 "Peer": {
228                         "id": "Peer",
229                         "description": "Detailed information about a remote peer that communicates with Asterisk.",
230                         "properties": {
231                                 "peer_status": {
232                                         "type": "string",
233                                         "description": "The current state of the peer. Note that the values of the status are dependent on the underlying peer technology.",
234                                         "required": true
235                                 },
236                                 "cause": {
237                                         "type": "string",
238                                         "description": "An optional reason associated with the change in peer_status.",
239                                         "required": false
240                                 },
241                                 "address": {
242                                         "type": "string",
243                                         "description": "The IP address of the peer.",
244                                         "required": false
245                                 },
246                                 "port": {
247                                         "type": "string",
248                                         "description": "The port of the peer.",
249                                         "required": false
250                                 },
251                                 "time": {
252                                         "type": "string",
253                                         "description": "The last known time the peer was contacted.",
254                                         "required": false
255                                 }
256                         }
257                 },
258                 "DeviceStateChanged": {
259                         "id": "DeviceStateChanged",
260                         "description": "Notification that a device state has changed.",
261                         "properties": {
262                                 "device_state": {
263                                         "type": "DeviceState",
264                                         "description": "Device state object",
265                                         "required": true
266                                 }
267                         }
268                 },
269                 "PlaybackStarted": {
270                         "id": "PlaybackStarted",
271                         "description": "Event showing the start of a media playback operation.",
272                         "properties": {
273                                 "playback": {
274                                         "type": "Playback",
275                                         "description": "Playback control object",
276                                         "required": true
277                                 }
278                         }
279                 },
280                 "PlaybackContinuing": {
281                         "id": "PlaybackContinuing",
282                         "description": "Event showing the continuation of a media playback operation from one media URI to the next in the list.",
283                         "properties": {
284                                 "playback": {
285                                         "type": "Playback",
286                                         "description": "Playback control object",
287                                         "required": true
288                                 }
289                         }
290                 },
291                 "PlaybackFinished": {
292                         "id": "PlaybackFinished",
293                         "description": "Event showing the completion of a media playback operation.",
294                         "properties": {
295                                 "playback": {
296                                         "type": "Playback",
297                                         "description": "Playback control object",
298                                         "required": true
299                                 }
300                         }
301                 },
302                 "RecordingStarted": {
303                         "id": "RecordingStarted",
304                         "description": "Event showing the start of a recording operation.",
305                         "properties": {
306                                 "recording": {
307                                         "type": "LiveRecording",
308                                         "description": "Recording control object",
309                                         "required": true
310                                 }
311                         }
312                 },
313                 "RecordingFinished": {
314                         "id": "RecordingFinished",
315                         "description": "Event showing the completion of a recording operation.",
316                         "properties": {
317                                 "recording": {
318                                         "type": "LiveRecording",
319                                         "description": "Recording control object",
320                                         "required": true
321                                 }
322                         }
323                 },
324                 "RecordingFailed": {
325                         "id": "RecordingFailed",
326                         "description": "Event showing failure of a recording operation.",
327                         "properties": {
328                                 "recording": {
329                                         "type": "LiveRecording",
330                                         "description": "Recording control object",
331                                         "required": true
332                                 }
333                         }
334                 },
335                 "ApplicationReplaced": {
336                         "id": "ApplicationReplaced",
337                         "description": "Notification that another WebSocket has taken over for an application.\n\nAn application may only be subscribed to by a single WebSocket at a time. If multiple WebSockets attempt to subscribe to the same application, the newer WebSocket wins, and the older one receives this event.",
338                         "properties": {}
339                 },
340                 "BridgeCreated": {
341                         "id": "BridgeCreated",
342                         "description": "Notification that a bridge has been created.",
343                         "properties": {
344                                 "bridge": {
345                                         "required": true,
346                                         "type": "Bridge"
347                                 }
348                         }
349                 },
350                 "BridgeDestroyed": {
351                         "id": "BridgeDestroyed",
352                         "description": "Notification that a bridge has been destroyed.",
353                         "properties": {
354                                 "bridge": {
355                                         "required": true,
356                                         "type": "Bridge"
357                                 }
358                         }
359                 },
360                 "BridgeMerged": {
361                         "id": "BridgeMerged",
362                         "description": "Notification that one bridge has merged into another.",
363                         "properties": {
364                                 "bridge": {
365                                         "required": true,
366                                         "type": "Bridge"
367                                 },
368                                 "bridge_from": {
369                                         "required": true,
370                                         "type": "Bridge"
371                                 }
372                         }
373                 },
374                 "BridgeVideoSourceChanged": {
375                         "id": "BridgeVideoSourceChanged",
376                         "description": "Notification that the source of video in a bridge has changed.",
377                         "properties": {
378                                 "bridge": {
379                                         "required": true,
380                                         "type": "Bridge"
381                                 },
382                                 "old_video_source_id": {
383                                         "required": false,
384                                         "type": "string"
385                                 }
386                         }
387                 },
388                 "BridgeBlindTransfer": {
389                         "id": "BridgeBlindTransfer",
390                         "description": "Notification that a blind transfer has occurred.",
391                         "properties": {
392                                 "channel": {
393                                         "description": "The channel performing the blind transfer",
394                                         "required": true,
395                                         "type": "Channel"
396                                 },
397                                 "replace_channel": {
398                                         "description": "The channel that is replacing transferer when the transferee(s) can not be transferred directly",
399                                         "required": false,
400                                         "type": "Channel"
401                                 },
402                                 "transferee": {
403                                         "description": "The channel that is being transferred",
404                                         "required": false,
405                                         "type": "Channel"
406                                 },
407                                 "exten": {
408                                         "description": "The extension transferred to",
409                                         "required": true,
410                                         "type": "string"
411                                 },
412                                 "context": {
413                                         "description": "The context transferred to",
414                                         "required": true,
415                                         "type": "string"
416                                 },
417                                 "result": {
418                                         "description": "The result of the transfer attempt",
419                                         "required": true,
420                                         "type": "string"
421                                 },
422                                 "is_external": {
423                                         "description": "Whether the transfer was externally initiated or not",
424                                         "required": true,
425                                         "type": "boolean"
426                                 },
427                                 "bridge": {
428                                         "description": "The bridge being transferred",
429                                         "type": "Bridge"
430                                 }
431                         }
432                 },
433                 "BridgeAttendedTransfer": {
434                         "id": "BridgeAttendedTransfer",
435                         "description": "Notification that an attended transfer has occurred.",
436                         "properties": {
437                                 "transferer_first_leg": {
438                                         "description": "First leg of the transferer",
439                                         "required": true,
440                                         "type": "Channel"
441                                 },
442                                 "transferer_second_leg": {
443                                         "description": "Second leg of the transferer",
444                                         "required": true,
445                                         "type": "Channel"
446                                 },
447                                 "replace_channel": {
448                                         "description": "The channel that is replacing transferer_first_leg in the swap",
449                                         "required": false,
450                                         "type": "Channel"
451                                 },
452                                 "transferee": {
453                                         "description": "The channel that is being transferred",
454                                         "required": false,
455                                         "type": "Channel"
456                                 },
457                                 "transfer_target": {
458                                         "description": "The channel that is being transferred to",
459                                         "required": false,
460                                         "type": "Channel"
461                                 },
462                                 "result": {
463                                         "description": "The result of the transfer attempt",
464                                         "required": true,
465                                         "type": "string"
466                                 },
467                                 "is_external": {
468                                         "description": "Whether the transfer was externally initiated or not",
469                                         "required": true,
470                                         "type": "boolean"
471                                 },
472                                 "transferer_first_leg_bridge": {
473                                         "description": "Bridge the transferer first leg is in",
474                                         "type": "Bridge"
475                                 },
476                                 "transferer_second_leg_bridge": {
477                                         "description": "Bridge the transferer second leg is in",
478                                         "type": "Bridge"
479                                 },
480                                 "destination_type": {
481                                         "description": "How the transfer was accomplished",
482                                         "required": true,
483                                         "type": "string"
484                                 },
485                                 "destination_bridge": {
486                                         "description": "Bridge that survived the merge result",
487                                         "type": "string"
488                                 },
489                                 "destination_application": {
490                                         "description": "Application that has been transferred into",
491                                         "type": "string"
492                                 },
493                                 "destination_link_first_leg": {
494                                         "description": "First leg of a link transfer result",
495                                         "type": "Channel"
496                                 },
497                                 "destination_link_second_leg": {
498                                         "description": "Second leg of a link transfer result",
499                                         "type": "Channel"
500                                 },
501                                 "destination_threeway_channel": {
502                                         "description": "Transferer channel that survived the threeway result",
503                                         "type": "Channel"
504                                 },
505                                 "destination_threeway_bridge": {
506                                         "description": "Bridge that survived the threeway result",
507                                         "type": "Bridge"
508                                 }
509                         }
510                 },
511                 "ChannelCreated": {
512                         "id": "ChannelCreated",
513                         "description": "Notification that a channel has been created.",
514                         "properties": {
515                                 "channel": {
516                                         "required": true,
517                                         "type": "Channel"
518                                 }
519                         }
520                 },
521                 "ChannelDestroyed": {
522                         "id": "ChannelDestroyed",
523                         "description": "Notification that a channel has been destroyed.",
524                         "properties": {
525                                 "cause": {
526                                         "required": true,
527                                         "description": "Integer representation of the cause of the hangup",
528                                         "type": "int"
529                                 },
530                                 "cause_txt": {
531                                         "required": true,
532                                         "description": "Text representation of the cause of the hangup",
533                                         "type": "string"
534                                 },
535                                 "channel": {
536                                         "required": true,
537                                         "type": "Channel"
538                                 }
539                         }
540                 },
541                 "ChannelEnteredBridge": {
542                         "id": "ChannelEnteredBridge",
543                         "description": "Notification that a channel has entered a bridge.",
544                         "properties": {
545                                 "bridge": {
546                                         "required": true,
547                                         "type": "Bridge"
548                                 },
549                                 "channel": {
550                                         "type": "Channel"
551                                 }
552                         }
553                 },
554                 "ChannelLeftBridge": {
555                         "id": "ChannelLeftBridge",
556                         "description": "Notification that a channel has left a bridge.",
557                         "properties": {
558                                 "bridge": {
559                                         "required": true,
560                                         "type": "Bridge"
561                                 },
562                                 "channel": {
563                                         "required": true,
564                                         "type": "Channel"
565                                 }
566                         }
567                 },
568                 "ChannelStateChange": {
569                         "id": "ChannelStateChange",
570                         "description": "Notification of a channel's state change.",
571                         "properties": {
572                                 "channel": {
573                                         "required": true,
574                                         "type": "Channel"
575                                 }
576                         }
577                 },
578                 "ChannelDtmfReceived": {
579                         "id": "ChannelDtmfReceived",
580                         "description": "DTMF received on a channel.\n\nThis event is sent when the DTMF ends. There is no notification about the start of DTMF",
581                         "properties": {
582                                 "digit": {
583                                         "required": true,
584                                         "type": "string",
585                                         "description": "DTMF digit received (0-9, A-E, # or *)"
586                                 },
587                                 "duration_ms": {
588                                         "required": true,
589                                         "type": "int",
590                                         "description": "Number of milliseconds DTMF was received"
591                                 },
592                                 "channel": {
593                                         "required": true,
594                                         "type": "Channel",
595                                         "description": "The channel on which DTMF was received"
596                                 }
597                         }
598                 },
599                 "ChannelDialplan": {
600                         "id": "ChannelDialplan",
601                         "description": "Channel changed location in the dialplan.",
602                         "properties": {
603                                 "channel": {
604                                         "required": true,
605                                         "type": "Channel",
606                                         "description": "The channel that changed dialplan location."
607                                 },
608                                 "dialplan_app": {
609                                         "required": true,
610                                         "type": "string",
611                                         "description": "The application about to be executed."
612                                 },
613                                 "dialplan_app_data": {
614                                         "required": true,
615                                         "type": "string",
616                                         "description": "The data to be passed to the application."
617                                 }
618                         }
619                 },
620                 "ChannelCallerId": {
621                         "id": "ChannelCallerId",
622                         "description": "Channel changed Caller ID.",
623                         "properties": {
624                                 "caller_presentation": {
625                                         "required": true,
626                                         "type": "int",
627                                         "description": "The integer representation of the Caller Presentation value."
628                                 },
629                                 "caller_presentation_txt": {
630                                         "required": true,
631                                         "type": "string",
632                                         "description": "The text representation of the Caller Presentation value."
633                                 },
634                                 "channel": {
635                                         "required": true,
636                                         "type": "Channel",
637                                         "description": "The channel that changed Caller ID."
638                                 }
639                         }
640                 },
641                 "ChannelUserevent": {
642                         "id": "ChannelUserevent",
643                         "description": "User-generated event with additional user-defined fields in the object.",
644                         "properties": {
645                                 "eventname": {
646                                         "required": true,
647                                         "type": "string",
648                                         "description": "The name of the user event."
649                                 },
650                                 "channel": {
651                                         "required": false,
652                                         "type": "Channel",
653                                         "description": "A channel that is signaled with the user event."
654                                 },
655                                 "bridge": {
656                                         "required": false,
657                                         "type": "Bridge",
658                                         "description": "A bridge that is signaled with the user event."
659                                 },
660                                 "endpoint": {
661                                         "required": false,
662                                         "type": "Endpoint",
663                                         "description": "A endpoint that is signaled with the user event."
664                                 },
665                                 "userevent": {
666                                         "required": true,
667                                         "type": "object",
668                                         "description": "Custom Userevent data"
669                                 }
670                         }
671                 },
672                 "ChannelHangupRequest": {
673                         "id": "ChannelHangupRequest",
674                         "description": "A hangup was requested on the channel.",
675                         "properties": {
676                                 "cause": {
677                                         "type": "int",
678                                         "description": "Integer representation of the cause of the hangup."
679                                 },
680                                 "soft": {
681                                         "type": "boolean",
682                                         "description": "Whether the hangup request was a soft hangup request."
683                                 },
684                                 "channel": {
685                                         "required": true,
686                                         "type": "Channel",
687                                         "description": "The channel on which the hangup was requested."
688                                 }
689                         }
690                 },
691                 "ChannelVarset": {
692                         "id": "ChannelVarset",
693                         "description": "Channel variable changed.",
694                         "properties": {
695                                 "variable": {
696                                         "required": true,
697                                         "type": "string",
698                                         "description": "The variable that changed."
699                                 },
700                                 "value": {
701                                         "required": true,
702                                         "type": "string",
703                                         "description": "The new value of the variable."
704                                 },
705                                 "channel": {
706                                         "required": false,
707                                         "type": "Channel",
708                                         "description": "The channel on which the variable was set.\n\nIf missing, the variable is a global variable."
709                                 }
710                         }
711                 },
712                 "ChannelHold": {
713                         "id": "ChannelHold",
714                         "description": "A channel initiated a media hold.",
715                         "properties": {
716                                 "channel": {
717                                         "required": true,
718                                         "type": "Channel",
719                                         "description": "The channel that initiated the hold event."
720                                 },
721                                 "musicclass": {
722                                         "required": false,
723                                         "type": "string",
724                                         "description": "The music on hold class that the initiator requested."
725                                 }
726                         }
727                 },
728                 "ChannelUnhold": {
729                         "id": "ChannelUnhold",
730                         "description": "A channel initiated a media unhold.",
731                         "properties": {
732                                 "channel": {
733                                         "required": true,
734                                         "type": "Channel",
735                                         "description": "The channel that initiated the unhold event."
736                                 }
737                         }
738                 },
739                 "ChannelTalkingStarted": {
740                         "id": "ChannelTalkingStarted",
741                         "description": "Talking was detected on the channel.",
742                         "properties": {
743                                 "channel": {
744                                         "required": true,
745                                         "type": "Channel",
746                                         "description": "The channel on which talking started."
747                                 }
748                         }
749                 },
750                 "ChannelTalkingFinished": {
751                         "id": "ChannelTalkingFinished",
752                         "description": "Talking is no longer detected on the channel.",
753                         "properties": {
754                                 "channel": {
755                                         "required": true,
756                                         "type": "Channel",
757                                         "description": "The channel on which talking completed."
758                                 },
759                                 "duration": {
760                                         "required": true,
761                                         "type": "int",
762                                         "description": "The length of time, in milliseconds, that talking was detected on the channel"
763                                 }
764                         }
765                 },
766                 "ContactStatusChange": {
767                         "id": "ContactStatusChange",
768                         "description": "The state of a contact on an endpoint has changed.",
769                         "properties": {
770                                 "endpoint": {
771                                         "required": true,
772                                         "type": "Endpoint"
773                                 },
774                                 "contact_info": {
775                                         "required": true,
776                                         "type": "ContactInfo"
777                                 }
778                         }
779                 },
780                 "PeerStatusChange": {
781                         "id": "PeerStatusChange",
782                         "description": "The state of a peer associated with an endpoint has changed.",
783                         "properties": {
784                                 "endpoint": {
785                                         "required": true,
786                                         "type": "Endpoint"
787                                 },
788                                 "peer": {
789                                         "required": true,
790                                         "type": "Peer"
791                                 }
792                         }
793                 },
794                 "EndpointStateChange": {
795                         "id": "EndpointStateChange",
796                         "description": "Endpoint state changed.",
797                         "properties": {
798                                 "endpoint": {
799                                         "required": true,
800                                         "type": "Endpoint"
801                                 }
802                         }
803                 },
804                 "Dial": {
805                         "id": "Dial",
806                         "description": "Dialing state has changed.",
807                         "properties": {
808                                 "caller": {
809                                         "required": false,
810                                         "type": "Channel",
811                                         "description": "The calling channel."
812                                 },
813                                 "peer": {
814                                         "required": true,
815                                         "type": "Channel",
816                                         "description": "The dialed channel."
817                                 },
818                                 "forward": {
819                                         "required": false,
820                                         "type": "string",
821                                         "description": "Forwarding target requested by the original dialed channel."
822                                 },
823                                 "forwarded": {
824                                         "required": false,
825                                         "type": "Channel",
826                                         "description": "Channel that the caller has been forwarded to."
827                                 },
828                                 "dialstring": {
829                                         "required": false,
830                                         "type": "string",
831                                         "description": "The dial string for calling the peer channel."
832                                 },
833                                 "dialstatus": {
834                                         "required": true,
835                                         "type": "string",
836                                         "description": "Current status of the dialing attempt to the peer."
837                                 }
838                         }
839                 },
840                 "StasisEnd": {
841                         "id": "StasisEnd",
842                         "description": "Notification that a channel has left a Stasis application.",
843                         "properties": {
844                                 "channel": {
845                                         "required": true,
846                                         "type": "Channel"
847                                 }
848                         }
849                 },
850                 "StasisStart": {
851                         "id": "StasisStart",
852                         "description": "Notification that a channel has entered a Stasis application.",
853                         "properties": {
854                                 "args": {
855                                         "required": true,
856                                         "type": "List[string]",
857                                         "description": "Arguments to the application"
858                                 },
859                                 "channel": {
860                                         "required": true,
861                                         "type": "Channel"
862                                 },
863                                 "replace_channel": {
864                                         "required": false,
865                                         "type": "Channel"
866                                 }
867                         }
868                 },
869                 "TextMessageReceived": {
870                         "id": "TextMessageReceived",
871                         "description": "A text message was received from an endpoint.",
872                         "properties": {
873                                 "message": {
874                                         "required": true,
875                                         "type": "TextMessage"
876                                 },
877                                 "endpoint": {
878                                         "required": false,
879                                         "type": "Endpoint"
880                                 }
881                         }
882                 },
883                 "ChannelConnectedLine": {
884                         "id": "ChannelConnectedLine",
885                         "description": "Channel changed Connected Line.",
886                         "properties": {
887                                 "channel": {
888                                         "required": true,
889                                         "type": "Channel",
890                                         "description": "The channel whose connected line has changed."
891                                 }
892                         }
893                 }
894         }
895 }