-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path=0.13
170 lines (139 loc) · 5.11 KB
/
=0.13
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
Call Start Event
A Call Start Event is sent to the customer using HTTP protocol after call routing process is completed by DIDWW (destination determination process). SIP INVITE will originate from DIDWW to Call Destination.
HTTP request payload example:
{
"type": "outbound-call-start-event",
"id": "10-10282FC6-5F632C460006A397-AC8C7700",
"attributes": {
"source_ip" : "1.2.3.4",
"source_port": 5060,
"call_id" : "3eab288b2e0eb547122434ce0e648bb5",
"time_start": "2020-03-05T11:05:33.879559+00:00",
"pop": "NYC",
"original_src_number": "02089643990",
"src_number": "123439643990",
"dst_number": "441158720600",
"trunk_name": "Trunk 1",
"rate": "0.004",
"initial_billing_interval": 1,
"next_billing_interval": 1,
"p_charge_info": "<sip:[email protected];billing-account-id=212>",
"diversion" : [ "<sip:[email protected]>;reason=unconditional" ]
}
}
Call Connect Event
A Call Connect Event is sent to the customer using HTTP protocol after 200OK/Connect is received from call legB (Destination). If the call is terminated before a successful handshake (200OK), Call Connect event will not be sent to the customer’s endpoint.
HTTP request payload example:
{
"type": "outbound-call-connect-event",
"id": "10-10282FC6-5F632C460006A397-AC8C7700",
"attributes": {
"source_ip" : "1.2.3.4",
"source_port": 5060,
"call_id" : "3eab288b2e0eb547122434ce0e648bb5",
"time_start": "2020-03-05T11:05:33.879559+00:00",
"time_connect": "2020-03-05T11:05:38.879559+00:00",
"pop": "NYC",
"original_src_number": "02089643990",
"src_number": "123439643990",
"dst_number": "441158720600",
"trunk_name": "Trunk 1",
"rate": "0.004",
"initial_billing_interval": 1,
"next_billing_interval": 1,
"p_charge_info": "<sip:[email protected];billing-account-id=212>",
"diversion" : [ "<sip:[email protected]>;reason=unconditional" ]
}
}
Call End Event
A Call End Event is sent to the customer via HTTP protocol when the call is terminated in any way.
HTTP request payload example:
{
"type": "outbound-call-end-event",
"id": "10-10282FC6-5F632C460006A397-AC8C7700",
"attributes": {
"source_ip" : "1.2.3.4",
"source_port": 5060,
"call_id" : "3eab288b2e0eb547122434ce0e648bb5",
"time_start": "2020-03-05T11:05:33.879559+00:00",
"time_connect": "2020-03-05T11:05:38.879559+00:00",
"time_end": "2020-03-05T11:05:58.879559+00:00",
"duration": 10,
"pop": "NYC",
"original_src_number": "02089643990",
"src_number": "123439643990",
"dst_number": "441158720600",
"trunk_name": "Trunk 1",
"rate": "0.004",
"initial_billing_interval": 1,
"next_billing_interval": 1,
"p_charge_info": "<sip:[email protected];billing-account-id=212>",
"diversion" : [ "<sip:[email protected]>;reason=unconditional" ]
}
}
Description of Event attributes:
type
String
Event type. Possible values for Voice OUT Call Events are outbound-call-start-event, outbound-call-connect-event, outbound-call-end-event
id
String
Unique call identifier. All events related to the same call will contain the same id value.
attributes
Hash
Structure contains all the CDR attributes. See description below.
source_ip
String
IP address of the call originator.
source_port
Integer
Port of the call originator.
call_id
String
SIP Call-ID of the call leg between customer’s equipment and DIDWW. All events related to the same call will contain the same call_id value.
time_start
Timestamp
Start time when the initial INVITE is received.
time_connect
Timestamp
Time of the successful handshake (200OK SIP). For non-connected calls outbound-call-connect-event will not be originated and time_connect attribute at outbound-call-end-event will be null.
time_end
Timestamp
Call disconnection time.
duration
Integer
Call duration in seconds. For non-connected calls the duration is 0.
pop
String
Location of the DIDWW equipment that processed the call. See DIDWW Point of Presence. Possible values:
NYC USA New-York
LAC USA Los Angeles
MIA USA Miami
FRA Germany, Frankfurt
SG - Singapore
original_src_number
String
Incoming Caller-ID.
src_number
String
Incoming Caller-ID after applying rewrites.
dst_number
String
Call destination number.
trunk_name
String
Outbound trunk friendly name.
rate
Numeric
Customer’s outbound call termination rate.
initial_billing_interval
Integer
Initial billing interval for the outbound call termination.
next_billing_interval
Integer
Next billing interval for the outbound call termination.
p_charge_info
String
P-Charge-Info header value is received from the call originator. This header allows customers to add custom information to DIDWW CDR for technical and/or billing purposes. See Service description for more details.
diversion
Array of Strings
Diversion header values are received from the call originator. Diversion headers order in INVITE request is preserved.