@ondewo/sip-client-angular 4.0.0 → 5.1.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 +64 -13
- package/api/ondewo/sip/sip.pb.d.ts +225 -220
- package/api/ondewo/sip/sip.pbsc.d.ts +44 -44
- package/esm2022/api/ondewo/sip/sip.pb.mjs +1495 -0
- package/esm2022/api/ondewo/sip/sip.pbsc.mjs +375 -0
- package/{esm2020 → esm2022}/public-api.mjs +2 -2
- package/{fesm2020 → fesm2022}/ondewo-sip-client-angular.mjs +302 -271
- package/fesm2022/ondewo-sip-client-angular.mjs.map +1 -0
- package/package.json +9 -15
- package/public-api.d.ts +1 -1
- package/esm2020/api/ondewo/sip/sip.pb.mjs +0 -1479
- package/esm2020/api/ondewo/sip/sip.pbsc.mjs +0 -375
- package/fesm2015/ondewo-sip-client-angular.mjs +0 -1856
- package/fesm2015/ondewo-sip-client-angular.mjs.map +0 -1
- package/fesm2020/ondewo-sip-client-angular.mjs.map +0 -1
- package/ondewo-sip-api/README.md +0 -86
- /package/{esm2020 → esm2022}/api/ondewo/sip/sip.pbconf.mjs +0 -0
- /package/{esm2020 → esm2022}/ondewo-sip-client-angular.mjs +0 -0
|
@@ -1,32 +1,41 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { InjectionToken, Injectable, Optional, Inject } from '@angular/core';
|
|
3
3
|
import { uint8ArrayToBase64, GrpcCallType, GrpcMetadata } from '@ngx-grpc/common';
|
|
4
|
-
import * as i1 from '@ngx-grpc/core';
|
|
5
|
-
import { throwStatusErrors, takeMessages, GRPC_CLIENT_FACTORY } from '@ngx-grpc/core';
|
|
6
4
|
import { BinaryReader, BinaryWriter } from 'google-protobuf';
|
|
7
5
|
import * as googleProtobuf000 from '@ngx-grpc/well-known-types';
|
|
6
|
+
import * as i1 from '@ngx-grpc/core';
|
|
7
|
+
import { throwStatusErrors, takeMessages, GRPC_CLIENT_FACTORY } from '@ngx-grpc/core';
|
|
8
8
|
|
|
9
9
|
/* tslint:disable */
|
|
10
|
+
/* eslint-disable */
|
|
11
|
+
// @ts-nocheck
|
|
12
|
+
//
|
|
13
|
+
// THIS IS A GENERATED FILE
|
|
14
|
+
// DO NOT MODIFY IT! YOUR CHANGES WILL BE LOST
|
|
10
15
|
/**
|
|
11
|
-
*
|
|
16
|
+
* Specific GrpcClientSettings for Sip.
|
|
17
|
+
* Use it only if your default settings are not set or the service requires other settings.
|
|
12
18
|
*/
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
const GRPC_SIP_CLIENT_SETTINGS = new InjectionToken('GRPC_SIP_CLIENT_SETTINGS');
|
|
20
|
+
|
|
21
|
+
/* tslint:disable */
|
|
22
|
+
/* eslint-disable */
|
|
23
|
+
// @ts-nocheck
|
|
24
|
+
//
|
|
25
|
+
// THIS IS A GENERATED FILE
|
|
26
|
+
// DO NOT MODIFY IT! YOUR CHANGES WILL BE LOST
|
|
27
|
+
/**
|
|
28
|
+
* Message implementation for ondewo.sip.SipEndCallRequest
|
|
29
|
+
*/
|
|
30
|
+
class SipEndCallRequest {
|
|
31
|
+
static { this.id = 'ondewo.sip.SipEndCallRequest'; }
|
|
23
32
|
/**
|
|
24
33
|
* Deserialize binary data to message
|
|
25
34
|
* @param instance message instance
|
|
26
35
|
*/
|
|
27
36
|
static deserializeBinary(bytes) {
|
|
28
|
-
const instance = new
|
|
29
|
-
|
|
37
|
+
const instance = new SipEndCallRequest();
|
|
38
|
+
SipEndCallRequest.deserializeBinaryFromReader(instance, new BinaryReader(bytes));
|
|
30
39
|
return instance;
|
|
31
40
|
}
|
|
32
41
|
/**
|
|
@@ -53,7 +62,7 @@ class EndCallRequest {
|
|
|
53
62
|
_reader.skipField();
|
|
54
63
|
}
|
|
55
64
|
}
|
|
56
|
-
|
|
65
|
+
SipEndCallRequest.refineValues(_instance);
|
|
57
66
|
}
|
|
58
67
|
/**
|
|
59
68
|
* Serializes a message to binary format using provided binary reader
|
|
@@ -65,6 +74,15 @@ class EndCallRequest {
|
|
|
65
74
|
_writer.writeBool(1, _instance.hardHangup);
|
|
66
75
|
}
|
|
67
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* Message constructor. Initializes the properties and applies default Protobuf values if necessary
|
|
79
|
+
* @param _value initial values object or instance of SipEndCallRequest to deeply clone from
|
|
80
|
+
*/
|
|
81
|
+
constructor(_value) {
|
|
82
|
+
_value = _value || {};
|
|
83
|
+
this.hardHangup = _value.hardHangup;
|
|
84
|
+
SipEndCallRequest.refineValues(this);
|
|
85
|
+
}
|
|
68
86
|
get hardHangup() {
|
|
69
87
|
return this._hardHangup;
|
|
70
88
|
}
|
|
@@ -77,7 +95,7 @@ class EndCallRequest {
|
|
|
77
95
|
*/
|
|
78
96
|
serializeBinary() {
|
|
79
97
|
const writer = new BinaryWriter();
|
|
80
|
-
|
|
98
|
+
SipEndCallRequest.serializeBinaryToWriter(this, writer);
|
|
81
99
|
return writer.getResultBuffer();
|
|
82
100
|
}
|
|
83
101
|
/**
|
|
@@ -107,30 +125,18 @@ class EndCallRequest {
|
|
|
107
125
|
};
|
|
108
126
|
}
|
|
109
127
|
}
|
|
110
|
-
EndCallRequest.id = 'ondewo.sip.EndCallRequest';
|
|
111
128
|
/**
|
|
112
|
-
* Message implementation for ondewo.sip.
|
|
129
|
+
* Message implementation for ondewo.sip.SipStartCallRequest
|
|
113
130
|
*/
|
|
114
|
-
class
|
|
115
|
-
|
|
116
|
-
* Message constructor. Initializes the properties and applies default Protobuf values if necessary
|
|
117
|
-
* @param _value initial values object or instance of StartCallRequest to deeply clone from
|
|
118
|
-
*/
|
|
119
|
-
constructor(_value) {
|
|
120
|
-
_value = _value || {};
|
|
121
|
-
this.calleeId = _value.calleeId;
|
|
122
|
-
(this.headers = _value.headers
|
|
123
|
-
? Object.keys(_value.headers).reduce((r, k) => ({ ...r, [k]: _value.headers[k] }), {})
|
|
124
|
-
: {}),
|
|
125
|
-
StartCallRequest.refineValues(this);
|
|
126
|
-
}
|
|
131
|
+
class SipStartCallRequest {
|
|
132
|
+
static { this.id = 'ondewo.sip.SipStartCallRequest'; }
|
|
127
133
|
/**
|
|
128
134
|
* Deserialize binary data to message
|
|
129
135
|
* @param instance message instance
|
|
130
136
|
*/
|
|
131
137
|
static deserializeBinary(bytes) {
|
|
132
|
-
const instance = new
|
|
133
|
-
|
|
138
|
+
const instance = new SipStartCallRequest();
|
|
139
|
+
SipStartCallRequest.deserializeBinaryFromReader(instance, new BinaryReader(bytes));
|
|
134
140
|
return instance;
|
|
135
141
|
}
|
|
136
142
|
/**
|
|
@@ -156,7 +162,7 @@ class StartCallRequest {
|
|
|
156
162
|
break;
|
|
157
163
|
case 2:
|
|
158
164
|
const msg_2 = {};
|
|
159
|
-
_reader.readMessage(msg_2,
|
|
165
|
+
_reader.readMessage(msg_2, SipStartCallRequest.HeadersEntry.deserializeBinaryFromReader);
|
|
160
166
|
_instance.headers = _instance.headers || {};
|
|
161
167
|
_instance.headers[msg_2.key] = msg_2.value;
|
|
162
168
|
break;
|
|
@@ -164,7 +170,7 @@ class StartCallRequest {
|
|
|
164
170
|
_reader.skipField();
|
|
165
171
|
}
|
|
166
172
|
}
|
|
167
|
-
|
|
173
|
+
SipStartCallRequest.refineValues(_instance);
|
|
168
174
|
}
|
|
169
175
|
/**
|
|
170
176
|
* Serializes a message to binary format using provided binary reader
|
|
@@ -181,10 +187,22 @@ class StartCallRequest {
|
|
|
181
187
|
const repeated_2 = keys_2
|
|
182
188
|
.map(key => ({ key: key, value: _instance.headers[key] }))
|
|
183
189
|
.reduce((r, v) => [...r, v], []);
|
|
184
|
-
_writer.writeRepeatedMessage(2, repeated_2,
|
|
190
|
+
_writer.writeRepeatedMessage(2, repeated_2, SipStartCallRequest.HeadersEntry.serializeBinaryToWriter);
|
|
185
191
|
}
|
|
186
192
|
}
|
|
187
193
|
}
|
|
194
|
+
/**
|
|
195
|
+
* Message constructor. Initializes the properties and applies default Protobuf values if necessary
|
|
196
|
+
* @param _value initial values object or instance of SipStartCallRequest to deeply clone from
|
|
197
|
+
*/
|
|
198
|
+
constructor(_value) {
|
|
199
|
+
_value = _value || {};
|
|
200
|
+
this.calleeId = _value.calleeId;
|
|
201
|
+
(this.headers = _value.headers
|
|
202
|
+
? Object.keys(_value.headers).reduce((r, k) => ({ ...r, [k]: _value.headers[k] }), {})
|
|
203
|
+
: {}),
|
|
204
|
+
SipStartCallRequest.refineValues(this);
|
|
205
|
+
}
|
|
188
206
|
get calleeId() {
|
|
189
207
|
return this._calleeId;
|
|
190
208
|
}
|
|
@@ -203,7 +221,7 @@ class StartCallRequest {
|
|
|
203
221
|
*/
|
|
204
222
|
serializeBinary() {
|
|
205
223
|
const writer = new BinaryWriter();
|
|
206
|
-
|
|
224
|
+
SipStartCallRequest.serializeBinaryToWriter(this, writer);
|
|
207
225
|
return writer.getResultBuffer();
|
|
208
226
|
}
|
|
209
227
|
/**
|
|
@@ -239,22 +257,12 @@ class StartCallRequest {
|
|
|
239
257
|
};
|
|
240
258
|
}
|
|
241
259
|
}
|
|
242
|
-
|
|
243
|
-
(function (StartCallRequest) {
|
|
260
|
+
(function (SipStartCallRequest) {
|
|
244
261
|
/**
|
|
245
|
-
* Message implementation for ondewo.sip.HeadersEntry
|
|
262
|
+
* Message implementation for ondewo.sip.SipStartCallRequest.HeadersEntry
|
|
246
263
|
*/
|
|
247
264
|
class HeadersEntry {
|
|
248
|
-
|
|
249
|
-
* Message constructor. Initializes the properties and applies default Protobuf values if necessary
|
|
250
|
-
* @param _value initial values object or instance of HeadersEntry to deeply clone from
|
|
251
|
-
*/
|
|
252
|
-
constructor(_value) {
|
|
253
|
-
_value = _value || {};
|
|
254
|
-
this.key = _value.key;
|
|
255
|
-
this.value = _value.value;
|
|
256
|
-
HeadersEntry.refineValues(this);
|
|
257
|
-
}
|
|
265
|
+
static { this.id = 'ondewo.sip.SipStartCallRequest.HeadersEntry'; }
|
|
258
266
|
/**
|
|
259
267
|
* Deserialize binary data to message
|
|
260
268
|
* @param instance message instance
|
|
@@ -307,6 +315,16 @@ StartCallRequest.id = 'ondewo.sip.StartCallRequest';
|
|
|
307
315
|
_writer.writeString(2, _instance.value);
|
|
308
316
|
}
|
|
309
317
|
}
|
|
318
|
+
/**
|
|
319
|
+
* Message constructor. Initializes the properties and applies default Protobuf values if necessary
|
|
320
|
+
* @param _value initial values object or instance of HeadersEntry to deeply clone from
|
|
321
|
+
*/
|
|
322
|
+
constructor(_value) {
|
|
323
|
+
_value = _value || {};
|
|
324
|
+
this.key = _value.key;
|
|
325
|
+
this.value = _value.value;
|
|
326
|
+
HeadersEntry.refineValues(this);
|
|
327
|
+
}
|
|
310
328
|
get key() {
|
|
311
329
|
return this._key;
|
|
312
330
|
}
|
|
@@ -357,32 +375,20 @@ StartCallRequest.id = 'ondewo.sip.StartCallRequest';
|
|
|
357
375
|
};
|
|
358
376
|
}
|
|
359
377
|
}
|
|
360
|
-
HeadersEntry
|
|
361
|
-
|
|
362
|
-
})(StartCallRequest || (StartCallRequest = {}));
|
|
378
|
+
SipStartCallRequest.HeadersEntry = HeadersEntry;
|
|
379
|
+
})(SipStartCallRequest || (SipStartCallRequest = {}));
|
|
363
380
|
/**
|
|
364
|
-
* Message implementation for ondewo.sip.
|
|
381
|
+
* Message implementation for ondewo.sip.SipRegisterAccountRequest
|
|
365
382
|
*/
|
|
366
|
-
class
|
|
367
|
-
|
|
368
|
-
* Message constructor. Initializes the properties and applies default Protobuf values if necessary
|
|
369
|
-
* @param _value initial values object or instance of RegisterAccountRequest to deeply clone from
|
|
370
|
-
*/
|
|
371
|
-
constructor(_value) {
|
|
372
|
-
_value = _value || {};
|
|
373
|
-
this.accountName = _value.accountName;
|
|
374
|
-
this.password = _value.password;
|
|
375
|
-
this.authUsername = _value.authUsername;
|
|
376
|
-
this.outboundProxy = _value.outboundProxy;
|
|
377
|
-
RegisterAccountRequest.refineValues(this);
|
|
378
|
-
}
|
|
383
|
+
class SipRegisterAccountRequest {
|
|
384
|
+
static { this.id = 'ondewo.sip.SipRegisterAccountRequest'; }
|
|
379
385
|
/**
|
|
380
386
|
* Deserialize binary data to message
|
|
381
387
|
* @param instance message instance
|
|
382
388
|
*/
|
|
383
389
|
static deserializeBinary(bytes) {
|
|
384
|
-
const instance = new
|
|
385
|
-
|
|
390
|
+
const instance = new SipRegisterAccountRequest();
|
|
391
|
+
SipRegisterAccountRequest.deserializeBinaryFromReader(instance, new BinaryReader(bytes));
|
|
386
392
|
return instance;
|
|
387
393
|
}
|
|
388
394
|
/**
|
|
@@ -421,7 +427,7 @@ class RegisterAccountRequest {
|
|
|
421
427
|
_reader.skipField();
|
|
422
428
|
}
|
|
423
429
|
}
|
|
424
|
-
|
|
430
|
+
SipRegisterAccountRequest.refineValues(_instance);
|
|
425
431
|
}
|
|
426
432
|
/**
|
|
427
433
|
* Serializes a message to binary format using provided binary reader
|
|
@@ -442,6 +448,18 @@ class RegisterAccountRequest {
|
|
|
442
448
|
_writer.writeString(4, _instance.outboundProxy);
|
|
443
449
|
}
|
|
444
450
|
}
|
|
451
|
+
/**
|
|
452
|
+
* Message constructor. Initializes the properties and applies default Protobuf values if necessary
|
|
453
|
+
* @param _value initial values object or instance of SipRegisterAccountRequest to deeply clone from
|
|
454
|
+
*/
|
|
455
|
+
constructor(_value) {
|
|
456
|
+
_value = _value || {};
|
|
457
|
+
this.accountName = _value.accountName;
|
|
458
|
+
this.password = _value.password;
|
|
459
|
+
this.authUsername = _value.authUsername;
|
|
460
|
+
this.outboundProxy = _value.outboundProxy;
|
|
461
|
+
SipRegisterAccountRequest.refineValues(this);
|
|
462
|
+
}
|
|
445
463
|
get accountName() {
|
|
446
464
|
return this._accountName;
|
|
447
465
|
}
|
|
@@ -472,7 +490,7 @@ class RegisterAccountRequest {
|
|
|
472
490
|
*/
|
|
473
491
|
serializeBinary() {
|
|
474
492
|
const writer = new BinaryWriter();
|
|
475
|
-
|
|
493
|
+
SipRegisterAccountRequest.serializeBinaryToWriter(this, writer);
|
|
476
494
|
return writer.getResultBuffer();
|
|
477
495
|
}
|
|
478
496
|
/**
|
|
@@ -508,28 +526,18 @@ class RegisterAccountRequest {
|
|
|
508
526
|
};
|
|
509
527
|
}
|
|
510
528
|
}
|
|
511
|
-
RegisterAccountRequest.id = 'ondewo.sip.RegisterAccountRequest';
|
|
512
529
|
/**
|
|
513
|
-
* Message implementation for ondewo.sip.
|
|
530
|
+
* Message implementation for ondewo.sip.SipStartSessionRequest
|
|
514
531
|
*/
|
|
515
|
-
class
|
|
516
|
-
|
|
517
|
-
* Message constructor. Initializes the properties and applies default Protobuf values if necessary
|
|
518
|
-
* @param _value initial values object or instance of StartSessionRequest to deeply clone from
|
|
519
|
-
*/
|
|
520
|
-
constructor(_value) {
|
|
521
|
-
_value = _value || {};
|
|
522
|
-
this.accountName = _value.accountName;
|
|
523
|
-
this.autoAnswerInterval = _value.autoAnswerInterval;
|
|
524
|
-
StartSessionRequest.refineValues(this);
|
|
525
|
-
}
|
|
532
|
+
class SipStartSessionRequest {
|
|
533
|
+
static { this.id = 'ondewo.sip.SipStartSessionRequest'; }
|
|
526
534
|
/**
|
|
527
535
|
* Deserialize binary data to message
|
|
528
536
|
* @param instance message instance
|
|
529
537
|
*/
|
|
530
538
|
static deserializeBinary(bytes) {
|
|
531
|
-
const instance = new
|
|
532
|
-
|
|
539
|
+
const instance = new SipStartSessionRequest();
|
|
540
|
+
SipStartSessionRequest.deserializeBinaryFromReader(instance, new BinaryReader(bytes));
|
|
533
541
|
return instance;
|
|
534
542
|
}
|
|
535
543
|
/**
|
|
@@ -560,7 +568,7 @@ class StartSessionRequest {
|
|
|
560
568
|
_reader.skipField();
|
|
561
569
|
}
|
|
562
570
|
}
|
|
563
|
-
|
|
571
|
+
SipStartSessionRequest.refineValues(_instance);
|
|
564
572
|
}
|
|
565
573
|
/**
|
|
566
574
|
* Serializes a message to binary format using provided binary reader
|
|
@@ -575,6 +583,16 @@ class StartSessionRequest {
|
|
|
575
583
|
_writer.writeInt32(2, _instance.autoAnswerInterval);
|
|
576
584
|
}
|
|
577
585
|
}
|
|
586
|
+
/**
|
|
587
|
+
* Message constructor. Initializes the properties and applies default Protobuf values if necessary
|
|
588
|
+
* @param _value initial values object or instance of SipStartSessionRequest to deeply clone from
|
|
589
|
+
*/
|
|
590
|
+
constructor(_value) {
|
|
591
|
+
_value = _value || {};
|
|
592
|
+
this.accountName = _value.accountName;
|
|
593
|
+
this.autoAnswerInterval = _value.autoAnswerInterval;
|
|
594
|
+
SipStartSessionRequest.refineValues(this);
|
|
595
|
+
}
|
|
578
596
|
get accountName() {
|
|
579
597
|
return this._accountName;
|
|
580
598
|
}
|
|
@@ -593,7 +611,7 @@ class StartSessionRequest {
|
|
|
593
611
|
*/
|
|
594
612
|
serializeBinary() {
|
|
595
613
|
const writer = new BinaryWriter();
|
|
596
|
-
|
|
614
|
+
SipStartSessionRequest.serializeBinaryToWriter(this, writer);
|
|
597
615
|
return writer.getResultBuffer();
|
|
598
616
|
}
|
|
599
617
|
/**
|
|
@@ -625,30 +643,18 @@ class StartSessionRequest {
|
|
|
625
643
|
};
|
|
626
644
|
}
|
|
627
645
|
}
|
|
628
|
-
StartSessionRequest.id = 'ondewo.sip.StartSessionRequest';
|
|
629
646
|
/**
|
|
630
|
-
* Message implementation for ondewo.sip.
|
|
647
|
+
* Message implementation for ondewo.sip.SipTransferCallRequest
|
|
631
648
|
*/
|
|
632
|
-
class
|
|
633
|
-
|
|
634
|
-
* Message constructor. Initializes the properties and applies default Protobuf values if necessary
|
|
635
|
-
* @param _value initial values object or instance of TransferCallRequest to deeply clone from
|
|
636
|
-
*/
|
|
637
|
-
constructor(_value) {
|
|
638
|
-
_value = _value || {};
|
|
639
|
-
this.transferId = _value.transferId;
|
|
640
|
-
(this.headers = _value.headers
|
|
641
|
-
? Object.keys(_value.headers).reduce((r, k) => ({ ...r, [k]: _value.headers[k] }), {})
|
|
642
|
-
: {}),
|
|
643
|
-
TransferCallRequest.refineValues(this);
|
|
644
|
-
}
|
|
649
|
+
class SipTransferCallRequest {
|
|
650
|
+
static { this.id = 'ondewo.sip.SipTransferCallRequest'; }
|
|
645
651
|
/**
|
|
646
652
|
* Deserialize binary data to message
|
|
647
653
|
* @param instance message instance
|
|
648
654
|
*/
|
|
649
655
|
static deserializeBinary(bytes) {
|
|
650
|
-
const instance = new
|
|
651
|
-
|
|
656
|
+
const instance = new SipTransferCallRequest();
|
|
657
|
+
SipTransferCallRequest.deserializeBinaryFromReader(instance, new BinaryReader(bytes));
|
|
652
658
|
return instance;
|
|
653
659
|
}
|
|
654
660
|
/**
|
|
@@ -674,7 +680,7 @@ class TransferCallRequest {
|
|
|
674
680
|
break;
|
|
675
681
|
case 2:
|
|
676
682
|
const msg_2 = {};
|
|
677
|
-
_reader.readMessage(msg_2,
|
|
683
|
+
_reader.readMessage(msg_2, SipTransferCallRequest.HeadersEntry.deserializeBinaryFromReader);
|
|
678
684
|
_instance.headers = _instance.headers || {};
|
|
679
685
|
_instance.headers[msg_2.key] = msg_2.value;
|
|
680
686
|
break;
|
|
@@ -682,7 +688,7 @@ class TransferCallRequest {
|
|
|
682
688
|
_reader.skipField();
|
|
683
689
|
}
|
|
684
690
|
}
|
|
685
|
-
|
|
691
|
+
SipTransferCallRequest.refineValues(_instance);
|
|
686
692
|
}
|
|
687
693
|
/**
|
|
688
694
|
* Serializes a message to binary format using provided binary reader
|
|
@@ -699,10 +705,22 @@ class TransferCallRequest {
|
|
|
699
705
|
const repeated_2 = keys_2
|
|
700
706
|
.map(key => ({ key: key, value: _instance.headers[key] }))
|
|
701
707
|
.reduce((r, v) => [...r, v], []);
|
|
702
|
-
_writer.writeRepeatedMessage(2, repeated_2,
|
|
708
|
+
_writer.writeRepeatedMessage(2, repeated_2, SipTransferCallRequest.HeadersEntry.serializeBinaryToWriter);
|
|
703
709
|
}
|
|
704
710
|
}
|
|
705
711
|
}
|
|
712
|
+
/**
|
|
713
|
+
* Message constructor. Initializes the properties and applies default Protobuf values if necessary
|
|
714
|
+
* @param _value initial values object or instance of SipTransferCallRequest to deeply clone from
|
|
715
|
+
*/
|
|
716
|
+
constructor(_value) {
|
|
717
|
+
_value = _value || {};
|
|
718
|
+
this.transferId = _value.transferId;
|
|
719
|
+
(this.headers = _value.headers
|
|
720
|
+
? Object.keys(_value.headers).reduce((r, k) => ({ ...r, [k]: _value.headers[k] }), {})
|
|
721
|
+
: {}),
|
|
722
|
+
SipTransferCallRequest.refineValues(this);
|
|
723
|
+
}
|
|
706
724
|
get transferId() {
|
|
707
725
|
return this._transferId;
|
|
708
726
|
}
|
|
@@ -721,7 +739,7 @@ class TransferCallRequest {
|
|
|
721
739
|
*/
|
|
722
740
|
serializeBinary() {
|
|
723
741
|
const writer = new BinaryWriter();
|
|
724
|
-
|
|
742
|
+
SipTransferCallRequest.serializeBinaryToWriter(this, writer);
|
|
725
743
|
return writer.getResultBuffer();
|
|
726
744
|
}
|
|
727
745
|
/**
|
|
@@ -757,22 +775,12 @@ class TransferCallRequest {
|
|
|
757
775
|
};
|
|
758
776
|
}
|
|
759
777
|
}
|
|
760
|
-
|
|
761
|
-
(function (TransferCallRequest) {
|
|
778
|
+
(function (SipTransferCallRequest) {
|
|
762
779
|
/**
|
|
763
|
-
* Message implementation for ondewo.sip.HeadersEntry
|
|
780
|
+
* Message implementation for ondewo.sip.SipTransferCallRequest.HeadersEntry
|
|
764
781
|
*/
|
|
765
782
|
class HeadersEntry {
|
|
766
|
-
|
|
767
|
-
* Message constructor. Initializes the properties and applies default Protobuf values if necessary
|
|
768
|
-
* @param _value initial values object or instance of HeadersEntry to deeply clone from
|
|
769
|
-
*/
|
|
770
|
-
constructor(_value) {
|
|
771
|
-
_value = _value || {};
|
|
772
|
-
this.key = _value.key;
|
|
773
|
-
this.value = _value.value;
|
|
774
|
-
HeadersEntry.refineValues(this);
|
|
775
|
-
}
|
|
783
|
+
static { this.id = 'ondewo.sip.SipTransferCallRequest.HeadersEntry'; }
|
|
776
784
|
/**
|
|
777
785
|
* Deserialize binary data to message
|
|
778
786
|
* @param instance message instance
|
|
@@ -825,6 +833,16 @@ TransferCallRequest.id = 'ondewo.sip.TransferCallRequest';
|
|
|
825
833
|
_writer.writeString(2, _instance.value);
|
|
826
834
|
}
|
|
827
835
|
}
|
|
836
|
+
/**
|
|
837
|
+
* Message constructor. Initializes the properties and applies default Protobuf values if necessary
|
|
838
|
+
* @param _value initial values object or instance of HeadersEntry to deeply clone from
|
|
839
|
+
*/
|
|
840
|
+
constructor(_value) {
|
|
841
|
+
_value = _value || {};
|
|
842
|
+
this.key = _value.key;
|
|
843
|
+
this.value = _value.value;
|
|
844
|
+
HeadersEntry.refineValues(this);
|
|
845
|
+
}
|
|
828
846
|
get key() {
|
|
829
847
|
return this._key;
|
|
830
848
|
}
|
|
@@ -875,34 +893,13 @@ TransferCallRequest.id = 'ondewo.sip.TransferCallRequest';
|
|
|
875
893
|
};
|
|
876
894
|
}
|
|
877
895
|
}
|
|
878
|
-
HeadersEntry
|
|
879
|
-
|
|
880
|
-
})(TransferCallRequest || (TransferCallRequest = {}));
|
|
896
|
+
SipTransferCallRequest.HeadersEntry = HeadersEntry;
|
|
897
|
+
})(SipTransferCallRequest || (SipTransferCallRequest = {}));
|
|
881
898
|
/**
|
|
882
899
|
* Message implementation for ondewo.sip.SipStatus
|
|
883
900
|
*/
|
|
884
901
|
class SipStatus {
|
|
885
|
-
|
|
886
|
-
* Message constructor. Initializes the properties and applies default Protobuf values if necessary
|
|
887
|
-
* @param _value initial values object or instance of SipStatus to deeply clone from
|
|
888
|
-
*/
|
|
889
|
-
constructor(_value) {
|
|
890
|
-
_value = _value || {};
|
|
891
|
-
this.accountName = _value.accountName;
|
|
892
|
-
this.timestamp = _value.timestamp
|
|
893
|
-
? new googleProtobuf000.Timestamp(_value.timestamp)
|
|
894
|
-
: undefined;
|
|
895
|
-
this.statusType = _value.statusType;
|
|
896
|
-
this.calleeId = _value.calleeId;
|
|
897
|
-
this.transferCallId = _value.transferCallId;
|
|
898
|
-
(this.headers = _value.headers
|
|
899
|
-
? Object.keys(_value.headers).reduce((r, k) => ({ ...r, [k]: _value.headers[k] }), {})
|
|
900
|
-
: {}),
|
|
901
|
-
(this.description = _value.description);
|
|
902
|
-
this.exceptionName = _value.exceptionName;
|
|
903
|
-
this.exceptionTraceback = _value.exceptionTraceback;
|
|
904
|
-
SipStatus.refineValues(this);
|
|
905
|
-
}
|
|
902
|
+
static { this.id = 'ondewo.sip.SipStatus'; }
|
|
906
903
|
/**
|
|
907
904
|
* Deserialize binary data to message
|
|
908
905
|
* @param instance message instance
|
|
@@ -926,6 +923,7 @@ class SipStatus {
|
|
|
926
923
|
_instance.description = _instance.description || '';
|
|
927
924
|
_instance.exceptionName = _instance.exceptionName || '';
|
|
928
925
|
_instance.exceptionTraceback = _instance.exceptionTraceback || '';
|
|
926
|
+
_instance.nluSessionName = _instance.nluSessionName || '';
|
|
929
927
|
}
|
|
930
928
|
/**
|
|
931
929
|
* Deserializes / reads binary message into message instance using provided binary reader
|
|
@@ -968,6 +966,9 @@ class SipStatus {
|
|
|
968
966
|
case 9:
|
|
969
967
|
_instance.exceptionTraceback = _reader.readString();
|
|
970
968
|
break;
|
|
969
|
+
case 10:
|
|
970
|
+
_instance.nluSessionName = _reader.readString();
|
|
971
|
+
break;
|
|
971
972
|
default:
|
|
972
973
|
_reader.skipField();
|
|
973
974
|
}
|
|
@@ -1013,6 +1014,31 @@ class SipStatus {
|
|
|
1013
1014
|
if (_instance.exceptionTraceback) {
|
|
1014
1015
|
_writer.writeString(9, _instance.exceptionTraceback);
|
|
1015
1016
|
}
|
|
1017
|
+
if (_instance.nluSessionName) {
|
|
1018
|
+
_writer.writeString(10, _instance.nluSessionName);
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
/**
|
|
1022
|
+
* Message constructor. Initializes the properties and applies default Protobuf values if necessary
|
|
1023
|
+
* @param _value initial values object or instance of SipStatus to deeply clone from
|
|
1024
|
+
*/
|
|
1025
|
+
constructor(_value) {
|
|
1026
|
+
_value = _value || {};
|
|
1027
|
+
this.accountName = _value.accountName;
|
|
1028
|
+
this.timestamp = _value.timestamp
|
|
1029
|
+
? new googleProtobuf000.Timestamp(_value.timestamp)
|
|
1030
|
+
: undefined;
|
|
1031
|
+
this.statusType = _value.statusType;
|
|
1032
|
+
this.calleeId = _value.calleeId;
|
|
1033
|
+
this.transferCallId = _value.transferCallId;
|
|
1034
|
+
(this.headers = _value.headers
|
|
1035
|
+
? Object.keys(_value.headers).reduce((r, k) => ({ ...r, [k]: _value.headers[k] }), {})
|
|
1036
|
+
: {}),
|
|
1037
|
+
(this.description = _value.description);
|
|
1038
|
+
this.exceptionName = _value.exceptionName;
|
|
1039
|
+
this.exceptionTraceback = _value.exceptionTraceback;
|
|
1040
|
+
this.nluSessionName = _value.nluSessionName;
|
|
1041
|
+
SipStatus.refineValues(this);
|
|
1016
1042
|
}
|
|
1017
1043
|
get accountName() {
|
|
1018
1044
|
return this._accountName;
|
|
@@ -1068,6 +1094,12 @@ class SipStatus {
|
|
|
1068
1094
|
set exceptionTraceback(value) {
|
|
1069
1095
|
this._exceptionTraceback = value;
|
|
1070
1096
|
}
|
|
1097
|
+
get nluSessionName() {
|
|
1098
|
+
return this._nluSessionName;
|
|
1099
|
+
}
|
|
1100
|
+
set nluSessionName(value) {
|
|
1101
|
+
this._nluSessionName = value;
|
|
1102
|
+
}
|
|
1071
1103
|
/**
|
|
1072
1104
|
* Serialize message to binary data
|
|
1073
1105
|
* @param instance message instance
|
|
@@ -1092,7 +1124,8 @@ class SipStatus {
|
|
|
1092
1124
|
: {},
|
|
1093
1125
|
description: this.description,
|
|
1094
1126
|
exceptionName: this.exceptionName,
|
|
1095
|
-
exceptionTraceback: this.exceptionTraceback
|
|
1127
|
+
exceptionTraceback: this.exceptionTraceback,
|
|
1128
|
+
nluSessionName: this.nluSessionName
|
|
1096
1129
|
};
|
|
1097
1130
|
}
|
|
1098
1131
|
/**
|
|
@@ -1122,11 +1155,11 @@ class SipStatus {
|
|
|
1122
1155
|
: {},
|
|
1123
1156
|
description: this.description,
|
|
1124
1157
|
exceptionName: this.exceptionName,
|
|
1125
|
-
exceptionTraceback: this.exceptionTraceback
|
|
1158
|
+
exceptionTraceback: this.exceptionTraceback,
|
|
1159
|
+
nluSessionName: this.nluSessionName
|
|
1126
1160
|
};
|
|
1127
1161
|
}
|
|
1128
1162
|
}
|
|
1129
|
-
SipStatus.id = 'ondewo.sip.SipStatus';
|
|
1130
1163
|
(function (SipStatus) {
|
|
1131
1164
|
let StatusType;
|
|
1132
1165
|
(function (StatusType) {
|
|
@@ -1154,19 +1187,10 @@ SipStatus.id = 'ondewo.sip.SipStatus';
|
|
|
1154
1187
|
StatusType[StatusType["NO_ONGOING_CALL"] = 21] = "NO_ONGOING_CALL";
|
|
1155
1188
|
})(StatusType = SipStatus.StatusType || (SipStatus.StatusType = {}));
|
|
1156
1189
|
/**
|
|
1157
|
-
* Message implementation for ondewo.sip.HeadersEntry
|
|
1190
|
+
* Message implementation for ondewo.sip.SipStatus.HeadersEntry
|
|
1158
1191
|
*/
|
|
1159
1192
|
class HeadersEntry {
|
|
1160
|
-
|
|
1161
|
-
* Message constructor. Initializes the properties and applies default Protobuf values if necessary
|
|
1162
|
-
* @param _value initial values object or instance of HeadersEntry to deeply clone from
|
|
1163
|
-
*/
|
|
1164
|
-
constructor(_value) {
|
|
1165
|
-
_value = _value || {};
|
|
1166
|
-
this.key = _value.key;
|
|
1167
|
-
this.value = _value.value;
|
|
1168
|
-
HeadersEntry.refineValues(this);
|
|
1169
|
-
}
|
|
1193
|
+
static { this.id = 'ondewo.sip.SipStatus.HeadersEntry'; }
|
|
1170
1194
|
/**
|
|
1171
1195
|
* Deserialize binary data to message
|
|
1172
1196
|
* @param instance message instance
|
|
@@ -1219,6 +1243,16 @@ SipStatus.id = 'ondewo.sip.SipStatus';
|
|
|
1219
1243
|
_writer.writeString(2, _instance.value);
|
|
1220
1244
|
}
|
|
1221
1245
|
}
|
|
1246
|
+
/**
|
|
1247
|
+
* Message constructor. Initializes the properties and applies default Protobuf values if necessary
|
|
1248
|
+
* @param _value initial values object or instance of HeadersEntry to deeply clone from
|
|
1249
|
+
*/
|
|
1250
|
+
constructor(_value) {
|
|
1251
|
+
_value = _value || {};
|
|
1252
|
+
this.key = _value.key;
|
|
1253
|
+
this.value = _value.value;
|
|
1254
|
+
HeadersEntry.refineValues(this);
|
|
1255
|
+
}
|
|
1222
1256
|
get key() {
|
|
1223
1257
|
return this._key;
|
|
1224
1258
|
}
|
|
@@ -1269,22 +1303,13 @@ SipStatus.id = 'ondewo.sip.SipStatus';
|
|
|
1269
1303
|
};
|
|
1270
1304
|
}
|
|
1271
1305
|
}
|
|
1272
|
-
HeadersEntry.id = 'ondewo.sip.HeadersEntry';
|
|
1273
1306
|
SipStatus.HeadersEntry = HeadersEntry;
|
|
1274
1307
|
})(SipStatus || (SipStatus = {}));
|
|
1275
1308
|
/**
|
|
1276
1309
|
* Message implementation for ondewo.sip.SipStatusHistoryResponse
|
|
1277
1310
|
*/
|
|
1278
1311
|
class SipStatusHistoryResponse {
|
|
1279
|
-
|
|
1280
|
-
* Message constructor. Initializes the properties and applies default Protobuf values if necessary
|
|
1281
|
-
* @param _value initial values object or instance of SipStatusHistoryResponse to deeply clone from
|
|
1282
|
-
*/
|
|
1283
|
-
constructor(_value) {
|
|
1284
|
-
_value = _value || {};
|
|
1285
|
-
this.statusHistory = (_value.statusHistory || []).map(m => new SipStatus(m));
|
|
1286
|
-
SipStatusHistoryResponse.refineValues(this);
|
|
1287
|
-
}
|
|
1312
|
+
static { this.id = 'ondewo.sip.SipStatusHistoryResponse'; }
|
|
1288
1313
|
/**
|
|
1289
1314
|
* Deserialize binary data to message
|
|
1290
1315
|
* @param instance message instance
|
|
@@ -1332,6 +1357,15 @@ class SipStatusHistoryResponse {
|
|
|
1332
1357
|
_writer.writeRepeatedMessage(1, _instance.statusHistory, SipStatus.serializeBinaryToWriter);
|
|
1333
1358
|
}
|
|
1334
1359
|
}
|
|
1360
|
+
/**
|
|
1361
|
+
* Message constructor. Initializes the properties and applies default Protobuf values if necessary
|
|
1362
|
+
* @param _value initial values object or instance of SipStatusHistoryResponse to deeply clone from
|
|
1363
|
+
*/
|
|
1364
|
+
constructor(_value) {
|
|
1365
|
+
_value = _value || {};
|
|
1366
|
+
this.statusHistory = (_value.statusHistory || []).map(m => new SipStatus(m));
|
|
1367
|
+
SipStatusHistoryResponse.refineValues(this);
|
|
1368
|
+
}
|
|
1335
1369
|
get statusHistory() {
|
|
1336
1370
|
return this._statusHistory;
|
|
1337
1371
|
}
|
|
@@ -1374,27 +1408,18 @@ class SipStatusHistoryResponse {
|
|
|
1374
1408
|
};
|
|
1375
1409
|
}
|
|
1376
1410
|
}
|
|
1377
|
-
SipStatusHistoryResponse.id = 'ondewo.sip.SipStatusHistoryResponse';
|
|
1378
1411
|
/**
|
|
1379
|
-
* Message implementation for ondewo.sip.
|
|
1412
|
+
* Message implementation for ondewo.sip.SipPlayWavFilesRequest
|
|
1380
1413
|
*/
|
|
1381
|
-
class
|
|
1382
|
-
|
|
1383
|
-
* Message constructor. Initializes the properties and applies default Protobuf values if necessary
|
|
1384
|
-
* @param _value initial values object or instance of PlayWavFilesRequest to deeply clone from
|
|
1385
|
-
*/
|
|
1386
|
-
constructor(_value) {
|
|
1387
|
-
_value = _value || {};
|
|
1388
|
-
this.wavFiles = (_value.wavFiles || []).map(b => b ? b.subarray(0) : new Uint8Array());
|
|
1389
|
-
PlayWavFilesRequest.refineValues(this);
|
|
1390
|
-
}
|
|
1414
|
+
class SipPlayWavFilesRequest {
|
|
1415
|
+
static { this.id = 'ondewo.sip.SipPlayWavFilesRequest'; }
|
|
1391
1416
|
/**
|
|
1392
1417
|
* Deserialize binary data to message
|
|
1393
1418
|
* @param instance message instance
|
|
1394
1419
|
*/
|
|
1395
1420
|
static deserializeBinary(bytes) {
|
|
1396
|
-
const instance = new
|
|
1397
|
-
|
|
1421
|
+
const instance = new SipPlayWavFilesRequest();
|
|
1422
|
+
SipPlayWavFilesRequest.deserializeBinaryFromReader(instance, new BinaryReader(bytes));
|
|
1398
1423
|
return instance;
|
|
1399
1424
|
}
|
|
1400
1425
|
/**
|
|
@@ -1421,7 +1446,7 @@ class PlayWavFilesRequest {
|
|
|
1421
1446
|
_reader.skipField();
|
|
1422
1447
|
}
|
|
1423
1448
|
}
|
|
1424
|
-
|
|
1449
|
+
SipPlayWavFilesRequest.refineValues(_instance);
|
|
1425
1450
|
}
|
|
1426
1451
|
/**
|
|
1427
1452
|
* Serializes a message to binary format using provided binary reader
|
|
@@ -1433,6 +1458,15 @@ class PlayWavFilesRequest {
|
|
|
1433
1458
|
_writer.writeRepeatedBytes(1, _instance.wavFiles);
|
|
1434
1459
|
}
|
|
1435
1460
|
}
|
|
1461
|
+
/**
|
|
1462
|
+
* Message constructor. Initializes the properties and applies default Protobuf values if necessary
|
|
1463
|
+
* @param _value initial values object or instance of SipPlayWavFilesRequest to deeply clone from
|
|
1464
|
+
*/
|
|
1465
|
+
constructor(_value) {
|
|
1466
|
+
_value = _value || {};
|
|
1467
|
+
this.wavFiles = (_value.wavFiles || []).map(b => b ? b.subarray(0) : new Uint8Array());
|
|
1468
|
+
SipPlayWavFilesRequest.refineValues(this);
|
|
1469
|
+
}
|
|
1436
1470
|
get wavFiles() {
|
|
1437
1471
|
return this._wavFiles;
|
|
1438
1472
|
}
|
|
@@ -1445,7 +1479,7 @@ class PlayWavFilesRequest {
|
|
|
1445
1479
|
*/
|
|
1446
1480
|
serializeBinary() {
|
|
1447
1481
|
const writer = new BinaryWriter();
|
|
1448
|
-
|
|
1482
|
+
SipPlayWavFilesRequest.serializeBinaryToWriter(this, writer);
|
|
1449
1483
|
return writer.getResultBuffer();
|
|
1450
1484
|
}
|
|
1451
1485
|
/**
|
|
@@ -1475,16 +1509,13 @@ class PlayWavFilesRequest {
|
|
|
1475
1509
|
};
|
|
1476
1510
|
}
|
|
1477
1511
|
}
|
|
1478
|
-
PlayWavFilesRequest.id = 'ondewo.sip.PlayWavFilesRequest';
|
|
1479
|
-
|
|
1480
|
-
/* tslint:disable */
|
|
1481
|
-
/**
|
|
1482
|
-
* Specific GrpcClientSettings for Sip.
|
|
1483
|
-
* Use it only if your default settings are not set or the service requires other settings.
|
|
1484
|
-
*/
|
|
1485
|
-
const GRPC_SIP_CLIENT_SETTINGS = new InjectionToken('GRPC_SIP_CLIENT_SETTINGS');
|
|
1486
1512
|
|
|
1487
1513
|
/* tslint:disable */
|
|
1514
|
+
/* eslint-disable */
|
|
1515
|
+
// @ts-nocheck
|
|
1516
|
+
//
|
|
1517
|
+
// THIS IS A GENERATED FILE
|
|
1518
|
+
// DO NOT MODIFY IT! YOUR CHANGES WILL BE LOST
|
|
1488
1519
|
/**
|
|
1489
1520
|
* Service client implementation for ondewo.sip.Sip
|
|
1490
1521
|
*/
|
|
@@ -1498,35 +1529,35 @@ class SipClient {
|
|
|
1498
1529
|
*/
|
|
1499
1530
|
this.$raw = {
|
|
1500
1531
|
/**
|
|
1501
|
-
* Unary call: /ondewo.sip.Sip/
|
|
1532
|
+
* Unary call: /ondewo.sip.Sip/SipStartSession
|
|
1502
1533
|
*
|
|
1503
1534
|
* @param requestMessage Request message
|
|
1504
1535
|
* @param requestMetadata Request metadata
|
|
1505
1536
|
* @returns Observable<GrpcEvent<thisProto.SipStatus>>
|
|
1506
1537
|
*/
|
|
1507
|
-
|
|
1538
|
+
sipStartSession: (requestData, requestMetadata = new GrpcMetadata()) => {
|
|
1508
1539
|
return this.handler.handle({
|
|
1509
1540
|
type: GrpcCallType.unary,
|
|
1510
1541
|
client: this.client,
|
|
1511
|
-
path: '/ondewo.sip.Sip/
|
|
1542
|
+
path: '/ondewo.sip.Sip/SipStartSession',
|
|
1512
1543
|
requestData,
|
|
1513
1544
|
requestMetadata,
|
|
1514
|
-
requestClass:
|
|
1545
|
+
requestClass: SipStartSessionRequest,
|
|
1515
1546
|
responseClass: SipStatus
|
|
1516
1547
|
});
|
|
1517
1548
|
},
|
|
1518
1549
|
/**
|
|
1519
|
-
* Unary call: /ondewo.sip.Sip/
|
|
1550
|
+
* Unary call: /ondewo.sip.Sip/SipEndSession
|
|
1520
1551
|
*
|
|
1521
1552
|
* @param requestMessage Request message
|
|
1522
1553
|
* @param requestMetadata Request metadata
|
|
1523
1554
|
* @returns Observable<GrpcEvent<thisProto.SipStatus>>
|
|
1524
1555
|
*/
|
|
1525
|
-
|
|
1556
|
+
sipEndSession: (requestData, requestMetadata = new GrpcMetadata()) => {
|
|
1526
1557
|
return this.handler.handle({
|
|
1527
1558
|
type: GrpcCallType.unary,
|
|
1528
1559
|
client: this.client,
|
|
1529
|
-
path: '/ondewo.sip.Sip/
|
|
1560
|
+
path: '/ondewo.sip.Sip/SipEndSession',
|
|
1530
1561
|
requestData,
|
|
1531
1562
|
requestMetadata,
|
|
1532
1563
|
requestClass: googleProtobuf000.Empty,
|
|
@@ -1534,89 +1565,89 @@ class SipClient {
|
|
|
1534
1565
|
});
|
|
1535
1566
|
},
|
|
1536
1567
|
/**
|
|
1537
|
-
* Unary call: /ondewo.sip.Sip/
|
|
1568
|
+
* Unary call: /ondewo.sip.Sip/SipStartCall
|
|
1538
1569
|
*
|
|
1539
1570
|
* @param requestMessage Request message
|
|
1540
1571
|
* @param requestMetadata Request metadata
|
|
1541
1572
|
* @returns Observable<GrpcEvent<thisProto.SipStatus>>
|
|
1542
1573
|
*/
|
|
1543
|
-
|
|
1574
|
+
sipStartCall: (requestData, requestMetadata = new GrpcMetadata()) => {
|
|
1544
1575
|
return this.handler.handle({
|
|
1545
1576
|
type: GrpcCallType.unary,
|
|
1546
1577
|
client: this.client,
|
|
1547
|
-
path: '/ondewo.sip.Sip/
|
|
1578
|
+
path: '/ondewo.sip.Sip/SipStartCall',
|
|
1548
1579
|
requestData,
|
|
1549
1580
|
requestMetadata,
|
|
1550
|
-
requestClass:
|
|
1581
|
+
requestClass: SipStartCallRequest,
|
|
1551
1582
|
responseClass: SipStatus
|
|
1552
1583
|
});
|
|
1553
1584
|
},
|
|
1554
1585
|
/**
|
|
1555
|
-
* Unary call: /ondewo.sip.Sip/
|
|
1586
|
+
* Unary call: /ondewo.sip.Sip/SipEndCall
|
|
1556
1587
|
*
|
|
1557
1588
|
* @param requestMessage Request message
|
|
1558
1589
|
* @param requestMetadata Request metadata
|
|
1559
1590
|
* @returns Observable<GrpcEvent<thisProto.SipStatus>>
|
|
1560
1591
|
*/
|
|
1561
|
-
|
|
1592
|
+
sipEndCall: (requestData, requestMetadata = new GrpcMetadata()) => {
|
|
1562
1593
|
return this.handler.handle({
|
|
1563
1594
|
type: GrpcCallType.unary,
|
|
1564
1595
|
client: this.client,
|
|
1565
|
-
path: '/ondewo.sip.Sip/
|
|
1596
|
+
path: '/ondewo.sip.Sip/SipEndCall',
|
|
1566
1597
|
requestData,
|
|
1567
1598
|
requestMetadata,
|
|
1568
|
-
requestClass:
|
|
1599
|
+
requestClass: SipEndCallRequest,
|
|
1569
1600
|
responseClass: SipStatus
|
|
1570
1601
|
});
|
|
1571
1602
|
},
|
|
1572
1603
|
/**
|
|
1573
|
-
* Unary call: /ondewo.sip.Sip/
|
|
1604
|
+
* Unary call: /ondewo.sip.Sip/SipTransferCall
|
|
1574
1605
|
*
|
|
1575
1606
|
* @param requestMessage Request message
|
|
1576
1607
|
* @param requestMetadata Request metadata
|
|
1577
1608
|
* @returns Observable<GrpcEvent<thisProto.SipStatus>>
|
|
1578
1609
|
*/
|
|
1579
|
-
|
|
1610
|
+
sipTransferCall: (requestData, requestMetadata = new GrpcMetadata()) => {
|
|
1580
1611
|
return this.handler.handle({
|
|
1581
1612
|
type: GrpcCallType.unary,
|
|
1582
1613
|
client: this.client,
|
|
1583
|
-
path: '/ondewo.sip.Sip/
|
|
1614
|
+
path: '/ondewo.sip.Sip/SipTransferCall',
|
|
1584
1615
|
requestData,
|
|
1585
1616
|
requestMetadata,
|
|
1586
|
-
requestClass:
|
|
1617
|
+
requestClass: SipTransferCallRequest,
|
|
1587
1618
|
responseClass: SipStatus
|
|
1588
1619
|
});
|
|
1589
1620
|
},
|
|
1590
1621
|
/**
|
|
1591
|
-
* Unary call: /ondewo.sip.Sip/
|
|
1622
|
+
* Unary call: /ondewo.sip.Sip/SipRegisterAccount
|
|
1592
1623
|
*
|
|
1593
1624
|
* @param requestMessage Request message
|
|
1594
1625
|
* @param requestMetadata Request metadata
|
|
1595
1626
|
* @returns Observable<GrpcEvent<thisProto.SipStatus>>
|
|
1596
1627
|
*/
|
|
1597
|
-
|
|
1628
|
+
sipRegisterAccount: (requestData, requestMetadata = new GrpcMetadata()) => {
|
|
1598
1629
|
return this.handler.handle({
|
|
1599
1630
|
type: GrpcCallType.unary,
|
|
1600
1631
|
client: this.client,
|
|
1601
|
-
path: '/ondewo.sip.Sip/
|
|
1632
|
+
path: '/ondewo.sip.Sip/SipRegisterAccount',
|
|
1602
1633
|
requestData,
|
|
1603
1634
|
requestMetadata,
|
|
1604
|
-
requestClass:
|
|
1635
|
+
requestClass: SipRegisterAccountRequest,
|
|
1605
1636
|
responseClass: SipStatus
|
|
1606
1637
|
});
|
|
1607
1638
|
},
|
|
1608
1639
|
/**
|
|
1609
|
-
* Unary call: /ondewo.sip.Sip/
|
|
1640
|
+
* Unary call: /ondewo.sip.Sip/SipGetSipStatus
|
|
1610
1641
|
*
|
|
1611
1642
|
* @param requestMessage Request message
|
|
1612
1643
|
* @param requestMetadata Request metadata
|
|
1613
1644
|
* @returns Observable<GrpcEvent<thisProto.SipStatus>>
|
|
1614
1645
|
*/
|
|
1615
|
-
|
|
1646
|
+
sipGetSipStatus: (requestData, requestMetadata = new GrpcMetadata()) => {
|
|
1616
1647
|
return this.handler.handle({
|
|
1617
1648
|
type: GrpcCallType.unary,
|
|
1618
1649
|
client: this.client,
|
|
1619
|
-
path: '/ondewo.sip.Sip/
|
|
1650
|
+
path: '/ondewo.sip.Sip/SipGetSipStatus',
|
|
1620
1651
|
requestData,
|
|
1621
1652
|
requestMetadata,
|
|
1622
1653
|
requestClass: googleProtobuf000.Empty,
|
|
@@ -1624,17 +1655,17 @@ class SipClient {
|
|
|
1624
1655
|
});
|
|
1625
1656
|
},
|
|
1626
1657
|
/**
|
|
1627
|
-
* Unary call: /ondewo.sip.Sip/
|
|
1658
|
+
* Unary call: /ondewo.sip.Sip/SipGetSipStatusHistory
|
|
1628
1659
|
*
|
|
1629
1660
|
* @param requestMessage Request message
|
|
1630
1661
|
* @param requestMetadata Request metadata
|
|
1631
1662
|
* @returns Observable<GrpcEvent<thisProto.SipStatusHistoryResponse>>
|
|
1632
1663
|
*/
|
|
1633
|
-
|
|
1664
|
+
sipGetSipStatusHistory: (requestData, requestMetadata = new GrpcMetadata()) => {
|
|
1634
1665
|
return this.handler.handle({
|
|
1635
1666
|
type: GrpcCallType.unary,
|
|
1636
1667
|
client: this.client,
|
|
1637
|
-
path: '/ondewo.sip.Sip/
|
|
1668
|
+
path: '/ondewo.sip.Sip/SipGetSipStatusHistory',
|
|
1638
1669
|
requestData,
|
|
1639
1670
|
requestMetadata,
|
|
1640
1671
|
requestClass: googleProtobuf000.Empty,
|
|
@@ -1642,35 +1673,35 @@ class SipClient {
|
|
|
1642
1673
|
});
|
|
1643
1674
|
},
|
|
1644
1675
|
/**
|
|
1645
|
-
* Unary call: /ondewo.sip.Sip/
|
|
1676
|
+
* Unary call: /ondewo.sip.Sip/SipPlayWavFiles
|
|
1646
1677
|
*
|
|
1647
1678
|
* @param requestMessage Request message
|
|
1648
1679
|
* @param requestMetadata Request metadata
|
|
1649
1680
|
* @returns Observable<GrpcEvent<thisProto.SipStatus>>
|
|
1650
1681
|
*/
|
|
1651
|
-
|
|
1682
|
+
sipPlayWavFiles: (requestData, requestMetadata = new GrpcMetadata()) => {
|
|
1652
1683
|
return this.handler.handle({
|
|
1653
1684
|
type: GrpcCallType.unary,
|
|
1654
1685
|
client: this.client,
|
|
1655
|
-
path: '/ondewo.sip.Sip/
|
|
1686
|
+
path: '/ondewo.sip.Sip/SipPlayWavFiles',
|
|
1656
1687
|
requestData,
|
|
1657
1688
|
requestMetadata,
|
|
1658
|
-
requestClass:
|
|
1689
|
+
requestClass: SipPlayWavFilesRequest,
|
|
1659
1690
|
responseClass: SipStatus
|
|
1660
1691
|
});
|
|
1661
1692
|
},
|
|
1662
1693
|
/**
|
|
1663
|
-
* Unary call: /ondewo.sip.Sip/
|
|
1694
|
+
* Unary call: /ondewo.sip.Sip/SipMute
|
|
1664
1695
|
*
|
|
1665
1696
|
* @param requestMessage Request message
|
|
1666
1697
|
* @param requestMetadata Request metadata
|
|
1667
1698
|
* @returns Observable<GrpcEvent<thisProto.SipStatus>>
|
|
1668
1699
|
*/
|
|
1669
|
-
|
|
1700
|
+
sipMute: (requestData, requestMetadata = new GrpcMetadata()) => {
|
|
1670
1701
|
return this.handler.handle({
|
|
1671
1702
|
type: GrpcCallType.unary,
|
|
1672
1703
|
client: this.client,
|
|
1673
|
-
path: '/ondewo.sip.Sip/
|
|
1704
|
+
path: '/ondewo.sip.Sip/SipMute',
|
|
1674
1705
|
requestData,
|
|
1675
1706
|
requestMetadata,
|
|
1676
1707
|
requestClass: googleProtobuf000.Empty,
|
|
@@ -1678,17 +1709,17 @@ class SipClient {
|
|
|
1678
1709
|
});
|
|
1679
1710
|
},
|
|
1680
1711
|
/**
|
|
1681
|
-
* Unary call: /ondewo.sip.Sip/
|
|
1712
|
+
* Unary call: /ondewo.sip.Sip/SipUnMute
|
|
1682
1713
|
*
|
|
1683
1714
|
* @param requestMessage Request message
|
|
1684
1715
|
* @param requestMetadata Request metadata
|
|
1685
1716
|
* @returns Observable<GrpcEvent<thisProto.SipStatus>>
|
|
1686
1717
|
*/
|
|
1687
|
-
|
|
1718
|
+
sipUnMute: (requestData, requestMetadata = new GrpcMetadata()) => {
|
|
1688
1719
|
return this.handler.handle({
|
|
1689
1720
|
type: GrpcCallType.unary,
|
|
1690
1721
|
client: this.client,
|
|
1691
|
-
path: '/ondewo.sip.Sip/
|
|
1722
|
+
path: '/ondewo.sip.Sip/SipUnMute',
|
|
1692
1723
|
requestData,
|
|
1693
1724
|
requestMetadata,
|
|
1694
1725
|
requestClass: googleProtobuf000.Empty,
|
|
@@ -1699,141 +1730,141 @@ class SipClient {
|
|
|
1699
1730
|
this.client = clientFactory.createClient('ondewo.sip.Sip', settings);
|
|
1700
1731
|
}
|
|
1701
1732
|
/**
|
|
1702
|
-
* Unary call @/ondewo.sip.Sip/
|
|
1733
|
+
* Unary call @/ondewo.sip.Sip/SipStartSession
|
|
1703
1734
|
*
|
|
1704
1735
|
* @param requestMessage Request message
|
|
1705
1736
|
* @param requestMetadata Request metadata
|
|
1706
1737
|
* @returns Observable<thisProto.SipStatus>
|
|
1707
1738
|
*/
|
|
1708
|
-
|
|
1739
|
+
sipStartSession(requestData, requestMetadata = new GrpcMetadata()) {
|
|
1709
1740
|
return this.$raw
|
|
1710
|
-
.
|
|
1741
|
+
.sipStartSession(requestData, requestMetadata)
|
|
1711
1742
|
.pipe(throwStatusErrors(), takeMessages());
|
|
1712
1743
|
}
|
|
1713
1744
|
/**
|
|
1714
|
-
* Unary call @/ondewo.sip.Sip/
|
|
1745
|
+
* Unary call @/ondewo.sip.Sip/SipEndSession
|
|
1715
1746
|
*
|
|
1716
1747
|
* @param requestMessage Request message
|
|
1717
1748
|
* @param requestMetadata Request metadata
|
|
1718
1749
|
* @returns Observable<thisProto.SipStatus>
|
|
1719
1750
|
*/
|
|
1720
|
-
|
|
1751
|
+
sipEndSession(requestData, requestMetadata = new GrpcMetadata()) {
|
|
1721
1752
|
return this.$raw
|
|
1722
|
-
.
|
|
1753
|
+
.sipEndSession(requestData, requestMetadata)
|
|
1723
1754
|
.pipe(throwStatusErrors(), takeMessages());
|
|
1724
1755
|
}
|
|
1725
1756
|
/**
|
|
1726
|
-
* Unary call @/ondewo.sip.Sip/
|
|
1757
|
+
* Unary call @/ondewo.sip.Sip/SipStartCall
|
|
1727
1758
|
*
|
|
1728
1759
|
* @param requestMessage Request message
|
|
1729
1760
|
* @param requestMetadata Request metadata
|
|
1730
1761
|
* @returns Observable<thisProto.SipStatus>
|
|
1731
1762
|
*/
|
|
1732
|
-
|
|
1763
|
+
sipStartCall(requestData, requestMetadata = new GrpcMetadata()) {
|
|
1733
1764
|
return this.$raw
|
|
1734
|
-
.
|
|
1765
|
+
.sipStartCall(requestData, requestMetadata)
|
|
1735
1766
|
.pipe(throwStatusErrors(), takeMessages());
|
|
1736
1767
|
}
|
|
1737
1768
|
/**
|
|
1738
|
-
* Unary call @/ondewo.sip.Sip/
|
|
1769
|
+
* Unary call @/ondewo.sip.Sip/SipEndCall
|
|
1739
1770
|
*
|
|
1740
1771
|
* @param requestMessage Request message
|
|
1741
1772
|
* @param requestMetadata Request metadata
|
|
1742
1773
|
* @returns Observable<thisProto.SipStatus>
|
|
1743
1774
|
*/
|
|
1744
|
-
|
|
1775
|
+
sipEndCall(requestData, requestMetadata = new GrpcMetadata()) {
|
|
1745
1776
|
return this.$raw
|
|
1746
|
-
.
|
|
1777
|
+
.sipEndCall(requestData, requestMetadata)
|
|
1747
1778
|
.pipe(throwStatusErrors(), takeMessages());
|
|
1748
1779
|
}
|
|
1749
1780
|
/**
|
|
1750
|
-
* Unary call @/ondewo.sip.Sip/
|
|
1781
|
+
* Unary call @/ondewo.sip.Sip/SipTransferCall
|
|
1751
1782
|
*
|
|
1752
1783
|
* @param requestMessage Request message
|
|
1753
1784
|
* @param requestMetadata Request metadata
|
|
1754
1785
|
* @returns Observable<thisProto.SipStatus>
|
|
1755
1786
|
*/
|
|
1756
|
-
|
|
1787
|
+
sipTransferCall(requestData, requestMetadata = new GrpcMetadata()) {
|
|
1757
1788
|
return this.$raw
|
|
1758
|
-
.
|
|
1789
|
+
.sipTransferCall(requestData, requestMetadata)
|
|
1759
1790
|
.pipe(throwStatusErrors(), takeMessages());
|
|
1760
1791
|
}
|
|
1761
1792
|
/**
|
|
1762
|
-
* Unary call @/ondewo.sip.Sip/
|
|
1793
|
+
* Unary call @/ondewo.sip.Sip/SipRegisterAccount
|
|
1763
1794
|
*
|
|
1764
1795
|
* @param requestMessage Request message
|
|
1765
1796
|
* @param requestMetadata Request metadata
|
|
1766
1797
|
* @returns Observable<thisProto.SipStatus>
|
|
1767
1798
|
*/
|
|
1768
|
-
|
|
1799
|
+
sipRegisterAccount(requestData, requestMetadata = new GrpcMetadata()) {
|
|
1769
1800
|
return this.$raw
|
|
1770
|
-
.
|
|
1801
|
+
.sipRegisterAccount(requestData, requestMetadata)
|
|
1771
1802
|
.pipe(throwStatusErrors(), takeMessages());
|
|
1772
1803
|
}
|
|
1773
1804
|
/**
|
|
1774
|
-
* Unary call @/ondewo.sip.Sip/
|
|
1805
|
+
* Unary call @/ondewo.sip.Sip/SipGetSipStatus
|
|
1775
1806
|
*
|
|
1776
1807
|
* @param requestMessage Request message
|
|
1777
1808
|
* @param requestMetadata Request metadata
|
|
1778
1809
|
* @returns Observable<thisProto.SipStatus>
|
|
1779
1810
|
*/
|
|
1780
|
-
|
|
1811
|
+
sipGetSipStatus(requestData, requestMetadata = new GrpcMetadata()) {
|
|
1781
1812
|
return this.$raw
|
|
1782
|
-
.
|
|
1813
|
+
.sipGetSipStatus(requestData, requestMetadata)
|
|
1783
1814
|
.pipe(throwStatusErrors(), takeMessages());
|
|
1784
1815
|
}
|
|
1785
1816
|
/**
|
|
1786
|
-
* Unary call @/ondewo.sip.Sip/
|
|
1817
|
+
* Unary call @/ondewo.sip.Sip/SipGetSipStatusHistory
|
|
1787
1818
|
*
|
|
1788
1819
|
* @param requestMessage Request message
|
|
1789
1820
|
* @param requestMetadata Request metadata
|
|
1790
1821
|
* @returns Observable<thisProto.SipStatusHistoryResponse>
|
|
1791
1822
|
*/
|
|
1792
|
-
|
|
1823
|
+
sipGetSipStatusHistory(requestData, requestMetadata = new GrpcMetadata()) {
|
|
1793
1824
|
return this.$raw
|
|
1794
|
-
.
|
|
1825
|
+
.sipGetSipStatusHistory(requestData, requestMetadata)
|
|
1795
1826
|
.pipe(throwStatusErrors(), takeMessages());
|
|
1796
1827
|
}
|
|
1797
1828
|
/**
|
|
1798
|
-
* Unary call @/ondewo.sip.Sip/
|
|
1829
|
+
* Unary call @/ondewo.sip.Sip/SipPlayWavFiles
|
|
1799
1830
|
*
|
|
1800
1831
|
* @param requestMessage Request message
|
|
1801
1832
|
* @param requestMetadata Request metadata
|
|
1802
1833
|
* @returns Observable<thisProto.SipStatus>
|
|
1803
1834
|
*/
|
|
1804
|
-
|
|
1835
|
+
sipPlayWavFiles(requestData, requestMetadata = new GrpcMetadata()) {
|
|
1805
1836
|
return this.$raw
|
|
1806
|
-
.
|
|
1837
|
+
.sipPlayWavFiles(requestData, requestMetadata)
|
|
1807
1838
|
.pipe(throwStatusErrors(), takeMessages());
|
|
1808
1839
|
}
|
|
1809
1840
|
/**
|
|
1810
|
-
* Unary call @/ondewo.sip.Sip/
|
|
1841
|
+
* Unary call @/ondewo.sip.Sip/SipMute
|
|
1811
1842
|
*
|
|
1812
1843
|
* @param requestMessage Request message
|
|
1813
1844
|
* @param requestMetadata Request metadata
|
|
1814
1845
|
* @returns Observable<thisProto.SipStatus>
|
|
1815
1846
|
*/
|
|
1816
|
-
|
|
1847
|
+
sipMute(requestData, requestMetadata = new GrpcMetadata()) {
|
|
1817
1848
|
return this.$raw
|
|
1818
|
-
.
|
|
1849
|
+
.sipMute(requestData, requestMetadata)
|
|
1819
1850
|
.pipe(throwStatusErrors(), takeMessages());
|
|
1820
1851
|
}
|
|
1821
1852
|
/**
|
|
1822
|
-
* Unary call @/ondewo.sip.Sip/
|
|
1853
|
+
* Unary call @/ondewo.sip.Sip/SipUnMute
|
|
1823
1854
|
*
|
|
1824
1855
|
* @param requestMessage Request message
|
|
1825
1856
|
* @param requestMetadata Request metadata
|
|
1826
1857
|
* @returns Observable<thisProto.SipStatus>
|
|
1827
1858
|
*/
|
|
1828
|
-
|
|
1859
|
+
sipUnMute(requestData, requestMetadata = new GrpcMetadata()) {
|
|
1829
1860
|
return this.$raw
|
|
1830
|
-
.
|
|
1861
|
+
.sipUnMute(requestData, requestMetadata)
|
|
1831
1862
|
.pipe(throwStatusErrors(), takeMessages());
|
|
1832
1863
|
}
|
|
1864
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: SipClient, deps: [{ token: GRPC_SIP_CLIENT_SETTINGS, optional: true }, { token: GRPC_CLIENT_FACTORY }, { token: i1.GrpcHandler }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1865
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: SipClient, providedIn: 'any' }); }
|
|
1833
1866
|
}
|
|
1834
|
-
|
|
1835
|
-
SipClient.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: SipClient, providedIn: 'any' });
|
|
1836
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImport: i0, type: SipClient, decorators: [{
|
|
1867
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.6", ngImport: i0, type: SipClient, decorators: [{
|
|
1837
1868
|
type: Injectable,
|
|
1838
1869
|
args: [{ providedIn: 'any' }]
|
|
1839
1870
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -1850,5 +1881,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.0", ngImpor
|
|
|
1850
1881
|
* Generated bundle index. Do not edit.
|
|
1851
1882
|
*/
|
|
1852
1883
|
|
|
1853
|
-
export {
|
|
1884
|
+
export { GRPC_SIP_CLIENT_SETTINGS, SipClient, SipEndCallRequest, SipPlayWavFilesRequest, SipRegisterAccountRequest, SipStartCallRequest, SipStartSessionRequest, SipStatus, SipStatusHistoryResponse, SipTransferCallRequest };
|
|
1854
1885
|
//# sourceMappingURL=ondewo-sip-client-angular.mjs.map
|