For example, if a vector in Communication Manager is written to collect digits and then to route to the digits dialed, the restrictions on what calls can be placed are determined by the COR of the latest VDN. Also, checks can be made on the digits that are dialed, using goto if digits vector commands. For example, goto if digits = 123 to disallow routing to undesired destinations. The collect digits step can also be limited to collect only the number of digits required, for example, only collecting five digits for internal dialing.