Get the media session information
GET/webrtc/sessions/{mediaSessionId}
Get the media Session description based on mediaSessionId.
** The client shall construct the API path using the mediaSessionId supplied
in the session creation response (origination) or in the invitation notification
(termination). **
Get the media session information
curl https://api.example.com/camara/webrtc/sessions/$MEDIA_SESSION_ID \
-H "Authorization: Bearer $CAMARA_BEARER_TOKEN"{
"answer": {
"sdp": "sdp"
},
"callType": "REGULAR",
"locationDetails": {
"confidence": {
"pdf": "normal",
"value": 0
},
"coordinates": {
"latitude": 0,
"longitude": 0,
"radius": 0
},
"method": "GPS",
"shape": "Circle",
"timestamp": "2019-12-27T18:11:19.117Z"
},
"mediaSessionId": "0AEE1B58BAEEDA3EABA42B32EBB3DFE07E9CFF402EAF9EED8EF",
"offer": {
"sdp": "sdp"
},
"originatorAddress": "tel:+11234567899",
"originatorName": "Alice",
"receiverAddress": "tel:+11234567899",
"receiverName": "Bob",
"status": "Ringing"
}{
"status": 400,
"code": "INVALID_ARGUMENT",
"message": "Client specified an invalid argument, request body or query param."
}{
"status": 400,
"code": "OUT_OF_RANGE",
"message": "Client specified an invalid range."
}{
"status": 401,
"code": "UNAUTHENTICATED",
"message": "Request not authenticated due to missing, invalid, or expired credentials. A new authentication is required."
}{
"status": 403,
"code": "PERMISSION_DENIED",
"message": "Client does not have sufficient permissions to perform this action."
}{
"status": 403,
"code": "INVALID_TOKEN_CONTEXT",
"message": "originator info is not consistent with access token."
}{
"status": 404,
"code": "NOT_FOUND",
"message": "The specified resource is not found."
}{
"status": 404,
"code": "IDENTIFIER_NOT_FOUND",
"message": "Device identifier not found."
}Returns Examples
{
"answer": {
"sdp": "sdp"
},
"callType": "REGULAR",
"locationDetails": {
"confidence": {
"pdf": "normal",
"value": 0
},
"coordinates": {
"latitude": 0,
"longitude": 0,
"radius": 0
},
"method": "GPS",
"shape": "Circle",
"timestamp": "2019-12-27T18:11:19.117Z"
},
"mediaSessionId": "0AEE1B58BAEEDA3EABA42B32EBB3DFE07E9CFF402EAF9EED8EF",
"offer": {
"sdp": "sdp"
},
"originatorAddress": "tel:+11234567899",
"originatorName": "Alice",
"receiverAddress": "tel:+11234567899",
"receiverName": "Bob",
"status": "Ringing"
}{
"status": 400,
"code": "INVALID_ARGUMENT",
"message": "Client specified an invalid argument, request body or query param."
}{
"status": 400,
"code": "OUT_OF_RANGE",
"message": "Client specified an invalid range."
}{
"status": 401,
"code": "UNAUTHENTICATED",
"message": "Request not authenticated due to missing, invalid, or expired credentials. A new authentication is required."
}{
"status": 403,
"code": "PERMISSION_DENIED",
"message": "Client does not have sufficient permissions to perform this action."
}{
"status": 403,
"code": "INVALID_TOKEN_CONTEXT",
"message": "originator info is not consistent with access token."
}{
"status": 404,
"code": "NOT_FOUND",
"message": "The specified resource is not found."
}{
"status": 404,
"code": "IDENTIFIER_NOT_FOUND",
"message": "Device identifier not found."
}