Step 3: Transferring a Caller
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.
This is the last of three topics describing the steps to create the Author an IM Agent for Information Access walkthrough application. This sequence of topics demonstrates how the instant messaging (IM) capabilities of communications workflow activities are used to create an IM agent for basic information access. The procedures for creating the walkthrough application build sequentially. Completing the procedures in sequence is important.
To transfer a caller to a department contact
In the Microsoft Visual Studio 2008Toolbox, expand Unified Communications Workflow to display workflow activities.
Drag and drop an InstantMessagingQuestionAnswer activity from the Toolbox onto the design surface in ifElseBranchGovernment, following promptGovernment.
Rename instantMessagingQuestionAnswer1 to qaGovernmentDirectory.
Set the MainPrompt property for qaGovernmentDirectory to two available managers are Sue and Bill. Which do you want?
Specify user inputs so that qaGovernmentDirectory recognizes the names Sue and Bill. For more information, see Authoring Grammars.
In the Toolbox, expand Windows Workflow, and then drag and drop an IfElseActivity activity onto the design surface within ifElseBranchGovernment, following qaGovernmentDirectory.
Rename the new activity to ifElseGovernmentDirectory. Rename the left branch to ifElseBranchSue and then rename the right branch to ifElseBranchBill.
On the left branch, ifElseBranchSue, add a code condition called conditionSue, and then add the following code:
e.Result = (this.qaGovernmentDirectory.RecognitionResult.Text == "sue");
In the Toolbox, expand Unified Communications Workflow, and then drag and drop a BlindTransfer activity from the Toolbox onto the design surface in ifElseBranchSue. Rename blindTransferActivity1 to blindTransferSue. Set the CalledParty property to sip:email@example.com or another value that works in your environment.
Drag and drop a BlindTransfer activity from the Toolbox onto the design surface in ifElseBranchBill. Rename blindTransferActivity1 to blindTransferBill. Set the CalledParty property to sip:firstname.lastname@example.org or another value that works in your environment.