Collect command

Last Updated : Nov 03, 2016 |

The following syntax rules apply when vector variables are used with the collect command.

collect [ced, cdpd] for [A-Z, AA-ZZ]
collect [1-16] digits after announcement [A-Z, AA-ZZ] for [A-Z, AA-ZZ]

Requirements and considerations

The requirements for using vector variables with the collect command are as follows:

  • If none is specified after the for parameter, the collect digits command ignores the for parameter.

  • The specification in the Variables tables defines what portion of the collected digits is assigned to the variable.

  • The # digit can be collected and exist in the dial-ahead digits buffer if dialed by the caller. The # is assigned to a variable if that is the only digit assigned by the for parameter. This matches the threshold field with a # keyword.

    Example: If the caller dials 1# and the specification for variable B starts at digit position 2 when length is more than 1, the single digit # is assigned to variable B by collect 2 digits after announcement 1000 for the B command. If the dial-ahead buffer contains a # digit, the command collect 1 digit after announcement 1001 for C where C is defined as length = 1 and start = 1, then the # is assigned to variable C. A goto step x if B = # or goto step x if C = # is true and the branch to step x is taken. Also, the Variables for Vectors table shows the current value of # in the Assignment field. However, you cannot assign a value of # to a variable using an entry in the Assignment field. You can only assign the # value to the variable using the collect … for command.