Share via


Creating an Outgoing Signaling Session

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

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.

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

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

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