|
@@ -1,3 +1,5 @@
|
|
1
|
+// User invite statuses
|
|
2
|
+
|
1
|
3
|
/**
|
2
|
4
|
* Тhe status for a participant when it's invited to a conference.
|
3
|
5
|
*
|
|
@@ -22,11 +24,50 @@ export const RINGING = 'Ringing';
|
22
|
24
|
|
23
|
25
|
/**
|
24
|
26
|
* A status for a participant that indicates the call is connected.
|
|
27
|
+ *
|
|
28
|
+ * @type {string}
|
|
29
|
+ */
|
|
30
|
+export const CONNECTED_USER = 'connected';
|
|
31
|
+
|
|
32
|
+/**
|
|
33
|
+ * The status for a participant when the invitation is received but the user
|
|
34
|
+ * has responded with busy message.
|
|
35
|
+ *
|
|
36
|
+ * @type {string}
|
|
37
|
+ */
|
|
38
|
+export const BUSY = 'Busy';
|
|
39
|
+
|
|
40
|
+/**
|
|
41
|
+ * The status for a participant when the invitation is rejected.
|
|
42
|
+ *
|
|
43
|
+ * @type {string}
|
|
44
|
+ */
|
|
45
|
+export const REJECTED = 'Rejected';
|
|
46
|
+
|
|
47
|
+/**
|
|
48
|
+ * The status for a participant when the invitation is ignored.
|
|
49
|
+ *
|
|
50
|
+ * @type {string}
|
|
51
|
+ */
|
|
52
|
+export const IGNORED = 'Ignored';
|
|
53
|
+
|
|
54
|
+/**
|
|
55
|
+ * The status for a participant when the invitation is expired.
|
|
56
|
+ *
|
|
57
|
+ * @type {string}
|
|
58
|
+ */
|
|
59
|
+export const EXPIRED = 'Expired';
|
|
60
|
+
|
|
61
|
+// Phone call statuses
|
|
62
|
+
|
|
63
|
+/**
|
|
64
|
+ * A status for a participant that indicates the call is in process of
|
|
65
|
+ * initialization.
|
25
|
66
|
* NOTE: Currently used for phone numbers only.
|
26
|
67
|
*
|
27
|
68
|
* @type {string}
|
28
|
69
|
*/
|
29
|
|
-export const CONNECTED = 'Connected';
|
|
70
|
+export const INITIALIZING_CALL = 'Initializing Call';
|
30
|
71
|
|
31
|
72
|
/**
|
32
|
73
|
* A status for a participant that indicates the call is in process of
|
|
@@ -38,20 +79,30 @@ export const CONNECTED = 'Connected';
|
38
|
79
|
export const CONNECTING = 'Connecting';
|
39
|
80
|
|
40
|
81
|
/**
|
41
|
|
- * The status for a participant when the invitation is received but the user
|
42
|
|
- * has responded with busy message.
|
|
82
|
+ * A status for a participant that indicates the call is in process of
|
|
83
|
+ * connecting.
|
|
84
|
+ * NOTE: Currently used for phone numbers only.
|
|
85
|
+ *
|
|
86
|
+ * @type {string}
|
43
|
87
|
*/
|
44
|
|
-export const BUSY = 'Busy';
|
|
88
|
+export const CONNECTING2 = 'Connecting*';
|
|
89
|
+
|
45
|
90
|
|
46
|
91
|
/**
|
47
|
|
- * The status for a participant when the invitation is rejected.
|
|
92
|
+ * A status for a phone number participant that indicates the call is connected.
|
|
93
|
+ *
|
|
94
|
+ * @type {string}
|
48
|
95
|
*/
|
49
|
|
-export const REJECTED = 'Rejected';
|
|
96
|
+export const CONNECTED_PHONE_NUMBER = 'Connected';
|
|
97
|
+
|
50
|
98
|
|
51
|
99
|
/**
|
52
|
|
- * The status for a participant when the invitation is ignored.
|
|
100
|
+ * A status for a participant that indicates the call is disconnected.
|
|
101
|
+ * NOTE: Currently used for phone numbers only.
|
|
102
|
+ *
|
|
103
|
+ * @type {string}
|
53
|
104
|
*/
|
54
|
|
-export const IGNORED = 'Ignored';
|
|
105
|
+export const DISCONNECTED = 'Disconnected';
|
55
|
106
|
|
56
|
107
|
/**
|
57
|
108
|
* Maps the presence status values to i18n translation keys.
|
|
@@ -59,12 +110,17 @@ export const IGNORED = 'Ignored';
|
59
|
110
|
* @type {Object<String, String>}
|
60
|
111
|
*/
|
61
|
112
|
export const STATUS_TO_I18N_KEY = {
|
62
|
|
- 'Invited': 'presenceStatus.invited',
|
63
|
|
- 'Ringing': 'presenceStatus.ringing',
|
64
|
|
- 'Calling': 'presenceStatus.calling',
|
65
|
|
- 'Connected': 'presenceStatus.connected',
|
66
|
|
- 'Connecting': 'presenceStatus.connecting',
|
67
|
|
- 'Busy': 'presenceStatus.busy',
|
68
|
|
- 'Rejected': 'presenceStatus.rejected',
|
69
|
|
- 'Ignored': 'presenceStatus.ignored'
|
|
113
|
+ [INVITED]: 'presenceStatus.invited',
|
|
114
|
+ [RINGING]: 'presenceStatus.ringing',
|
|
115
|
+ [CALLING]: 'presenceStatus.calling',
|
|
116
|
+ [BUSY]: 'presenceStatus.busy',
|
|
117
|
+ [REJECTED]: 'presenceStatus.rejected',
|
|
118
|
+ [IGNORED]: 'presenceStatus.ignored',
|
|
119
|
+ [EXPIRED]: 'presenceStatus.expired',
|
|
120
|
+
|
|
121
|
+ [INITIALIZING_CALL]: 'presenceStatus.initializingCall',
|
|
122
|
+ [CONNECTING]: 'presenceStatus.connecting',
|
|
123
|
+ [CONNECTING2]: 'presenceStatus.connecting2',
|
|
124
|
+ [CONNECTED_PHONE_NUMBER]: 'presenceStatus.connected',
|
|
125
|
+ [DISCONNECTED]: 'presenceStatus.disconnected'
|
70
|
126
|
};
|