DHAKA (AFP) - UN Secretary-General Ban Ki-moon said Sunday he has secured assurances from Bangladesh's powerful military that it would not interfere in the country's transition to democracy. Bangladesh has been under a state of emergency since January 2007 when months of political violence led the armed forces to intervene, cancel polls and set up a non-party caretaker government. The UN chief, who arrived in Dhaka Saturday as part of his four-nation Asian tour, held talks with the country's powerful Army Chief Gen Moeen U Ahmed on Sunday and said they discussed the December 18 elections. "I was assured by military leadership that they will ensure this forthcoming elections will be fair and credible and free elections," Ban told reporters after wrapping up his visit to the South Asian country. "They will not interfere in any political process," he said. Ban , who also met the head of the country's interim government and the political leadership, said he saw "no insurmountable" obstacles to the crucial elections. He urged the country's interim leadership and the political parties to resolve the remaining key dispute over holding the polls under a state of emergency. "I would hope this will be resolved through dialogue between the authorities and the political parties," he said. "For its part, the government must ensure that the fundamental rights and freedoms necessary for a free, fair and credible election are guaranteed," he added.On Sunday, country's Commerce Minister Hossain Zillur Rahman said the government will lift restrictions on all political activities once the authorities announce schedules for December 18 elections late Sunday. He said during talks with the government over the past few months the parties' key demand was to "commence political activities with full independence". "We have now agreed that it is very essential to fulfil this demand. This necessity will be fulfilled very logically as soon as the (election) schedule is announced," Rahman said. He made the comments as the country's election commission said it would announce the election schedules, such as dates for filing nomination papers, through a televised address Sunday evening. The interim government had declared that elections would be held on December 18 to pave the way for a transition to democracy, but the announcement of schedules had been delayed by a legal challenge. On Sunday, the country's high court dismissed the case, clearing the way for the announcement of schedules. The elections would end a near two-year rule by an army-backed government, which took over in January 2007 after a state of emergency was imposed and polls cancelled following months of political turmoil. The country's two main parties, the Bangladesh Nationalist Party (BNP) and the Awami League, said they would contest the polls, provided all restrictions are withdrawn. Under the emergency, political parties can hold rallies and gatherings indoors, but not in open spaces. They are also barred from holding processions or campaigning.