-
Notifications
You must be signed in to change notification settings - Fork 180
/
messageSIPStatusBody.ts
75 lines (62 loc) · 1.01 KB
/
messageSIPStatusBody.ts
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
import { CallStatus, CallDirection } from "@vonage/voice";
import { MessageSIPBody } from "./messageSIPBody";
/**
* SIP and RTC message body with status
*
* @remarks This is the same body for RTC and SIP
*/
export type MessageSIPStatusBody = {
/**
* Price for the call
*/
price: string;
/**
* Rate per minute
*/
rate: string;
/**
* Call duration
*/
duration: string;
/**
* Phone number
*/
to: string;
/**
* Phone number of the caller
*/
from: string;
/**
* Network code of the caller
*/
networkCode: string;
/**
* Time of the request
*/
requestTime: string;
/**
* Time of the start of the call
*/
startTime: string;
/**
* Time of the end of the call
*/
endTime: string;
/**
* Status of the call
*/
status: CallStatus;
/**
* Direction of the call
*/
direction: CallDirection;
/**
* State of the call
*/
state: {
/**
* Status of the call
*/
status: CallStatus;
}
} & MessageSIPBody;