@ondewo/sip-client-nodejs 3.1.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +56 -14
- package/api/google/protobuf/empty_pb.js +7 -1
- package/api/google/protobuf/timestamp_pb.js +7 -1
- package/api/ondewo/sip/sip_grpc_pb.d.ts +140 -140
- package/api/ondewo/sip/sip_grpc_pb.js +121 -107
- package/api/ondewo/sip/sip_pb.d.ts +73 -50
- package/api/ondewo/sip/sip_pb.js +320 -156
- package/package.json +1 -1
- package/public-api.d.ts +3 -3
- package/public-api.js +3 -3
|
@@ -32,164 +32,173 @@ function deserialize_google_protobuf_Empty(buffer_arg) {
|
|
|
32
32
|
return google_protobuf_empty_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg));
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
function
|
|
36
|
-
if (!(arg instanceof ondewo_sip_sip_pb.
|
|
37
|
-
throw new Error('Expected argument of type ondewo.sip.
|
|
35
|
+
function serialize_ondewo_sip_SipEndCallRequest(arg) {
|
|
36
|
+
if (!(arg instanceof ondewo_sip_sip_pb.SipEndCallRequest)) {
|
|
37
|
+
throw new Error('Expected argument of type ondewo.sip.SipEndCallRequest');
|
|
38
38
|
}
|
|
39
39
|
return Buffer.from(arg.serializeBinary());
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
function
|
|
43
|
-
return ondewo_sip_sip_pb.
|
|
42
|
+
function deserialize_ondewo_sip_SipEndCallRequest(buffer_arg) {
|
|
43
|
+
return ondewo_sip_sip_pb.SipEndCallRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
function
|
|
47
|
-
if (!(arg instanceof ondewo_sip_sip_pb.
|
|
48
|
-
throw new Error('Expected argument of type ondewo.sip.
|
|
46
|
+
function serialize_ondewo_sip_SipPlayWavFilesRequest(arg) {
|
|
47
|
+
if (!(arg instanceof ondewo_sip_sip_pb.SipPlayWavFilesRequest)) {
|
|
48
|
+
throw new Error('Expected argument of type ondewo.sip.SipPlayWavFilesRequest');
|
|
49
49
|
}
|
|
50
50
|
return Buffer.from(arg.serializeBinary());
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
function
|
|
54
|
-
return ondewo_sip_sip_pb.
|
|
53
|
+
function deserialize_ondewo_sip_SipPlayWavFilesRequest(buffer_arg) {
|
|
54
|
+
return ondewo_sip_sip_pb.SipPlayWavFilesRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
function
|
|
58
|
-
if (!(arg instanceof ondewo_sip_sip_pb.
|
|
59
|
-
throw new Error('Expected argument of type ondewo.sip.
|
|
57
|
+
function serialize_ondewo_sip_SipRegisterAccountRequest(arg) {
|
|
58
|
+
if (!(arg instanceof ondewo_sip_sip_pb.SipRegisterAccountRequest)) {
|
|
59
|
+
throw new Error('Expected argument of type ondewo.sip.SipRegisterAccountRequest');
|
|
60
60
|
}
|
|
61
61
|
return Buffer.from(arg.serializeBinary());
|
|
62
62
|
}
|
|
63
63
|
|
|
64
|
-
function
|
|
65
|
-
return ondewo_sip_sip_pb.
|
|
64
|
+
function deserialize_ondewo_sip_SipRegisterAccountRequest(buffer_arg) {
|
|
65
|
+
return ondewo_sip_sip_pb.SipRegisterAccountRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
function
|
|
69
|
-
if (!(arg instanceof ondewo_sip_sip_pb.
|
|
70
|
-
throw new Error('Expected argument of type ondewo.sip.
|
|
68
|
+
function serialize_ondewo_sip_SipStartCallRequest(arg) {
|
|
69
|
+
if (!(arg instanceof ondewo_sip_sip_pb.SipStartCallRequest)) {
|
|
70
|
+
throw new Error('Expected argument of type ondewo.sip.SipStartCallRequest');
|
|
71
71
|
}
|
|
72
72
|
return Buffer.from(arg.serializeBinary());
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
function
|
|
76
|
-
return ondewo_sip_sip_pb.
|
|
75
|
+
function deserialize_ondewo_sip_SipStartCallRequest(buffer_arg) {
|
|
76
|
+
return ondewo_sip_sip_pb.SipStartCallRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
function
|
|
80
|
-
if (!(arg instanceof ondewo_sip_sip_pb.
|
|
81
|
-
throw new Error('Expected argument of type ondewo.sip.
|
|
79
|
+
function serialize_ondewo_sip_SipStartSessionRequest(arg) {
|
|
80
|
+
if (!(arg instanceof ondewo_sip_sip_pb.SipStartSessionRequest)) {
|
|
81
|
+
throw new Error('Expected argument of type ondewo.sip.SipStartSessionRequest');
|
|
82
82
|
}
|
|
83
83
|
return Buffer.from(arg.serializeBinary());
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
function
|
|
87
|
-
return ondewo_sip_sip_pb.
|
|
86
|
+
function deserialize_ondewo_sip_SipStartSessionRequest(buffer_arg) {
|
|
87
|
+
return ondewo_sip_sip_pb.SipStartSessionRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
function
|
|
91
|
-
if (!(arg instanceof ondewo_sip_sip_pb.
|
|
92
|
-
throw new Error('Expected argument of type ondewo.sip.
|
|
90
|
+
function serialize_ondewo_sip_SipStatus(arg) {
|
|
91
|
+
if (!(arg instanceof ondewo_sip_sip_pb.SipStatus)) {
|
|
92
|
+
throw new Error('Expected argument of type ondewo.sip.SipStatus');
|
|
93
93
|
}
|
|
94
94
|
return Buffer.from(arg.serializeBinary());
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
function
|
|
98
|
-
return ondewo_sip_sip_pb.
|
|
97
|
+
function deserialize_ondewo_sip_SipStatus(buffer_arg) {
|
|
98
|
+
return ondewo_sip_sip_pb.SipStatus.deserializeBinary(new Uint8Array(buffer_arg));
|
|
99
99
|
}
|
|
100
100
|
|
|
101
|
-
function
|
|
102
|
-
if (!(arg instanceof ondewo_sip_sip_pb.
|
|
103
|
-
throw new Error('Expected argument of type ondewo.sip.
|
|
101
|
+
function serialize_ondewo_sip_SipStatusHistoryResponse(arg) {
|
|
102
|
+
if (!(arg instanceof ondewo_sip_sip_pb.SipStatusHistoryResponse)) {
|
|
103
|
+
throw new Error('Expected argument of type ondewo.sip.SipStatusHistoryResponse');
|
|
104
104
|
}
|
|
105
105
|
return Buffer.from(arg.serializeBinary());
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
function
|
|
109
|
-
return ondewo_sip_sip_pb.
|
|
108
|
+
function deserialize_ondewo_sip_SipStatusHistoryResponse(buffer_arg) {
|
|
109
|
+
return ondewo_sip_sip_pb.SipStatusHistoryResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
function
|
|
113
|
-
if (!(arg instanceof ondewo_sip_sip_pb.
|
|
114
|
-
throw new Error('Expected argument of type ondewo.sip.
|
|
112
|
+
function serialize_ondewo_sip_SipTransferCallRequest(arg) {
|
|
113
|
+
if (!(arg instanceof ondewo_sip_sip_pb.SipTransferCallRequest)) {
|
|
114
|
+
throw new Error('Expected argument of type ondewo.sip.SipTransferCallRequest');
|
|
115
115
|
}
|
|
116
116
|
return Buffer.from(arg.serializeBinary());
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
function
|
|
120
|
-
return ondewo_sip_sip_pb.
|
|
119
|
+
function deserialize_ondewo_sip_SipTransferCallRequest(buffer_arg) {
|
|
120
|
+
return ondewo_sip_sip_pb.SipTransferCallRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
121
121
|
}
|
|
122
122
|
|
|
123
123
|
|
|
124
|
+
// ONDEWO-SIP API available at <a href="https://github.com/ondewo/ondewo-sip-api>">GitHub</a>
|
|
124
125
|
var SipService = exports.SipService = {
|
|
125
|
-
|
|
126
|
-
|
|
126
|
+
// Starts a new SIP session for an account registered at a SIP server. <code>RegisterAccount</code> need to be called before.
|
|
127
|
+
sipStartSession: {
|
|
128
|
+
path: '/ondewo.sip.Sip/SipStartSession',
|
|
127
129
|
requestStream: false,
|
|
128
130
|
responseStream: false,
|
|
129
|
-
requestType: ondewo_sip_sip_pb.
|
|
130
|
-
responseType:
|
|
131
|
-
requestSerialize:
|
|
132
|
-
requestDeserialize:
|
|
133
|
-
responseSerialize:
|
|
134
|
-
responseDeserialize:
|
|
131
|
+
requestType: ondewo_sip_sip_pb.SipStartSessionRequest,
|
|
132
|
+
responseType: ondewo_sip_sip_pb.SipStatus,
|
|
133
|
+
requestSerialize: serialize_ondewo_sip_SipStartSessionRequest,
|
|
134
|
+
requestDeserialize: deserialize_ondewo_sip_SipStartSessionRequest,
|
|
135
|
+
responseSerialize: serialize_ondewo_sip_SipStatus,
|
|
136
|
+
responseDeserialize: deserialize_ondewo_sip_SipStatus,
|
|
135
137
|
},
|
|
136
|
-
|
|
137
|
-
|
|
138
|
+
// Ends a SIP session for an account registered at a SIP server
|
|
139
|
+
sipEndSession: {
|
|
140
|
+
path: '/ondewo.sip.Sip/SipEndSession',
|
|
138
141
|
requestStream: false,
|
|
139
142
|
responseStream: false,
|
|
140
143
|
requestType: google_protobuf_empty_pb.Empty,
|
|
141
|
-
responseType:
|
|
144
|
+
responseType: ondewo_sip_sip_pb.SipStatus,
|
|
142
145
|
requestSerialize: serialize_google_protobuf_Empty,
|
|
143
146
|
requestDeserialize: deserialize_google_protobuf_Empty,
|
|
144
|
-
responseSerialize:
|
|
145
|
-
responseDeserialize:
|
|
147
|
+
responseSerialize: serialize_ondewo_sip_SipStatus,
|
|
148
|
+
responseDeserialize: deserialize_ondewo_sip_SipStatus,
|
|
146
149
|
},
|
|
147
|
-
|
|
148
|
-
|
|
150
|
+
// Starts a call in an active SIP session for an account registered at a SIP server
|
|
151
|
+
sipStartCall: {
|
|
152
|
+
path: '/ondewo.sip.Sip/SipStartCall',
|
|
149
153
|
requestStream: false,
|
|
150
154
|
responseStream: false,
|
|
151
|
-
requestType: ondewo_sip_sip_pb.
|
|
152
|
-
responseType:
|
|
153
|
-
requestSerialize:
|
|
154
|
-
requestDeserialize:
|
|
155
|
-
responseSerialize:
|
|
156
|
-
responseDeserialize:
|
|
155
|
+
requestType: ondewo_sip_sip_pb.SipStartCallRequest,
|
|
156
|
+
responseType: ondewo_sip_sip_pb.SipStatus,
|
|
157
|
+
requestSerialize: serialize_ondewo_sip_SipStartCallRequest,
|
|
158
|
+
requestDeserialize: deserialize_ondewo_sip_SipStartCallRequest,
|
|
159
|
+
responseSerialize: serialize_ondewo_sip_SipStatus,
|
|
160
|
+
responseDeserialize: deserialize_ondewo_sip_SipStatus,
|
|
157
161
|
},
|
|
158
|
-
|
|
159
|
-
|
|
162
|
+
// Ends a call in an active SIP session for an account registered at a SIP server
|
|
163
|
+
sipEndCall: {
|
|
164
|
+
path: '/ondewo.sip.Sip/SipEndCall',
|
|
160
165
|
requestStream: false,
|
|
161
166
|
responseStream: false,
|
|
162
|
-
requestType: ondewo_sip_sip_pb.
|
|
163
|
-
responseType:
|
|
164
|
-
requestSerialize:
|
|
165
|
-
requestDeserialize:
|
|
166
|
-
responseSerialize:
|
|
167
|
-
responseDeserialize:
|
|
167
|
+
requestType: ondewo_sip_sip_pb.SipEndCallRequest,
|
|
168
|
+
responseType: ondewo_sip_sip_pb.SipStatus,
|
|
169
|
+
requestSerialize: serialize_ondewo_sip_SipEndCallRequest,
|
|
170
|
+
requestDeserialize: deserialize_ondewo_sip_SipEndCallRequest,
|
|
171
|
+
responseSerialize: serialize_ondewo_sip_SipStatus,
|
|
172
|
+
responseDeserialize: deserialize_ondewo_sip_SipStatus,
|
|
168
173
|
},
|
|
169
|
-
|
|
170
|
-
|
|
174
|
+
// Transfers a call in an active SIP session for an account registered at a SIP server to
|
|
175
|
+
// another SIP account or phone number specified by <code>transfer_id</code>
|
|
176
|
+
sipTransferCall: {
|
|
177
|
+
path: '/ondewo.sip.Sip/SipTransferCall',
|
|
171
178
|
requestStream: false,
|
|
172
179
|
responseStream: false,
|
|
173
|
-
requestType: ondewo_sip_sip_pb.
|
|
174
|
-
responseType:
|
|
175
|
-
requestSerialize:
|
|
176
|
-
requestDeserialize:
|
|
177
|
-
responseSerialize:
|
|
178
|
-
responseDeserialize:
|
|
180
|
+
requestType: ondewo_sip_sip_pb.SipTransferCallRequest,
|
|
181
|
+
responseType: ondewo_sip_sip_pb.SipStatus,
|
|
182
|
+
requestSerialize: serialize_ondewo_sip_SipTransferCallRequest,
|
|
183
|
+
requestDeserialize: deserialize_ondewo_sip_SipTransferCallRequest,
|
|
184
|
+
responseSerialize: serialize_ondewo_sip_SipStatus,
|
|
185
|
+
responseDeserialize: deserialize_ondewo_sip_SipStatus,
|
|
179
186
|
},
|
|
180
|
-
|
|
181
|
-
|
|
187
|
+
// Registers s SIP account at a SIP server
|
|
188
|
+
sipRegisterAccount: {
|
|
189
|
+
path: '/ondewo.sip.Sip/SipRegisterAccount',
|
|
182
190
|
requestStream: false,
|
|
183
191
|
responseStream: false,
|
|
184
|
-
requestType: ondewo_sip_sip_pb.
|
|
185
|
-
responseType:
|
|
186
|
-
requestSerialize:
|
|
187
|
-
requestDeserialize:
|
|
188
|
-
responseSerialize:
|
|
189
|
-
responseDeserialize:
|
|
192
|
+
requestType: ondewo_sip_sip_pb.SipRegisterAccountRequest,
|
|
193
|
+
responseType: ondewo_sip_sip_pb.SipStatus,
|
|
194
|
+
requestSerialize: serialize_ondewo_sip_SipRegisterAccountRequest,
|
|
195
|
+
requestDeserialize: deserialize_ondewo_sip_SipRegisterAccountRequest,
|
|
196
|
+
responseSerialize: serialize_ondewo_sip_SipStatus,
|
|
197
|
+
responseDeserialize: deserialize_ondewo_sip_SipStatus,
|
|
190
198
|
},
|
|
191
|
-
|
|
192
|
-
|
|
199
|
+
// Gets the current SIP status
|
|
200
|
+
sipGetSipStatus: {
|
|
201
|
+
path: '/ondewo.sip.Sip/SipGetSipStatus',
|
|
193
202
|
requestStream: false,
|
|
194
203
|
responseStream: false,
|
|
195
204
|
requestType: google_protobuf_empty_pb.Empty,
|
|
@@ -199,8 +208,9 @@ var SipService = exports.SipService = {
|
|
|
199
208
|
responseSerialize: serialize_ondewo_sip_SipStatus,
|
|
200
209
|
responseDeserialize: deserialize_ondewo_sip_SipStatus,
|
|
201
210
|
},
|
|
202
|
-
|
|
203
|
-
|
|
211
|
+
// Gets the history of SIP status
|
|
212
|
+
sipGetSipStatusHistory: {
|
|
213
|
+
path: '/ondewo.sip.Sip/SipGetSipStatusHistory',
|
|
204
214
|
requestStream: false,
|
|
205
215
|
responseStream: false,
|
|
206
216
|
requestType: google_protobuf_empty_pb.Empty,
|
|
@@ -210,39 +220,43 @@ var SipService = exports.SipService = {
|
|
|
210
220
|
responseSerialize: serialize_ondewo_sip_SipStatusHistoryResponse,
|
|
211
221
|
responseDeserialize: deserialize_ondewo_sip_SipStatusHistoryResponse,
|
|
212
222
|
},
|
|
213
|
-
|
|
214
|
-
|
|
223
|
+
// Plays wav files during an ongoing call of an active SIP session
|
|
224
|
+
sipPlayWavFiles: {
|
|
225
|
+
path: '/ondewo.sip.Sip/SipPlayWavFiles',
|
|
215
226
|
requestStream: false,
|
|
216
227
|
responseStream: false,
|
|
217
|
-
requestType: ondewo_sip_sip_pb.
|
|
218
|
-
responseType:
|
|
219
|
-
requestSerialize:
|
|
220
|
-
requestDeserialize:
|
|
221
|
-
responseSerialize:
|
|
222
|
-
responseDeserialize:
|
|
228
|
+
requestType: ondewo_sip_sip_pb.SipPlayWavFilesRequest,
|
|
229
|
+
responseType: ondewo_sip_sip_pb.SipStatus,
|
|
230
|
+
requestSerialize: serialize_ondewo_sip_SipPlayWavFilesRequest,
|
|
231
|
+
requestDeserialize: deserialize_ondewo_sip_SipPlayWavFilesRequest,
|
|
232
|
+
responseSerialize: serialize_ondewo_sip_SipStatus,
|
|
233
|
+
responseDeserialize: deserialize_ondewo_sip_SipStatus,
|
|
223
234
|
},
|
|
224
|
-
|
|
225
|
-
|
|
235
|
+
// Mutes the microphone in an ongoing call of an active SIP session
|
|
236
|
+
sipMute: {
|
|
237
|
+
path: '/ondewo.sip.Sip/SipMute',
|
|
226
238
|
requestStream: false,
|
|
227
239
|
responseStream: false,
|
|
228
240
|
requestType: google_protobuf_empty_pb.Empty,
|
|
229
|
-
responseType:
|
|
241
|
+
responseType: ondewo_sip_sip_pb.SipStatus,
|
|
230
242
|
requestSerialize: serialize_google_protobuf_Empty,
|
|
231
243
|
requestDeserialize: deserialize_google_protobuf_Empty,
|
|
232
|
-
responseSerialize:
|
|
233
|
-
responseDeserialize:
|
|
244
|
+
responseSerialize: serialize_ondewo_sip_SipStatus,
|
|
245
|
+
responseDeserialize: deserialize_ondewo_sip_SipStatus,
|
|
234
246
|
},
|
|
235
|
-
|
|
236
|
-
|
|
247
|
+
// Un-mutes the microphone in an ongoing call of an active SIP session
|
|
248
|
+
sipUnMute: {
|
|
249
|
+
path: '/ondewo.sip.Sip/SipUnMute',
|
|
237
250
|
requestStream: false,
|
|
238
251
|
responseStream: false,
|
|
239
252
|
requestType: google_protobuf_empty_pb.Empty,
|
|
240
|
-
responseType:
|
|
253
|
+
responseType: ondewo_sip_sip_pb.SipStatus,
|
|
241
254
|
requestSerialize: serialize_google_protobuf_Empty,
|
|
242
255
|
requestDeserialize: deserialize_google_protobuf_Empty,
|
|
243
|
-
responseSerialize:
|
|
244
|
-
responseDeserialize:
|
|
256
|
+
responseSerialize: serialize_ondewo_sip_SipStatus,
|
|
257
|
+
responseDeserialize: deserialize_ondewo_sip_SipStatus,
|
|
245
258
|
},
|
|
246
259
|
};
|
|
247
260
|
|
|
248
261
|
exports.SipClient = grpc.makeGenericClientConstructor(SipService);
|
|
262
|
+
// SIP LifeCycle is explained at <a href="https://thanhloi2603.wordpress.com/2017/06/10/sip-lifecycle-overview/">here</a>
|
|
@@ -8,44 +8,44 @@ import * as jspb from "google-protobuf";
|
|
|
8
8
|
import * as google_protobuf_empty_pb from "google-protobuf/google/protobuf/empty_pb";
|
|
9
9
|
import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
|
|
10
10
|
|
|
11
|
-
export class
|
|
11
|
+
export class SipEndCallRequest extends jspb.Message {
|
|
12
12
|
getHardHangup(): boolean;
|
|
13
|
-
setHardHangup(value: boolean):
|
|
13
|
+
setHardHangup(value: boolean): SipEndCallRequest;
|
|
14
14
|
|
|
15
15
|
serializeBinary(): Uint8Array;
|
|
16
|
-
toObject(includeInstance?: boolean):
|
|
17
|
-
static toObject(includeInstance: boolean, msg:
|
|
16
|
+
toObject(includeInstance?: boolean): SipEndCallRequest.AsObject;
|
|
17
|
+
static toObject(includeInstance: boolean, msg: SipEndCallRequest): SipEndCallRequest.AsObject;
|
|
18
18
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
19
19
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
20
|
-
static serializeBinaryToWriter(message:
|
|
21
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
22
|
-
static deserializeBinaryFromReader(message:
|
|
20
|
+
static serializeBinaryToWriter(message: SipEndCallRequest, writer: jspb.BinaryWriter): void;
|
|
21
|
+
static deserializeBinary(bytes: Uint8Array): SipEndCallRequest;
|
|
22
|
+
static deserializeBinaryFromReader(message: SipEndCallRequest, reader: jspb.BinaryReader): SipEndCallRequest;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
export namespace
|
|
25
|
+
export namespace SipEndCallRequest {
|
|
26
26
|
export type AsObject = {
|
|
27
27
|
hardHangup: boolean,
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
export class
|
|
31
|
+
export class SipStartCallRequest extends jspb.Message {
|
|
32
32
|
getCalleeId(): string;
|
|
33
|
-
setCalleeId(value: string):
|
|
33
|
+
setCalleeId(value: string): SipStartCallRequest;
|
|
34
34
|
|
|
35
35
|
getHeadersMap(): jspb.Map<string, string>;
|
|
36
36
|
clearHeadersMap(): void;
|
|
37
37
|
|
|
38
38
|
serializeBinary(): Uint8Array;
|
|
39
|
-
toObject(includeInstance?: boolean):
|
|
40
|
-
static toObject(includeInstance: boolean, msg:
|
|
39
|
+
toObject(includeInstance?: boolean): SipStartCallRequest.AsObject;
|
|
40
|
+
static toObject(includeInstance: boolean, msg: SipStartCallRequest): SipStartCallRequest.AsObject;
|
|
41
41
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
42
42
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
43
|
-
static serializeBinaryToWriter(message:
|
|
44
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
45
|
-
static deserializeBinaryFromReader(message:
|
|
43
|
+
static serializeBinaryToWriter(message: SipStartCallRequest, writer: jspb.BinaryWriter): void;
|
|
44
|
+
static deserializeBinary(bytes: Uint8Array): SipStartCallRequest;
|
|
45
|
+
static deserializeBinaryFromReader(message: SipStartCallRequest, reader: jspb.BinaryReader): SipStartCallRequest;
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
export namespace
|
|
48
|
+
export namespace SipStartCallRequest {
|
|
49
49
|
export type AsObject = {
|
|
50
50
|
calleeId: string,
|
|
51
51
|
|
|
@@ -53,70 +53,76 @@ export namespace StartCallRequest {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
export class
|
|
56
|
+
export class SipRegisterAccountRequest extends jspb.Message {
|
|
57
57
|
getAccountName(): string;
|
|
58
|
-
setAccountName(value: string):
|
|
58
|
+
setAccountName(value: string): SipRegisterAccountRequest;
|
|
59
59
|
getPassword(): string;
|
|
60
|
-
setPassword(value: string):
|
|
60
|
+
setPassword(value: string): SipRegisterAccountRequest;
|
|
61
|
+
getAuthUsername(): string;
|
|
62
|
+
setAuthUsername(value: string): SipRegisterAccountRequest;
|
|
63
|
+
getOutboundProxy(): string;
|
|
64
|
+
setOutboundProxy(value: string): SipRegisterAccountRequest;
|
|
61
65
|
|
|
62
66
|
serializeBinary(): Uint8Array;
|
|
63
|
-
toObject(includeInstance?: boolean):
|
|
64
|
-
static toObject(includeInstance: boolean, msg:
|
|
67
|
+
toObject(includeInstance?: boolean): SipRegisterAccountRequest.AsObject;
|
|
68
|
+
static toObject(includeInstance: boolean, msg: SipRegisterAccountRequest): SipRegisterAccountRequest.AsObject;
|
|
65
69
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
66
70
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
67
|
-
static serializeBinaryToWriter(message:
|
|
68
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
69
|
-
static deserializeBinaryFromReader(message:
|
|
71
|
+
static serializeBinaryToWriter(message: SipRegisterAccountRequest, writer: jspb.BinaryWriter): void;
|
|
72
|
+
static deserializeBinary(bytes: Uint8Array): SipRegisterAccountRequest;
|
|
73
|
+
static deserializeBinaryFromReader(message: SipRegisterAccountRequest, reader: jspb.BinaryReader): SipRegisterAccountRequest;
|
|
70
74
|
}
|
|
71
75
|
|
|
72
|
-
export namespace
|
|
76
|
+
export namespace SipRegisterAccountRequest {
|
|
73
77
|
export type AsObject = {
|
|
74
78
|
accountName: string,
|
|
75
79
|
password: string,
|
|
80
|
+
authUsername: string,
|
|
81
|
+
outboundProxy: string,
|
|
76
82
|
}
|
|
77
83
|
}
|
|
78
84
|
|
|
79
|
-
export class
|
|
85
|
+
export class SipStartSessionRequest extends jspb.Message {
|
|
80
86
|
getAccountName(): string;
|
|
81
|
-
setAccountName(value: string):
|
|
87
|
+
setAccountName(value: string): SipStartSessionRequest;
|
|
82
88
|
getAutoAnswerInterval(): number;
|
|
83
|
-
setAutoAnswerInterval(value: number):
|
|
89
|
+
setAutoAnswerInterval(value: number): SipStartSessionRequest;
|
|
84
90
|
|
|
85
91
|
serializeBinary(): Uint8Array;
|
|
86
|
-
toObject(includeInstance?: boolean):
|
|
87
|
-
static toObject(includeInstance: boolean, msg:
|
|
92
|
+
toObject(includeInstance?: boolean): SipStartSessionRequest.AsObject;
|
|
93
|
+
static toObject(includeInstance: boolean, msg: SipStartSessionRequest): SipStartSessionRequest.AsObject;
|
|
88
94
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
89
95
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
90
|
-
static serializeBinaryToWriter(message:
|
|
91
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
92
|
-
static deserializeBinaryFromReader(message:
|
|
96
|
+
static serializeBinaryToWriter(message: SipStartSessionRequest, writer: jspb.BinaryWriter): void;
|
|
97
|
+
static deserializeBinary(bytes: Uint8Array): SipStartSessionRequest;
|
|
98
|
+
static deserializeBinaryFromReader(message: SipStartSessionRequest, reader: jspb.BinaryReader): SipStartSessionRequest;
|
|
93
99
|
}
|
|
94
100
|
|
|
95
|
-
export namespace
|
|
101
|
+
export namespace SipStartSessionRequest {
|
|
96
102
|
export type AsObject = {
|
|
97
103
|
accountName: string,
|
|
98
104
|
autoAnswerInterval: number,
|
|
99
105
|
}
|
|
100
106
|
}
|
|
101
107
|
|
|
102
|
-
export class
|
|
108
|
+
export class SipTransferCallRequest extends jspb.Message {
|
|
103
109
|
getTransferId(): string;
|
|
104
|
-
setTransferId(value: string):
|
|
110
|
+
setTransferId(value: string): SipTransferCallRequest;
|
|
105
111
|
|
|
106
112
|
getHeadersMap(): jspb.Map<string, string>;
|
|
107
113
|
clearHeadersMap(): void;
|
|
108
114
|
|
|
109
115
|
serializeBinary(): Uint8Array;
|
|
110
|
-
toObject(includeInstance?: boolean):
|
|
111
|
-
static toObject(includeInstance: boolean, msg:
|
|
116
|
+
toObject(includeInstance?: boolean): SipTransferCallRequest.AsObject;
|
|
117
|
+
static toObject(includeInstance: boolean, msg: SipTransferCallRequest): SipTransferCallRequest.AsObject;
|
|
112
118
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
113
119
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
114
|
-
static serializeBinaryToWriter(message:
|
|
115
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
116
|
-
static deserializeBinaryFromReader(message:
|
|
120
|
+
static serializeBinaryToWriter(message: SipTransferCallRequest, writer: jspb.BinaryWriter): void;
|
|
121
|
+
static deserializeBinary(bytes: Uint8Array): SipTransferCallRequest;
|
|
122
|
+
static deserializeBinaryFromReader(message: SipTransferCallRequest, reader: jspb.BinaryReader): SipTransferCallRequest;
|
|
117
123
|
}
|
|
118
124
|
|
|
119
|
-
export namespace
|
|
125
|
+
export namespace SipTransferCallRequest {
|
|
120
126
|
export type AsObject = {
|
|
121
127
|
transferId: string,
|
|
122
128
|
|
|
@@ -141,6 +147,12 @@ export class SipStatus extends jspb.Message {
|
|
|
141
147
|
|
|
142
148
|
getHeadersMap(): jspb.Map<string, string>;
|
|
143
149
|
clearHeadersMap(): void;
|
|
150
|
+
getDescription(): string;
|
|
151
|
+
setDescription(value: string): SipStatus;
|
|
152
|
+
getExceptionName(): string;
|
|
153
|
+
setExceptionName(value: string): SipStatus;
|
|
154
|
+
getExceptionTraceback(): string;
|
|
155
|
+
setExceptionTraceback(value: string): SipStatus;
|
|
144
156
|
|
|
145
157
|
serializeBinary(): Uint8Array;
|
|
146
158
|
toObject(includeInstance?: boolean): SipStatus.AsObject;
|
|
@@ -161,6 +173,9 @@ export namespace SipStatus {
|
|
|
161
173
|
transferCallId: string,
|
|
162
174
|
|
|
163
175
|
headersMap: Array<[string, string]>,
|
|
176
|
+
description: string,
|
|
177
|
+
exceptionName: string,
|
|
178
|
+
exceptionTraceback: string,
|
|
164
179
|
}
|
|
165
180
|
|
|
166
181
|
export enum StatusType {
|
|
@@ -178,6 +193,14 @@ export namespace SipStatus {
|
|
|
178
193
|
OUTGOING_CALL_FAILED = 11,
|
|
179
194
|
INCOMING_CALL_FINISHED = 12,
|
|
180
195
|
OUTGOING_CALL_FINISHED = 13,
|
|
196
|
+
SESSION_REGISTRATION_FAILED = 14,
|
|
197
|
+
SESSION_STARTED = 15,
|
|
198
|
+
SESSION_ENDED = 16,
|
|
199
|
+
TRANSFER_CALL_FAILED = 17,
|
|
200
|
+
MICROPHONE_MUTED = 18,
|
|
201
|
+
MICROPHONE_UNMUTED = 19,
|
|
202
|
+
MICROPHONE_WAV_FILES_PLAYED = 20,
|
|
203
|
+
NO_ONGOING_CALL = 21,
|
|
181
204
|
}
|
|
182
205
|
|
|
183
206
|
}
|
|
@@ -204,25 +227,25 @@ export namespace SipStatusHistoryResponse {
|
|
|
204
227
|
}
|
|
205
228
|
}
|
|
206
229
|
|
|
207
|
-
export class
|
|
230
|
+
export class SipPlayWavFilesRequest extends jspb.Message {
|
|
208
231
|
clearWavFilesList(): void;
|
|
209
232
|
getWavFilesList(): Array<Uint8Array | string>;
|
|
210
233
|
getWavFilesList_asU8(): Array<Uint8Array>;
|
|
211
234
|
getWavFilesList_asB64(): Array<string>;
|
|
212
|
-
setWavFilesList(value: Array<Uint8Array | string>):
|
|
235
|
+
setWavFilesList(value: Array<Uint8Array | string>): SipPlayWavFilesRequest;
|
|
213
236
|
addWavFiles(value: Uint8Array | string, index?: number): Uint8Array | string;
|
|
214
237
|
|
|
215
238
|
serializeBinary(): Uint8Array;
|
|
216
|
-
toObject(includeInstance?: boolean):
|
|
217
|
-
static toObject(includeInstance: boolean, msg:
|
|
239
|
+
toObject(includeInstance?: boolean): SipPlayWavFilesRequest.AsObject;
|
|
240
|
+
static toObject(includeInstance: boolean, msg: SipPlayWavFilesRequest): SipPlayWavFilesRequest.AsObject;
|
|
218
241
|
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
219
242
|
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
220
|
-
static serializeBinaryToWriter(message:
|
|
221
|
-
static deserializeBinary(bytes: Uint8Array):
|
|
222
|
-
static deserializeBinaryFromReader(message:
|
|
243
|
+
static serializeBinaryToWriter(message: SipPlayWavFilesRequest, writer: jspb.BinaryWriter): void;
|
|
244
|
+
static deserializeBinary(bytes: Uint8Array): SipPlayWavFilesRequest;
|
|
245
|
+
static deserializeBinaryFromReader(message: SipPlayWavFilesRequest, reader: jspb.BinaryReader): SipPlayWavFilesRequest;
|
|
223
246
|
}
|
|
224
247
|
|
|
225
|
-
export namespace
|
|
248
|
+
export namespace SipPlayWavFilesRequest {
|
|
226
249
|
export type AsObject = {
|
|
227
250
|
wavFilesList: Array<Uint8Array | string>,
|
|
228
251
|
}
|