Ambulance wait times endangering patients, doctors say