Export (0) Print
Expand All

4.3 GetCallInfo Operation

The following example shows how to get information about a specified outbound call that was previously initiated through a PlayOnPhone or PlayOnPhoneGreeting operation.

Before the GetCallInfo operation can be initiated, the following steps have to be performed:

  1. Initiate a play-on-phone call by sending either a PlayOnPhone or PlayOnPhoneGreeting request. For more information, see the examples in sections 4.7 and 4.9.

  2. Save the PlayOnPhoneResponse element text value in a temporary variable. This value is the text value of the CallId element that will be used when making the GetCallInfo request.

The following is the request to get information about an outbound call.

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetCallInfo xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
<CallId>NDEzYjEzNmMtZTE2Zi00NTJlLWI3YzctNDhkMTE3MDE3YjlmQGRmLWV1bS0wMS5leGNoYW5nZS5jb3JwLm1pY3Jvc29mdC5jb20=</CallId>
    </GetCallInfo>
  </soap:Body>
</soap:Envelope>

The following is the response to the request to get information about an outbound call.

<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <soap:Body>
    <GetCallInfoResponse xmlns="http://schemas.microsoft.com/exchange/services/2006/messages">
      <GetCallInfoResponse>
        <CallState>Connected</CallState>
        <EventCause>None</EventCause>
      </GetCallInfoResponse>
    </GetCallInfoResponse>
  </soap:Body>
</soap:Envelope>
Show:
© 2014 Microsoft