Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

RejectIncomingCalls (Communications Workflow Sample)

This sample speech workflow application demonstrates how to reject an incoming call based on some criteria. The application checks the call against a list of forbidden numbers specified in an XML file, ForbiddenNumbers.xml. This check occurs before the workflow starts. If a match is found, the call is declined and the workflow is canceled.

  • Use the CommunicationsWorkflowRuntimeService.GetWorkflowCalls method to load an array of Call objects, which is checked against the list of forbidden numbers.
  • Use the ConversationParticipant.UserAtHost property to return the Automatic Number Identification (ANI) of the call.
To build and debug the sample application
  1. Create a debugging environment. For information about creating a debugging environment, see Establish Accounts on Office Communications Server.

  2. In the UCMA v2.0 SDK\Samples\Workflow directory, open RejectIncomingCalls.

  3. Debug the RejectIncomingCalls speech workflow application. For information about debugging this application, see Walkthrough: Debugging a Communications Workflow Application.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.