-
Notifications
You must be signed in to change notification settings - Fork 3
/
example_events.json
61 lines (59 loc) · 1.51 KB
/
example_events.json
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
New Call, internal to external
{
"Event": "Newstate",
"CallerIDNum": "100",
"ConnectedLineNum": "<unknown>",
"Exten": "07712345678",
"CallerIDName": "DECT Phone",
"Context": "from-internal",
"ChannelStateDesc": "Ring",
"Channel": "SIP/100-00000375"
}
Another new call, external to internal
{
"Event": "Newstate",
"CallerIDNum": "07712345678",
"ConnectedLineNum": "+441234567890",
"Exten": "07712345678",
"CallerIDName": "CID:+441234567890",
"Context": "from-pstn",
"ChannelStateDesc": "Ringing",
"Channel": "SIP/Gamma-00000376"
}
Hangup events, both caused by different ends putting the phone down
{
"Event": "Hangup",
"AccountCode": "",
"Cause": "16",
"ConnectedLineName": "<unknown>",
"CallerIDNum": "07712345678",
"Cause-txt": "Normal Clearing",
"Priority": "1",
"Uniqueid": "1536090442.5339",
"ConnectedLineNum": "+441234567890",
"Exten": "07712345678",
"CallerIDName": "CID:+441234567890",
"Context": "from-pstn",
"Privilege": "call,all",
"ChannelState": "5",
"ChannelStateDesc": "Ringing",
"Channel": "SIP/Gamma-00000376"
}
{
"Event": "Hangup",
"AccountCode": "",
"Cause": "16",
"ConnectedLineName": "CID:+441234567890",
"CallerIDNum": "+441234567890",
"Cause-txt": "Normal Clearing",
"Priority": "1",
"Uniqueid": "1536090441.5337",
"ConnectedLineNum": "07712345678",
"Exten": "h",
"CallerIDName": "<unknown>",
"Context": "from-internal",
"Privilege": "call,all",
"ChannelState": "4",
"ChannelStateDesc": "Ring",
"Channel": "SIP/100-00000375"
}