Creating an outgoing signaling session means instantiating the SignalingSession class, specifying the local and remote participants. The local participant is specified by a RealTimeEndpoint object, and the remote participant is specified by a RealTimeAddress object.

The following code example illustrates how to create an outgoing SignalingSession object.

Copy Code
// Creates a Session object for an outgoing Signaling Session
SignalingSession session;

string targetUri = "sip:jaya@contoso.com";
RealTimeAddress sessionTarget = new RealTimeAddress(targetSipUri);

RealTimeEndpoint endpoint = ...; // Assumed to be already created elsewhere

session = new SignalingSession(endpoint, sessionTarget, context);

The context parameter can be null.

See Also

Other Resources

Creating a Real-Time Endpoint