Example 2: Using the set command

Last Updated : Sep 08, 2012 |

The following vector shows how to use the set command to solve the problem presented in Example 1. The vector in this example overwrites the digits buffer with the initially-stored account number in step 1. While a call is waiting to be answered, the digits buffer is refreshed with the account number.

 1. collect 9 digits after announcement 4501 for A [announcement 4501 asks customers for their account number. Nine digits are stored in the
    digits buffer and the A variable after customers enter their account number.]
 2. queue-to skill 1st  pri h  [Queue the call]
 3. wait-time 30 secs hearing music [call waits, digits buffer = varaible A = 9 digits] 
 4. collect 1 digits after announcement 4502 for B [Press 1 if customer wants to leave a message. The digits buffer and variable B now contain     the response.]
 5. set digits = A SEL 9 [Reset the digits buffer to contain the original 9 digits collected in step 1]
 6. goto step 9 if B = 1 [Check if the caller wants to leave a message]
 7. goto step 3 if unconditionally [The caller does not want to leave a message. Go back to wait.]
 8. stop
 9. messaging skill 2nd for extension active [Caller leaves a message]
10. treatment if messaging skill out of service