Carbon monoxide along the line of sight to galactic center infrared sources