Updated at 10:54 a.m. ET
UNITED NATIONS - U.N. Secretary-General Ban Ki-moon said Yemeni President Ali Abdullah Saleh has told him he will travel to New York for medical treatment after signing an agreement to end his 33-year rule.
Ban told reporters Wednesday that he talked with Saleh by telephone, and would be happy to meet with him in New York. He provided no information about when Saleh planned to arrive in New York, nor what treatment he would be seeking.
Saleh's signature on the Gulf-brokered accord if he goes through with it would start a new chapter in the nine-month popular uprising that has shaken the Arab world's poorest country. Since January, tens of thousands of Yemenis have protested in cities and towns across the nation, calling for democracy and the fall of Saleh's regime.
The uprising has led to a countrywide security collapse, with armed tribesmen battling security forces in different regions and al Qaeda-linked militants stepping up operations in the country's restive south.
For months, the U.S. and other world powers have tried to get Saleh to agree to a proposal sponsored by Yemen's powerful Gulf Arab allies to end the crisis.
Speaking to reporters in the Yemeni capital Wednesday, the U.N. Secretary General's special envoy to Yemen, Jamal bin Omar, said opposition and ruling parties agreed on a mechanism to carry out the plan and that Saleh would sign the deal at a ceremony in the Saudi capital Riyadh later in the day.
"The agreement is an important step for the people of Yemen to solve the political crisis in the country and move their country toward a better future," bin Omar said.
The plan calls for a power transfer to Saleh's vice president, Abed Rabbo Mansour Hadi, within 30 days and early presidential elections with in 90 days of the signing. It also calls for a two-year transition period in which a national unity government will amend the constitution, work to restore security and hold a national dialogue on the country's future.
The deal gives Saleh immunity from prosecution contradicting one key demand of Yemen's opposition protesters.
Saleh has repeatedly agreed to sign the deal, only to back away at the last minute. This time, though, a signing appeared more likely since Saleh flew to Saudi Arabia early Wednesday before the announcement was made.
Yemeni state TV reported on Saleh's arrival in Riyadh and said Gulf Arab representatives who sponsored the agreement and European and American envoys would also attend the signing.
A Saudi official said King Abdullah and Crown Prince Nayef were planning to attend the ceremony, expected to take play Wednesday evening.
In his statement, the U.N. envoy, bin Omar, praised Yemen's youth, saying the young people had "created the momentum" for change in the country and encouraging all "to invest in this historic opportunity."
Still, Saleh's signing is unlikely to appease the protesters on the streets, who demand more sweeping political changes.
Protest organizer Walid al-Ammar in Sanaa criticized the deal as a pact between Saleh's ruling party and a group of opposition parties, while ignoring protesters' demands.
"They agreed. That's their business," he said. "For us, the revolution continues in the square."
He said protesters set out not just to topple Saleh, but to get rid of corruption in Yemen's government.
"If we see that the corrupt system is removed, we'll welcome it," he said, "not just replacing the corrupt people with others."
Saleh has clung to power despite the 9-month-old uprising, daily mass protests calling for his ouster and a June assassination attempt that left him badly wounded and forced him to travel to Saudi Arabia for more than three months of hospital treatment.
The unarmed protesters have held their ground with remarkable resilience, flocking to the streets of Sanaa and other Yemeni cities and towns to demand reforms and braving a violent crackdown by government forces that has killed hundreds.
Their uprising, inspired by other Arab revolts in the region that saw longtime rulers of Egypt and Tunisia go, has at times been hijacked by Yemen's two traditional powers the tribes and the military further deepening the country's turmoil.
Breakaway military units and tribal fighters have been battling in Sanaa with troops loyal to Saleh, in fighting that has escalated in recent months.
Security is particularly bad in southern Yemen, where al Qaeda militants from one of the world's most active branches of the terror network have taken control of entire towns, using the turmoil to strengthen their position.
An impoverished nation of some 25 million people, Yemen is of strategic value to the United States and its Gulf Arab allies, particularly Saudi Arabia. It sits close to the major Gulf oil fields and overlooks key shipping lanes in the Red and Arabian seas.