-
Notifications
You must be signed in to change notification settings - Fork 74
/
ari.proto
96 lines (68 loc) · 2.65 KB
/
ari.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
syntax = "proto3";
package asterisk.ari;
option go_package = "ari";
import "google/protobuf/timestamp.proto";
// Key identifies a unique resource in the system
message Key {
// Kind indicates the type of resource the Key points to. e.g., "channel",
// "bridge", etc.
string kind = 1;
// ID indicates the unique identifier of the resource
string id = 2;
// Node indicates the unique identifier of the Asterisk node on which the
// resource exists or will be created
string node = 3;
// Dialog indicates a named scope of the resource, for receiving events
string dialog = 4;
// App indiciates the ARI application that this key is bound to.
string app = 5;
}
// CallerID describes the name and number which identifies the caller to other endpoints
message CallerID {
// Name is the name of the party
string name = 1;
// Number is the number of the party
string number = 2;
}
// ChannelData describes the data for a specific channel
message ChannelData {
// Key is the key of the channel
Key key = 1;
// Id is the unique ID for this channel (AMI-style)
string id = 2;
// Name is the name of this channel (tect/name-id)
string name = 3;
// State is the current state of the channel
string state = 4;
// Accountcode is the account code assigned to the channel
string accountcode = 5;
// Caller is the callerID of the calling endpoint
CallerID caller = 6;
// Connected is the callerID of the connected line, if applicable
CallerID connected = 7;
// Creationtime is the time at which the channel was created
google.protobuf.Timestamp creationtime = 8;
// Dialplan is the current location of the channel in the dialplan
DialplanCEP dialplan = 9;
// Language is the default spoken language for this channel
string language = 10;
// ChannelVars is the list of channel variables set on this channel
map<string, string> channel_vars = 11;
// ProtocolId is the protocol id from the underlying channel driver
// For chan_sip and PJSIP this will be the SIP packets Call-ID value
// Empty if not applicable or implemented by the driver
string protocol_id = 12;
}
// Dialplan describes a location in the Asterisk dialplan
message DialplanCEP {
// Context describes the section in the dialplan
string context = 1;
// Exten describes the label in the section of the dialplan
string exten = 2;
// Priority indicates the index at the label in the section of the dialplan
int64 priority = 3;
// AppName indicates the current dialplan application name
string app_name = 4;
// AppData indicates all data parameters passed to the dialplan AppName
string app_data = 5;
}