The Second If Step
End the Yes output branch of the Implicit Confirmation step by dragging a second If step from the General palette to the Design pane, and dropping it over the first If step icon under the Implicit Confirmation step icon, as shown in figure Name To User—Yes Output Branch of Implicit Confirmation Step.
Then configure the second If step to direct the script based on whether or not the maximum number of retries has been reached, by evaluating the expression “attempts MaxRetry”; or, “the number of attempts, as stored in the attempts variable, is less than the maximum number of retries allowed, as stored in the MaxRetry variable”).
The If step has two output branches, True and False. (See figure Name To User—Yes Output Branch of Implicit Confirmation Step.)
-
The False Output Branch
-
The True Output Branch
The False Output Branch— If the second If step finds that the maximum number of retries has been reached, the script executes the False output branch, and the script falls through to the final Play Prompt step (see The Call Redirect Step).
The True Output Branch— If the If step finds that the maximum number of retries has not been reached, the script executes the True output branch. Configure the True output branch of the If step to provide more opportunities for the caller to successfully enter a name.
-
The Increment Step—Begin the True output branch of the second If step by dragging an Increment step from the General palette to the Design pane, and dropping it over the True icon under the True icon under the If step, as shown in figure Name To User—Yes Output Branch of Implicit Confirmation Step. Then configure the Increment step to increase the value of the attempts variable by 1.
-
The Goto Step—End the True output branch of the second If step by dragging a Goto step from the General palette to the Design pane, and dropping it over the Increment step icon under the True icon under the If step, as shown in figure Name To User—Yes Output Branch of Implicit Confirmation Step. Then configure the Goto step to return the caller to the beginning of the DialByName Label step at the beginning of the DialByName output branch of the Get Digit String step, in order to give the caller more attempts to input the proper extension.