Greece's prime minister has called for sanctions to be imposed on European Union states that refuse to take in their fair share of the hundreds of thousands of refugees flowing into the continent through his country.

Alexis Tsipras also said the practically dormant procedure for relocating refugees stranded in Greece should be drastically speeded up.

Speaking after a meeting with European Council President Donald Tusk in Athens, Mr Tsipras promised to provide "dignified" living conditions for the more than 25,000 migrants trapped in Greece after other countries further north along the migration route to Western Europe imposed sweeping entry restrictions.

But he insisted that the solution can only be temporary and Greece will accept only its fair share of permanently resettled refugees.

Earlier, Mr Tusk warned prospective economic migrants to not even think of setting off towards Europe.

He said people who are looking for a better life but are not fleeing war should not risk their lives or their money paying smugglers to bring them to Europe.

He said: "It is all for nothing. Greece, or any other European country, will no longer be a transit country."

Mr Tusk was in Athens as part of a tour through countries worst affected by the continent's immigration crisis. He is due to visit Turkey later.

Meanwhile, a group of migrants have blocked a railway line at Greece's border with Macedonia in protest at Macedonia's refusal to let them in to continue their route towards western Europe.

The group lay down on the Greek side of the track on Thursday morning, preventing a freight train that had just crossed from Macedonia from continuing its journey south.

Some 10,000 people are stranded at the Idomeni border crossing.

Macedonian authorities have said they will only let in as many people as the next country on the route, Serbia, takes.

Greek police said that in the 24 hours to 6am on Thursday, 500 people were allowed to cross.

Sign up to our free newsletters

Get the best updates straight to your inbox:
Please select at least one mailing list.

You can unsubscribe at any time by clicking the link in the footer of our emails. We use Mailchimp as our marketing platform. By subscribing, you acknowledge that your information will be transferred to Mailchimp for processing.