Hungary shuts down rail traffic at main Budapest station to prevent migrants from boarding

Migrants wait to board the train that will take them towards Munich, Germany at the Keleti Railway Station in Budapest, Hungary, Monday, Aug. 31, 2015. Migrants possessing valid documents and a train ticket are being allowed on international trains at the station. (Tamas Kovacs/MTI via AP) (The Associated Press)

Migrants wait to board a train to Germany at the Keleti Railway Station in Budapest, Hungary, Tuesday, Sept, 1, 2015. (Zoltan Balogh/MTI via AP) (The Associated Press)

A young Syrian woman sits besides a road after making her way from Austria to Germany at the highway A3 in Pocking near Passau, Germany, Tuesday, Sept. 1, 2015. Hundreds of migrants are arriving every day, after making perilous journeys through Europe. (AP Photo/Matthias Schrader) (The Associated Press)

Hungarian authorities are stopping all trains from leaving Budapest's main train terminal in an effort to prevent migrants from using it to leave for Austria and Germany.

An announcement over the station's loudspeakers Tuesday said the measure would be in effect for an undetermined length of time.

Scuffles broke out earlier in the morning among some of the hundreds of migrants as they pushed toward metal gates at the platform where a train was scheduled to leave for Vienna and Munich, and were blocked by police.

Several say they spent hundreds of euros for tickets after police told them they would be allowed free passage.

Police in Vienna say 3,650 migrants arrived from Hungary Monday at the city's Westbahnhof station. They say most continued on toward Germany.