Share via


MakeCallActivity.CalledParty Property

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.

Gets or sets the telephone number to be dialed.

Namespace: Microsoft.SpeechServer.Dialog
Assembly: Microsoft.SpeechServer (in microsoft.speechserver.dll)

Syntax

'Declaration
<GlobalizedDescriptionAttribute("MakeCallActivity_CalledParty")> _
<DefaultValueAttribute(Nothing)> _
<GlobalizedCategoryAttribute("SpeechCategory")> _
Public Property CalledParty As TelephonyAddress
[GlobalizedDescriptionAttribute("MakeCallActivity_CalledParty")] 
[DefaultValueAttribute(null)] 
[GlobalizedCategoryAttribute("SpeechCategory")] 
public TelephonyAddress CalledParty { get; set; }

Property Value

The telephone number to be dialed.

Example

The first example creates a new MakeCallActivity instance and sets the CalledParty, CallingParty, and Name properties as shown. Finally, the instance is added to the Activities property of the enclosing activity.

this.makeCall = new Microsoft.SpeechServer.Dialog.MakeCallActivity();
this.makeCall.CalledParty = null;
this.makeCall.CallingParty = null;
this.makeCall.Name = "MakeCall";
this.outboundCall.Activities.Add(this.makeCall);

The next example sets CalledParty using the information passed to the application by means of the Microsoft Message Queue (MSMQ). The code extracts the number to call (CalledParty) from the message queue and sets the number of the party making the call (CallingParty) as shown. The final line of code logs informational data about the outbound number.

private void retrieveReminder_ExecuteCode(object sender, EventArgs e)
{
  this.makeCall.CalledParty = QueryString["OutboundPhoneNumber"];
  this.makeCall.CallingParty = "5554861";
  ApplicationHost.TelephonySession.LoggingManager.LogApplicationData("information", "outbound", QueryString["OutboundPhoneNumber"]);
}

Thread Safety

All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.

Platforms

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition

Target Platforms

Windows Server 2003

See Also

Reference

MakeCallActivity Class
MakeCallActivity Members
Microsoft.SpeechServer.Dialog Namespace
MakeCallActivity.CalledPartyProperty Field