18 Building Intelligent Media Connector UA Applications
When building a SIP Servlet–based user agent (UA) application for the Intelligent Media Connector domain, use the Media Gateway Service API to create and manage media sessions (ingress and egress RTP streams) on the .
The UA application handles SIP signaling (for example, INVITE, ACK, BYE, re-INVITE, and CANCEL) and delegates media session lifecycle management to the Media Gateway Service (MGS). The application does not process RTP directly.
The Media Gateway API provides two high-level objects:
- MediaGatewayServiceApi – Use this to create, modify, deactivate, or delete media sessions as well as to get session status.
- MediaFactory – Use this to obtain the API instance and build CreateMediaRequest, ModifyMediaRequest, and related DTOs (ingress/egress streams, codecs, SDP, etc.).
As a developer, you can use the Media Gateway Service (MGS) APIs directly without worrying about calls to the Media Flow Engines or the RTP Proxies. The MGS handles calls to the Media Flow Engines and RTP Proxies.