The flight originated in Damascus , Syria , and made a stopover in Amman , Jordan , before flying to Khartoum .