AT&T API Platform SDK for Microsoft®  2.3.3
Wrapper classes that allow developers to build robust applications using .NET
 All Classes Namespaces Functions Enumerations Properties
Call Management Service Cookbook (Beta)

Overview

This cookbook shows you how to develop a Call Management Service(Beta) application using the Platform SDK for Microsoft.
The Platform SDK for Microsoft provides the following methods:

  • Create Session
  • Send Signal

To use these methods in an application, perform the following steps:

  1. Add a reference to the SDK as shown in the About the Cookbooks section and import the ATT_MSSDK.CallControlv1 namespace.
  2. Create an instance of RequestFactory with the scope type RequestFactory.ScopeTypes.CallControl, as shown in the About the Cookbooks section.
  3. Invoke the Call Management Service(Beta) methods using the RequestFactory instance.

Creating a Session

To create a session for for an outgoing call or message, invoke the CreateSession method using the RequestFactory instance by passing the communicaiton parameters such as signal, as shown in the following code example.

 NameValueCollection parameters = new NameValueCollection();
 parameters.Add("signal","exit");
 CreateSessionResponse response = this.requestFactory.CreateSession(parameters);

Sending a Signal to an active Session

To send a signal to an active session, invoke the SendSignal method using the RequestFactory instance, by passing the session id and signal, as shown in the following code example.

 // Active Session ID.
 string sessionId = "xxxxxxxxxxxxxxxxxxx";
 SendSignalResponse response = this.requestFactory.SendSignal(sessionId, "exit");