Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update BYON-CallHandling-Service.yaml - 201 session created, 200 session updated, 204 session updated & examples #44

Merged
merged 3 commits into from
Jul 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 39 additions & 23 deletions code/API_definitions/BYON-CallHandling-Service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,15 @@ paths:
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
responses:
'201':
description: Created
content:
application/json:
schema:
$ref: '#/components/schemas/VvoipSessionInformation'
examples:
SessionCreated:
$ref: '#/components/examples/exVSIResponse'
'400':
$ref: '#/components/responses/Generic400'
'403':
Expand Down Expand Up @@ -153,9 +162,24 @@ paths:
$ref: '#/components/examples/exMT180'
MT200:
$ref: '#/components/examples/exMT200'
Hold:
$ref: '#/components/examples/exMTHold'
Resume:
$ref: '#/components/examples/exMTResume'
responses:
'200':
$ref: '#/components/responses/Generic200'
description: Updated the session status (with SDP data)
content:
application/json:
schema:
$ref: '#/components/schemas/ReceiverSessionStatus'
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':
Expand Down Expand Up @@ -202,6 +226,7 @@ components:
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: 0AEE1B58BAEEDA3EABA42B32EBB3DFE07E9CFF402EAF9EED8EFAAF209EE52FD0BECC5B7CDE645F50DE7D
SessionInvitationNotification:
required:
- originatorAddress
Expand Down Expand Up @@ -291,6 +316,7 @@ components:
$ref: '#/components/schemas/Address'
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
Expand Down Expand Up @@ -351,22 +377,6 @@ components:
- status
- code
- message
ObjectResponse:
type: object
properties:
status:
type: integer
description: HTTP status code returned created
code:
type: string
description: Code given to this created
body:
type: object
description: Response Object
required:
- status
- code
- body
Address:
type: string
description: Sender or Receiver address
Expand Down Expand Up @@ -480,6 +490,18 @@ components:
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"
securitySchemes:
BearerAuth:
type: http
Expand Down Expand Up @@ -555,9 +577,3 @@ components:
status: 503
code: UNAVAILABLE
message: Service unavailable
Generic200:
description: Updated
content:
application/json:
schema:
$ref: '#/components/schemas/ReceiverSessionStatus'