Near-infrared spectroscopy in NGC 7538