ANKARA - Turkish President Recep Tayyip Erdogan said the US and European countries were not doing enough to pressure Israel to agree to a ceasefire in Gaza after Hamas did.

Mr Erdogan told Muslim scholars in Istanbul that Hamas had accepted a ceasefire proposal by Qatar and Egypt in a "step in the path toward a lasting ceasefire".

But Israeli Prime Minister Benjamin Netanyahu's government did not want the war to end, he said.

"The response of the Netanyahu government was to attack the innocent people in Rafah," Mr Erdogan said.

"It has become clear who sides with peace and dialogue, and who wants clashes continuing and more bloodshed.

"And did Netanyahu see any serious reaction for his spoiled behaviour? No.

"Neither Europe nor America showed a reaction that would force Israel into a ceasefire."

Mr Erdogan's intelligence chief Ibrahim Kalin met Hamas leaders in Doha on Sunday to discuss ceasefire talks and access of humanitarian aid into Gaza, a Turkish security source said.

Mr Erdogan on Sunday called on countries not recognising a Palestinian sovereign state to do so after the UN General Assembly voted for it.

But he condemned the US and others who voted against it.

"We saw that countries who lecture us on human rights and freedoms at every opportunity openly support those who massacred 35,000 Gazans," he said, quoting figures from Gaza's health authorities.

"We saw that those who said the right to protest was sacred until yesterday can't tolerate demonstrations that support Palestine."