ADDIS ABABA — Sudan and South Sudan have reached a deal on oil transit fees, but Khartoum said it would be implemented only after the issue of border security had been resolved, dampening hopes of a quick resumption of southern oil exports through the north. The oil agreement, announced Saturday, was a big step toward ending hostilities between the neighbors, which came close to war in April when fighting worsened along their shared border, created when the south seceded in July last year. The two sides, deeply mistrustful of each other, have often not implemented previous agreements and still need to mark their 1,800-km border and resolve charges both have made of supporting rebels in the other's territory. The UN Security Council had given the African neighbors until Thursday to resolve all conflicts left over from South Sudan's secession a year ago under a 2005 peace agreement. Landlocked South Sudan threw both economies into turmoil when it shut down its output of 350,000 barrels a day in January after failing to agree on a transit fee with Sudan, which started seizing oil to make up for what it called unpaid fees. African Union mediator Thabo Mbeki said the neighbors had now agreed on how much South Sudan should pay to export its oil through northern pipelines. He gave no details. “It's an (oil) agreement about all of the matters. The issues that were outstanding were charges for transportation, for processing, transit,” Mbeki, the former South African president, told reporters. “What will remain (now)...is to then discuss the steps as to when the oil companies should be asked to prepare for the resumption of production and export,” Mbeki said. He gave no time frame, saying only the parties had until Sept. 22 to resolve border security and other conflicts. Sudan confirmed an oil deal had been reached but reiterated that security talks needed to resume after the Muslim fasting month of Ramadan ended at the end of August, the state news agency SUNA reported. “Both sided reached understandings regarding oil which are considered acceptable... (but) the (oil) agreement does not fulfil the ambitions of both sides,” Sudanese delegation spokesman Mutrif Siddig told SUNA. “Its implementation will start after understandings on security issues.” Oil industry sources have said restarting oil production could take six months or longer as the pipelines have been filled with water to avoid gelling and some wells were not closed properly. Mbeki's announcement was a surprise as the South's top negotiator, Pagan Amum, had just said that Sudan was still demanding a high oil transit fee. In an indication of the mistrust between the arch-foes Amum, speaking just before Mbeki, said that Khartoum was trying to “impose very exorbitant transit fees.” Both sides had made concessions in the past few days. Juba had last said it was willing to pay $9.10 and $7.26 per barrel to use two pipelines crossing Sudan, as well as a $3.2 billion package to compensate Sudan for the loss of most of its oil reserves to the South. It had previously offered $2.6 billion. Sudan itself lowered its demand to around $22 a barrel, from an initial $36, according to a position paper published by SUNA. It also wants compensation of $3.02 billion, among other demands, Suna added. The African Union-mediated talks, led by Mbeki, have long been hampered by differences on where to draw a demilitarized buffer zone, seen as a crucial first step to ending hostilities. Amum reiterated calls for an arbitration body to resolve a dispute over the position of their shared border, a potentially lengthy process. He also accused Khartoum of maintaining a police force in the disputed Abyei border region, despite UN requests for a complete pullout by both sides. — Reuters