public function get_directory_numbers_by_name($NAME)
    {
        // Get our phone by name from the previous function
        $PHONE = $this->get_phone_by_name($NAME);
        if (!isset($PHONE['lines'])) {
            throw new \Exception('Phone record does not contain the lines element');
        }
        if (!is_array($PHONE['lines'])) {
            throw new \Exception('Phone record lines element is not an array');
        }
        // Suck out the array of phone numbers
        $RETURN = reset($PHONE['lines']);
        // Turn them into a flat array of DIRNs
        $RETURN = $this->assoc_key_values_to_array($RETURN, 'dirn');
        // Turn the DIRNs into patterns of phone numbers
        $RETURN = $this->assoc_key_values_to_array($RETURN, 'pattern');

        return $RETURN;
    }