generated from camaraproject/Template_API_Repository
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathwebrtc-call-handling.yaml
837 lines (781 loc) · 37 KB
/
webrtc-call-handling.yaml
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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
openapi: 3.0.3
info:
title: WebRTC Call Handling API
description: |-
## 1. Introduction
This API provides REST API for clients to manage live audio and video sessions
towards the operator's network (IMS network).
To handle audio/video sessions, what we usually known as *calls*, the network
requires to identify both involved parties: caller, the origin, and the callee,
the destination. Once identified the endpoints required to be connected, then
it is required to define *how* to send media from one endpoint to the other.
The first point, *identify the endpoints* is solved in CAMARA via direct API
parameters on the API request. The later, *negotiate how to connect* is solved
sharing SDP information between peers.
In that point, the WebRTC technology is used to simplify the access to the
media, and get a simple and well-known protocol to solve the media transmission
requirement.
Let's dig on it on section 3: API functionality
**Use cases to cover:**
- Functional:
- Ability to create audio and video sessions on the network, this grants
ability to reach any phone number on the public network using your telco
provider rights.
- Ability to retrieve any session, to recover for a network disconnection
or to check current status for any reason.
- Ability to upgrade to video, change sending audio/video parameters, or
notify the network about any modification on your side of the calls.
- Ability to hangup the call. Stop the transmision, and delete your audio
and video session.
- An additional subscription to webrtc-events API is required to receive
incoming events from network side (ex. remote hangup event).
## 2. Relevant terms and definitions
- **clientId**: A unique identifier, assigned by the network, for each client
instance or **racmSession**. It is best practice for the gateway to issue a new
clientId for each login or session. This approach helps the gateway maintain
clear indexing or mapping for quicker processing and simplifies troubleshooting
by clearly distinguishing one session from another.
- **transactionId**: Unique ID associated to the REST _transaction_ created by the
REST client. It is used to correlate requests and responses and help debugging.
- **clientCorrelator**: A unique correlation ID that the client can use to tag
a particular resource representation during a request to create a resource on
the server. This allows the client to ***recover*** from communication failures
during resource creation and therefore avoids re-sending the message in such
situations.
- **WebRTC**: WebRTC is a free and open-source project providing web browsers
and mobile applications with real-time communication via application programming
interfaces. It allows audio and video communication and streaming to work
inside web pages by allowing direct peer-to-peer communication
- **SDP**: Acronym for Session Description Protocol. The SDP is a format for
describing multimedia communication sessions for the purposes of announcement
and invitation.
- **WrtcSDPDescriptor**: Schema to include inside a JSON, a SDP body. You can
obtain an SDP for WebRTC calling using the WebRTC API provided by the browser
or any other media library.
## 3. API functionality
This API allows to create 1-1 voice and video sessions. These, identified by a
unique `vvoipSessionId` can be recovered, updated and terminated via this API
and its methods.
- **POST**: Create a new session using a valid `clientId` from RACM API
- **GET**: Recover an existing session via its unique `vvoipSessionId`
- **DELETE**: Finish an existing session via its unique `vvoipSessionId`
- **PUT**: Update the status of a session via its unique `vvoipSessionId`
To receive server-side updates about the session establishment process, you
must use `webrtc-events` API.
### 3.1. Creating a call
To call someone, you need, previously a valid registration on the network.
You must check the webrtc-registration API to retrieve a valid registration
on the network that allows you to send calls (IMS registration).
Once this is completed, you can consume the POST /sessions/ endpoint to call
to a remote destination.
```
POST /webrtc-call-handling/vwip/sessions
{
"originatorAddress": "tel:+17085852753",
"receiverAddress": "tel:+17085854000",
"clientCorrelator": "fda6e26d-e7c8-4596-870c-c083c0d39b2c"
}
```
This will create a call, but without local media you will have a problem, or
maybe the network will reject your call. You need to add a local SDP offer.
> **The WebRTC SDP local candidate**
>
> What is usually done, before attempt to create a call, is to solve the SDP local
description. This is, how you are going to send the media. To explain it briefly,
browsers offer the
[WebRTC API](https://developer.mozilla.org/en-US/docs/Web/API/WebRTC_API) that
include `getUserMedia()` and `RTCPeerConnection` interfaces that will simplify
the process.
>
> In summary, we need to obtain the media, create the `RTCPeerConnection`
and use it's SDP on our CAMARA webrtc-call-handling API as the offer. There
is extra information about this concept on the SupportingDocuments folder.
Once you retrieve you local SDP offer, you modify your session including it,
or maybe you prefer to solve the local candidate before attempt the call, in
that case, you will include your local offer on the audio/video session creation.
```
POST /webrtc-call-handling/vwip/sessions
{
"originatorAddress": "tel:+17085852753",
"receiverAddress": "tel:+17085854000",
"offer": {
"sdp": "v=0\r\no=- 4808447918291752114 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE 0\r\na=extmap-allow-mixed\r\na=msid-semantic: WMS 0893fb9b-23c2-4571-a26d-13cb0f4fed9f\r\nm=audio 13765 UDP/TLS/RTP/SAVPF 111 63 9 0 8 13 110 126\r\nc=IN IP4 123.123.123.123\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=candidate:959305279 1 udp 2113937151 26e1f6e6-f0cb-47fb-a1b4-afa62b6a7f29.local 50745 typ host generation 0 network-cost 999\r\na=candidate:3375440286 1 udp 1677729535 123.123.123.123 13765 typ srflx raddr 0.0.0.0 rport 0 generation 0 network-cost 999\r\na=ice-ufrag:YoUo\r\na=ice-pwd:kK5J6IAgiKFDFU+2rC+FyZal\r\na=ice-options:trickle\r\na=fingerprint:sha-256 CF:56:D8:57:9B:68:B2:1C:F6:ED:6C:CO:02:7C:96:C2:88:A3:C2:38:AD:A2:CA:F5:0D:47:BB:81:74:7B:75:17\r\na=setup:actpass\r\na=mid:0\r\na=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level\r\na=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01\r\na=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid\r\na=sendrecv\r\na=msid:0893fb9b-23c2-4571-a26d-13cb0f4fed9f 2daf5a1e-d3bf-4d4e-95db-b8623fce4176\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:111 opus/48000/2\r\na=rtcp-fb:111 transport-cc\r\na=fmtp:111 minptime=10;useinbandfec=1\r\na=rtpmap:63 red/48000/2\r\na=fmtp:63 111/111\r\na=rtpmap:9 G722/8000\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:13 CN/8000\r\na=rtpmap:110 telephone-event/48000\r\na=rtpmap:126 telephone-event/8000\r\na=ssrc:932268938 cname:mzxQSFSDV3JpfIJY\r\na=ssrc:932268938 msid:0893fb9b-23c2-4571-a26d-13ccof4fed9f 2daf5a1e-d3bf-4d4e-95db-b8623fce4176\r\n"
},
"clientCorrelator": "fda6e26d-e7c8-4596-870c-c083c0d39b2c"
}
```
Following this point, your call is progressing and the network will inform
about extra information required and connection status via de the
webrtc-events API.
Check inline webrtc-events API inline documentation and supporting documents
for further information.
### 3.2. Hanging up a call
When you have a voice/video session in progress, you can decide to finish the
call, to do so, simply execute a DELETE command over the endpoint using the
`vvoipSessionId` obtained on call creation.
This action will trigger all necessary action on the network side to properly
hangup and drop the call.
### 3.3. Picking up a call
Using the `webrtc-events` API, you can receive events from the network, these
events could include the `session-invitation` event. This means that someone
is calling you.
To *hook off*, we need to retrieve the session based on the `vvoipSessionId`
using the GET command, afterwards, you can present to the user some
confirmation option to accept the call.
Final step is to include a local offer. We already seen at 3.1 that a local
SDP is required, in this case, we will use the PUT command to modify the
audio/video session and include the information about the responding endpoint.
Let's say that we are responding this session `0AEE1B58BAEEDA3EABA42B32EBB3DFE0DEAD`:
```
PUT /webrtc-call-handling/vwip/sessions/0AEE1B58BAEEDA3EABA42B32EBB3DFE0DEAD
{
"status": "InProgress",
"answer": {
"sdp": "v=0\r\no=- 4808447918291752114 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=group:BUNDLE 0\r\na=extmap-allow-mixed\r\na=msid-semantic: WMS 0893fb9b-23c2-4571-a26d-13cb0f4fed9f\r\nm=audio 13765 UDP/TLS/RTP/SAVPF 111 63 9 0 8 13 110 126\r\nc=IN IP4 123.123.123.123\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=candidate:959305279 1 udp 2113937151 26e1f6e6-f0cb-47fb-a1b4-afa62b6a7f29.local 50745 typ host generation 0 network-cost 999\r\na=candidate:3375440286 1 udp 1677729535 123.123.123.123 13765 typ srflx raddr 0.0.0.0 rport 0 generation 0 network-cost 999\r\na=ice-ufrag:YoUo\r\na=ice-pwd:kK5J6IAgiKFDFU+2rC+FyZal\r\na=ice-options:trickle\r\na=fingerprint:sha-256 CF:56:D8:57:9B:68:B2:1C:F6:ED:6C:CO:02:7C:96:C2:88:A3:C2:38:AD:A2:CA:F5:0D:47:BB:81:74:7B:75:17\r\na=setup:actpass\r\na=mid:0\r\na=extmap:1 urn:ietf:params:rtp-hdrext:ssrc-audio-level\r\na=extmap:2 http://www.webrtc.org/experiments/rtp-hdrext/abs-send-time\r\na=extmap:3 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01\r\na=extmap:4 urn:ietf:params:rtp-hdrext:sdes:mid\r\na=sendrecv\r\na=msid:0893fb9b-23c2-4571-a26d-13cb0f4fed9f 2daf5a1e-d3bf-4d4e-95db-b8623fce4176\r\na=rtcp-mux\r\na=rtcp-rsize\r\na=rtpmap:111 opus/48000/2\r\na=rtcp-fb:111 transport-cc\r\na=fmtp:111 minptime=10;useinbandfec=1\r\na=rtpmap:63 red/48000/2\r\na=fmtp:63 111/111\r\na=rtpmap:9 G722/8000\r\na=rtpmap:0 PCMU/8000\r\na=rtpmap:8 PCMA/8000\r\na=rtpmap:13 CN/8000\r\na=rtpmap:110 telephone-event/48000\r\na=rtpmap:126 telephone-event/8000\r\na=ssrc:932268938 cname:mzxQSFSDV3JpfIJY\r\na=ssrc:932268938 msid:0893fb9b-23c2-4571-a26d-13ccof4fed9f 2daf5a1e-d3bf-4d4e-95db-b8623fce4176\r\n"
}
}
```
## 4. Authorization and authentication
The "Camara Security and Interoperability Profile" provides details of how an
API consumer requests an access token. Please refer to Identity and Consent
Management (https://github.com/camaraproject/IdentityAndConsentManagement/)
for the released version of the profile.
The specific authorization flows to be used will be agreed upon during the
onboarding process, happening between the API consumer and the API provider,
taking into account the declared purpose for accessing the API, whilst also
being subject to the prevailing legal framework dictated by local legislation.
In cases where personal data is processed by the API and users can exercise
their rights through mechanisms such as opt-in and/or opt-out, the use of
three-legged access tokens is mandatory. This ensures that the API remains
in compliance with privacy regulations, upholding the principles of
transparency and user-centric privacy-by-design.
contact:
email: contact@domain.com
license:
name: Apache 2.0
url: 'http://www.apache.org/licenses/LICENSE-2.0.html'
version: vwip
x-camara-commonalities: 0.5
servers:
- url: '{apiRoot}/webrtc-call-handling/vwip'
variables:
apiRoot:
description: API root
default: 'http://localhost:9091'
paths:
/sessions:
post:
summary: Creates voice and/or video session
description: Creates a voice and/or video session
operationId: postSessions
parameters:
- $ref: '#/components/parameters/hdrTransactionId'
- $ref: '#/components/parameters/hdrClientId'
security:
- openId:
- webrtc-call-handling:sessions:create
requestBody:
description: Provide the information required for session creation
content:
application/json:
schema:
$ref: '#/components/schemas/VvoipSessionInformation'
examples:
VVOIP session request:
$ref: '#/components/examples/exVSIRequest'
responses:
'201':
description: Created
content:
application/json:
schema:
$ref: '#/components/schemas/VvoipSessionInformation'
examples:
SessionCreated:
$ref: '#/components/examples/exVSIResponse'
'400':
$ref: '#/components/responses/Generic400'
'403':
$ref: '#/components/responses/Generic403'
'500':
$ref: '#/components/responses/Generic500'
'503':
$ref: '#/components/responses/Generic503'
/sessions/{vvoipSessionId}:
get:
summary: Get the vvoip session information
description: |
Get the VVoIP Session description based on `vvoipSessionId`.
** The client shall construct the API path using the `vvoipSessionId` supplied
in the session creation response (origination) or in the invitation notification
(termination). **
operationId: getSessionDetailsById
parameters:
- $ref: '#/components/parameters/hdrTransactionId'
- $ref: '#/components/parameters/hdrClientId'
- $ref: '#/components/parameters/pathParamVvoipSessionId'
security:
- openId:
- webrtc-call-handling:sessions:read
responses:
'200':
description: A session information
content:
application/json:
schema:
$ref: '#/components/schemas/VvoipSessionInformation'
'401':
$ref: '#/components/responses/Generic401'
'403':
$ref: '#/components/responses/Generic403'
'404':
$ref: '#/components/responses/Generic404'
'500':
$ref: '#/components/responses/Generic500'
'503':
$ref: '#/components/responses/Generic503'
delete:
summary: Cancel or Terminate the vvoip session
description: >
Cancel a 1-1 vvoip session (as originator),
Decline a 1-1 vvoip session (as receiver),
Terminate a 1-1 an ongoing vvoip session
** The client shall construct the API path using the vvoipSessionId supplied in the session creation response (origination) or in the invitation notification (termination). **'
operationId: deleteSessionById
parameters:
- $ref: '#/components/parameters/hdrTransactionId'
- $ref: '#/components/parameters/hdrClientId'
- $ref: '#/components/parameters/pathParamVvoipSessionId'
security:
- openId:
- webrtc-call-handling:sessions:delete
responses:
'204':
description: Session deleted
'401':
$ref: '#/components/responses/Generic401'
'403':
$ref: '#/components/responses/Generic403'
'404':
$ref: '#/components/responses/Generic404'
'500':
$ref: '#/components/responses/Generic500'
'503':
$ref: '#/components/responses/Generic503'
/sessions/{vvoipSessionId}/status:
put:
summary: Update the status of the vvoip session
description: |
Update the status of the vvoip session, this may include updating SDP media
** The client shall construct the API path using the vvoipSessionId supplied in the session creation response (origination) or in the invitation notification (termination). **'
operationId: postSessionStatus
parameters:
- $ref: '#/components/parameters/hdrTransactionId'
- $ref: '#/components/parameters/hdrClientId'
- $ref: '#/components/parameters/pathParamVvoipSessionId'
security:
- openId:
- webrtc-call-handling:sessions:write
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/VvoipSessionInformation'
examples:
MT183:
$ref: '#/components/examples/exMT183'
MT180:
$ref: '#/components/examples/exMT180'
MT200:
$ref: '#/components/examples/exMT200'
Hold:
$ref: '#/components/examples/exMTHold'
Resume:
$ref: '#/components/examples/exMTResume'
responses:
'200':
description: Updated the session status (with SDP data)
content:
application/json:
schema:
$ref: '#/components/schemas/VvoipSessionInformation'
examples:
Hold:
$ref: '#/components/examples/exMTHold'
Resume:
$ref: '#/components/examples/exMTResume'
'204':
description: Updated the session status (no content)
'401':
$ref: '#/components/responses/Generic401'
'403':
$ref: '#/components/responses/Generic403'
'404':
$ref: '#/components/responses/Generic404'
'500':
$ref: '#/components/responses/Generic500'
'503':
$ref: '#/components/responses/Generic503'
components:
securitySchemes:
openId:
type: openIdConnect
openIdConnectUrl: https://example.com/.well-known/openid-configuration
headers:
x-correlator:
description: Correlation id for the different services
schema:
type: string
pattern: ^[a-zA-Z0-9-]{0,55}$
parameters:
hdrClientId:
name: clientId
in: header
description: The Client Id assigned by WebRTC GW
required: true
style: simple
explode: false
schema:
type: string
hdrTransactionId:
name: transactionId
in: header
description: Transaction Id associated with the request
required: true
style: simple
explode: false
schema:
type: string
pathParamVvoipSessionId:
name: vvoipSessionId
in: path
description: The sessionId assigned by the WebRTC GW for the vvoip session
required: true
style: simple
explode: false
schema:
type: string
x-correlator:
name: x-correlator
in: header
description: Correlation id for the different services
schema:
type: string
pattern: ^[a-zA-Z0-9-]{0,55}$
example: "b4333c46-49c0-4f62-80d7-f0ef930f1c46"
schemas:
VvoipSessionInformation:
type: object
properties:
originatorAddress:
$ref: '#/components/schemas/Address'
originatorName:
type: string
description: Friendly name of the call originator
example: 'Alice'
receiverAddress:
$ref: '#/components/schemas/Address'
receiverName:
type: string
description: Friendly name of the call terminator
example: 'Bob'
status:
$ref: '#/components/schemas/SessionStatus'
offer:
$ref: '#/components/schemas/WrtcSDPDescriptor'
answer:
$ref: '#/components/schemas/WrtcSDPDescriptor'
clientCorrelator:
type: string
description: >-
A correlator that the client can use to tag this particular resource representation
during a request to create a resource on the server. Note - This allows the client to
recover from communication failures during resource creation and therefore avoids
re-sending the message in such situations. In case the element is present, the WebRTC
GW shall not alter its value, and shall provide it as part of the representation of
this resource.
example: 1c1c3e8d-8f9d-4167-ac78-929ba0b21051
vvoipSessionId:
type: string
description: >-
The VVOIP session ID created by WebRTC Gateway. The vvoipSessionId shall not be
included in POST requests by the client, but must be included in the notifications
from the WebRTC GW to client.
example: 0AEE1B58BAEEDA3EABA42B32EBB3DFE07E9CFF402EAF9EED8EF
callObjectRef:
type: string
description: The reference to the call object
example: 84c742ba-a117-4e38-a089-1545073ce15c
serverCorrelator:
type: string
description: >-
A correlator that the server instructs the client to use for end to end correlation.
example: 1492d270-8ca6-4367-9d1b-edd2fbd7f81b
offerRequired:
type: boolean
description: >-
This element shall be included and set to true, if the session updates are received
without SDP offer. This element indicates clients to send the offer.
example: false
reason:
type: string
description: The description of the event that has happened within the session
example: 183 Progress
sequenceNumber:
type: integer
description: The sequence number of the notification sent to client
example: 345
WrtcSDPDescriptor:
type: object
description: |-
**OFFER**: An inlined session description in SDP format [RFC4566].If XML syntax
is used, the content of this element SHALL be embedded in a CDATA
section.
**ANSWER**: This type represents an answer in WebRTC Signaling. This element is not
present in case there is no answer yet, or the session invitation has
been declined by the Terminating Participant.This element MUST NOT be
present in a request from the application to the server to create a
session.
properties:
sdp:
type: string
description: |-
An inlined session description in SDP format [RFC4566].If XML syntax is used, the content of this element SHALL be embedded in a CDATA section
SessionNotification:
allOf:
- $ref: '#/components/schemas/VvoipSessionInformation'
required:
- status
- vvoipSessionId
SessionStatus:
type: string
description: Provides the status of the VVOIP session. During the session creation, this attribute SHALL NOT be included in the request.
enum:
- Initial
- InProgress
- Ringing
- Proceeding
- Connected
- Terminated
- Hold
- Resume
- SessionCancelled
- Declined
- Failed
- Waiting
- NoAnswer
- NotReachable
- Busy
example: Ringing
ErrorInfo:
type: object
required:
- message
- status
- code
properties:
message:
type: string
description: A human readable description of what the event represent
status:
type: integer
description: HTTP response status code
code:
type: string
description: Friendly Code to describe the error
Address:
type: string
description: Subscriber address (Sender or Receiver)
pattern: '^(tel:+[0-9]{5,15}|sip:.+@.+|.+)$'
example: 'tel:+11234567899'
examples:
exVSIRequest:
value:
originatorAddress: tel:+17085852753
originatorName: tel:+17085852753
receiverAddress: tel:+17085854000
receiverName: tel:+17085854000
offer:
sdp: "v=0\r\no=- 8066321617929821805 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\nm=audio 42988 RTP/SAVPF 102 113\r\nc=IN IP6 2001:e0:410:2448:7a05:9b11:66f2:c9e\r\nb=AS:64\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=candidate:1645903805 1 udp 2122262783 2001:e0:410:2448:7a05:9b11:66f2:c9e 42988 typ host generation 0 network-id 3 network-cost 900\r\na=ice-ufrag:4eKp\r\na=ice-pwd:D4sF5Pv9vx9ggaqxBlHbAFMx\r\na=ice-options:trickle renomination\r\na=mid:audio\r\na=extmap:2 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01\r\na=sendrecv\r\na=rtcp-mux\r\na=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:Xm3YciqVIWFNSwy19e9MvfZ2YOdAZil7oT/tHjdf\r\na=rtpmap:102 AMR-WB/16000\r\na=fmtp:102 octet-align=0; mode-set=0,1,2; mode-change-capability=2\r\na=rtpmap:113 telephone-event/16000\r\n"
clientCorrelator: fda6e26d-e7c8-4596-870c-c083c0d39b2c
exVSIResponse:
value:
originatorAddress: 'tel:+17085852753'
originatorName: 'tel:+17085852753'
receiverAddress: 'tel:+17085854000'
receiverName: 'tel:+17085854000'
clientCorrelator: fda6e26d-e7c8-4596-870c-c083c0d39b2c
offer:
sdp: "v=0\r\no=- 8066321617929821805 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\nm=audio 42988 RTP/SAVPF 102 113\r\nc=IN IP6 2001:e0:410:2448:7a05:9b11:66f2:c9e\r\nb=AS:64\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=candidate:1645903805 1 udp 2122262783 2001:e0:410:2448:7a05:9b11:66f2:c9e 42988 typ host generation 0 network-id 3 network-cost 900\r\na=ice-ufrag:4eKp\r\na=ice-pwd:D4sF5Pv9vx9ggaqxBlHbAFMx\r\na=ice-options:trickle renomination\r\na=mid:audio\r\na=extmap:2 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01\r\na=sendrecv\r\na=rtcp-mux\r\na=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:Xm3YciqVIWFNSwy19e9MvfZ2YOdAZil7oT/tHjdf\r\na=rtpmap:102 AMR-WB/16000\r\na=fmtp:102 octet-align=0; mode-set=0,1,2; mode-change-capability=2\r\na=rtpmap:113 telephone-event/16000\r\n"
status: Initial
vvoipSessionId: 0AEE1B58BAEEDA3EABA42B32EBB3DFE0DEAD3F90AE0CEB9EEB0C0F703E199FC00E7C6E648F50EE885FF0CE6C7E1CEE795EDD
exMT183:
value:
receiverSessionStatus:
status: InProgress
answer:
sdp: >
"v=0\r\no=- 8066321617929821805 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0
0\r\nm=
audio 42988 RTP/SAVPF 102 113\r\nc=IN IP6
2001:e0:410:2448:7a05:9b11:66f2
:c9e\r\nb=AS:64\r\na=rtcp:9 IN IP4
0.0.0.0\r\na=candidate:1645903805 1 udp
2122262783 2001:e0:410:2448:7a05:9b11:66f2:c9e 42988 typhost
generation 0
network-id 3 network-cost
900\r\na=ice-ufrag:4eKp\r\na=ice-pwd:D4sF5Pv9vx9
ggaqxBlHbAFMx\r\na=ice-options:trickle
renomination\r\na=mid:audio\r\na=
extmap:2
http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions
-01\r\na=sendrecv\r\na=rtcp-mux\r\na=crypto:1
AES_CM_128_HMAC_SHA1_80 inline:Xm
3YciqVIWFNSwy19e9MvfZ2YOdAZil7oT/tHjdf\r\na=rtpmap:102
AMR-WB/16000\r\na=fmtp:102
octet-align=0; mode-set=0,1,2;
mode-change-capability=2\r\na=rtpmap:113
telephone-event/16000\r\n"
exMT180:
value:
receiverSessionStatus:
status: Ringing
exMT200:
value:
receiverSessionStatus:
status: Connected
answer:
sdp: >
"v=0\r\no=- 4576312012535546667 4 IN IP4 127.0.0.1\r\ns=-\r\nt=0
0\r\nm=audio 47510 RTP/SAVPF 102 113\r\nc=IN
IP6 2001:e0:410:243a:a344:cee7:7b39:bb1e\r\nb=AS:64\r\na=rtcp:9 IN
IP4 0.0.0.0\r\na=candidate:3108871805 1 udp
2122262783 2001:e0:410:243a:a344:cee7:7b39:bb1e 47510 typ host
generation 0 network-id 3 network-cost 900\r\na=
ice-ufrag:47Nx\r\na=ice-pwd:ln3CttOSkObcQ7A0tYO1LXqy\r\na=ice-options:trickle
renomination\r\na=mid:audio\r\na=
extmap:2
http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01\r\na=sendrecv\r\na=rtcp-mux\r
\na=crypto:1 AES_CM_128_HMAC_SHA1_80
inline:ruAnBNYnTJqDVZAIJV59VpQ5DxGI6tMX9h9kkHSz\r\na=rtpmap:102
AMR-WAB/16000
\r\na=fmtp:102 octet-align=0; mode-set=0,1,2;
mode-change-capability=2\r\na=rtpmap:113
telephone-event/16000\r\na=
ptime:20\r\n"
exMTHold:
value:
ReceiverSessionStatus:
status: Hold
answer:
sdp: "v=0\r\no=- 4576312012535546667 4 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\nm=audio 47510 RTP/SAVPF 102 113\r\nc=IN IP6 2001:e0:410:243a:a344:cee7:7b39:bb1e\r\nb=AS:64\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=candidate:3108871805 1 udp 2122262783 2001:e0:410:243a:a344:cee7:7b39:bb1e 47510 typ host generation 0 network-id 3 network-cost 900\r\na=ice-ufrag:47Nx\r\na=ice-pwd:ln3CttOSkObcQ7A0tYO1LXqy\r\na=ice-options:trickle renomination\r\na=mid:audio\r\na=extmap:2 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01\r\na=sendrecv\r\na=rtcp-mux\r\na=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:ruAnBNYnTJqDVZAIJV59VpQ5DxGI6tMX9h9kkHSz\r\na=rtpmap:102 AMR-WB/16000\r\na=fmtp:102 octet-align=0; mode-set=0,1,2; mode-change-capability=2\r\na=rtpmap:113 telephone-event/16000\r\na=ptime:20\r\n"
exMTResume:
value:
ReceiverSessionStatus:
status: Resume
answer:
sdp: "v=0\r\no=- 4576312012535546667 4 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\nm=audio 47510 RTP/SAVPF 102 113\r\nc=IN IP6 2001:e0:410:243a:a344:cee7:7b39:bb1e\r\nb=AS:64\r\na=rtcp:9 IN IP4 0.0.0.0\r\na=candidate:3108871805 1 udp 2122262783 2001:e0:410:243a:a344:cee7:7b39:bb1e 47510 typ host generation 0 network-id 3 network-cost 900\r\na=ice-ufrag:47Nx\r\na=ice-pwd:ln3CttOSkObcQ7A0tYO1LXqy\r\na=ice-options:trickle renomination\r\na=mid:audio\r\na=extmap:2 http://www.ietf.org/id/draft-holmer-rmcat-transport-wide-cc-extensions-01\r\na=sendrecv\r\na=rtcp-mux\r\na=crypto:1 AES_CM_128_HMAC_SHA1_80 inline:ruAnBNYnTJqDVZAIJV59VpQ5DxGI6tMX9h9kkHSz\r\na=rtpmap:102 AMR-WB/16000\r\na=fmtp:102 octet-align=0; mode-set=0,1,2; mode-change-capability=2\r\na=rtpmap:113 telephone-event/16000\r\na=ptime:20\r\n"
responses:
Generic400:
description: Bad Request
headers:
x-correlator:
$ref: "#/components/headers/x-correlator"
content:
application/json:
schema:
allOf:
- $ref: "#/components/schemas/ErrorInfo"
- type: object
properties:
status:
enum:
- 400
code:
enum:
- INVALID_ARGUMENT
- OUT_OF_RANGE
examples:
GENERIC_400_INVALID_ARGUMENT:
description: Invalid Argument. Generic Syntax Exception
value:
status: 400
code: INVALID_ARGUMENT
message: Client specified an invalid argument, request body or query param.
GENERIC_400_OUT_OF_RANGE:
description: Out of Range. Specific Syntax Exception used when a given field has a pre-defined range or a invalid filter criteria combination is requested
value:
status: 400
code: OUT_OF_RANGE
message: Client specified an invalid range.
Generic401:
description: Unauthorized
headers:
x-correlator:
$ref: "#/components/headers/x-correlator"
content:
application/json:
schema:
allOf:
- $ref: "#/components/schemas/ErrorInfo"
- type: object
properties:
status:
enum:
- 401
code:
enum:
- UNAUTHENTICATED
- AUTHENTICATION_REQUIRED
examples:
GENERIC_401_UNAUTHENTICATED:
description: Request cannot be authenticated
value:
status: 401
code: UNAUTHENTICATED
message: Request not authenticated due to missing, invalid, or expired credentials.
GENERIC_401_AUTHENTICATION_REQUIRED:
description: New authentication is needed, authentication is no longer valid
value:
status: 401
code: AUTHENTICATION_REQUIRED
message: New authentication is required.
Generic403:
description: Forbidden
headers:
x-correlator:
$ref: "#/components/headers/x-correlator"
content:
application/json:
schema:
allOf:
- $ref: "#/components/schemas/ErrorInfo"
- type: object
properties:
status:
enum:
- 403
code:
enum:
- PERMISSION_DENIED
- INVALID_TOKEN_CONTEXT
examples:
GENERIC_403_PERMISSION_DENIED:
description: Permission denied. OAuth2 token access does not have the required scope or when the user fails operational security
value:
status: 403
code: PERMISSION_DENIED
message: Client does not have sufficient permissions to perform this action.
GENERIC_403_INVALID_TOKEN_CONTEXT:
description: Reflect some inconsistency between information in some field of the API and the related OAuth2 Token
value:
status: 403
code: INVALID_TOKEN_CONTEXT
message: "{{field}} is not consistent with access token."
Generic404:
description: Not found
headers:
x-correlator:
$ref: "#/components/headers/x-correlator"
content:
application/json:
schema:
allOf:
- $ref: "#/components/schemas/ErrorInfo"
- type: object
properties:
status:
enum:
- 404
code:
enum:
- NOT_FOUND
- IDENTIFIER_NOT_FOUND
examples:
GENERIC_404_NOT_FOUND:
description: Resource is not found
value:
status: 404
code: NOT_FOUND
message: The specified resource is not found.
GENERIC_404_IDENTIFIER_NOT_FOUND:
description: Some identifier cannot be matched to a device
value:
status: 404
code: IDENTIFIER_NOT_FOUND
message: Device identifier not found.
Generic500:
description: Internal Server Error
headers:
x-correlator:
$ref: "#/components/headers/x-correlator"
content:
application/json:
schema:
allOf:
- $ref: "#/components/schemas/ErrorInfo"
- type: object
properties:
status:
enum:
- 500
code:
enum:
- INTERNAL
examples:
GENERIC_500_INTERNAL:
description: Problem in Server side. Regular Server Exception
value:
status: 500
code: INTERNAL
message: Unknown server error. Typically a server bug.
Generic501:
description: Not Implemented
headers:
x-correlator:
$ref: "#/components/headers/x-correlator"
content:
application/json:
schema:
allOf:
- $ref: "#/components/schemas/ErrorInfo"
- type: object
properties:
status:
enum:
- 501
code:
enum:
- NOT_IMPLEMENTED
examples:
GENERIC_501_NOT_IMPLEMENTED:
description: Service not implemented. The use of this code should be avoided as far as possible to get the objective to reach aligned implementations
value:
status: 501
code: NOT_IMPLEMENTED
message: This functionality is not implemented yet.
Generic503:
description: Service Unavailable
headers:
x-correlator:
$ref: "#/components/headers/x-correlator"
content:
application/json:
schema:
allOf:
- $ref: "#/components/schemas/ErrorInfo"
- type: object
properties:
status:
enum:
- 503
code:
enum:
- UNAVAILABLE
examples:
GENERIC_503_UNAVAILABLE:
description: Service is not available. Temporary situation usually related to maintenance process in the server side
value:
status: 503
code: UNAVAILABLE
message: Service Unavailable.