Package com.oracle.sdp.mgs.api
Interface MediaGatewayServiceApi
public interface MediaGatewayServiceApi
MediaGatewayServiceApi provides operations for creating, modifying, activating, deactivating,
and deleting media sessions in the Media Gateway Service (MGS) module.
This interface is intended for injection into UAAPPs.
Supported operations:
- Create a new media session
- Modify an existing session
- Activate or deactivate a session
- Delete a session
MediaFactory factory = MediaFactory.getInstance();
MediaGatewayServiceApi api = factory.createMediaGatewayServiceApi();
- Author:
- Copyright (c) 2025 by Oracle, Inc. All Rights Reserved.
-
Method Summary
Modifier and TypeMethodDescriptionActivates a media session.Creates a new media session by invoking the MFE API.Deactivates a media session.Deletes a media session.com.oracle.sdp.mgs.api.model.MediaSessionStatusResultRetrieves the current status of a media session.modifyMediaSession(String id, ModifyMediaRequest req) Modifies an existing media session with the specified ID.
-
Method Details
-
createMediaSession
Creates a new media session by invoking the MFE API.- Parameters:
req- the request to create the media session- Returns:
- the response containing the session ID or error details
-
modifyMediaSession
Modifies an existing media session with the specified ID.- Parameters:
id- the ID of the media session to modifyreq- the request to modify the media session- Returns:
- the response for the modification
-
activateMediaSession
Activates a media session.- Parameters:
id- the session ID to activatereq- the action request (reason should be "activate")- Returns:
- the response after the activation attempt
-
deactivateMediaSession
Deactivates a media session.- Parameters:
id- the session ID to deactivatereq- the action request (reason should be "deactivate")- Returns:
- the response after the deactivation attempt
-
deleteMediaSession
Deletes a media session.- Parameters:
id- the session ID to deletereq- the action request (reason should be "delete")- Returns:
- the response after the deletion attempt
-
getMediaSessionStatus
Retrieves the current status of a media session.- Parameters:
id- media session identifier- Returns:
- MediaSessionStatusResult containing either MediaSession data or ErrorResponse
-