The prime minister of Turkey Recep Tayyip Erdogan said he is working on a roadmap to end the bloody civil war in Libya, after Turkish officials have held discussions with both members of Moammar Gaddafi’s government and officials of the rebel faction.

Erdogan said his proposal would include a ceasefire and the withdrawal of government troops from some besieged cities.

We are working on the details of this road map, Erdogan told a news conference on Thursday.

A comprehensible democratic transformation process that takes into account the legitimate interests of Libyan people should start immediately. The aim of this process should be to settle constitutional order that people freely elect their rulers.

Erdogan said the proposed peace measures will be discussed next week at meeting in Qatar next week.

He also assured the Libyan rebels that Turkey supports their demands.

Meanwhile, a resolution to the Libyan crisis is urgent, as there are fears the conflict is stuck in a deadly stalemate.

General Carter Ham, the chief of the US military's Africa Command, has warned that the stalemate is more likely now that the Libyan campaign is under the control of NATO.

Ham has also cautioned against arming Libyan rebels, until more of their composition and objectives are revealed.

My recommendation would be that we should know more about who they are before we make any determination to arm them, he said.

Turkey is concerned about the Libyan rebel groups’ lack of a singular ideology and leader, which will make it more difficult for them to govern Libya if and when they topple Gaddafi.

“Had there been a specific single leader and a specific ideology that drives the opposition movements, then it might be easier,” said Turkey’s Deputy Prime Minister Bulent Arinc.

Arinc added that he is also worried about the presence of extremists among the Libyan opposition groups.

While US President Obama has said he will not send ground troops to Libya, others think such a step may be necessary.

So right now we are facing the prospect of a stalemate, which means Mr. Gaddafi remains in power which then means we will have a very, very serious situation with Mr. Gaddafi in the future, said Republican U.S. senator John McCain, who is pushing for deeper American intervention in Libya.