President Goodluck Jonathan in Addis Ababa, on Saturday night, said the problem of South Sudan would be solved through dialogue.
He made this known to newsmen shortly after the bilateral meetings with President Salva Mayadit of South Sudan and President Omar Al -Bashir of Sudan.
Jonathan said they met to discuss possible ways of achieving a comprehensive peace agreement.
"We are here to solve the problem of South Sudan."
"There will still be further discussion until we find a lasting solution to the problem in South Sudan"
The News Agency of Nigeria (NAN)reports that the two leaders had in separate times last week sent special envoys to Nigeria, seeking the intervention of President Jonathan in the crisis between the two countries.
The President is inAddis Ababa to attend the 20th African Union Ordinary Session of the Assembly of Heads State and Governments which opens on Sunday 27th January.
Jonathan would also participate in the Donors' Conference on Mali holding at the new AU headquaters.
He would accelerate reduction of maternal mortality in Africa and a banquet to be hosted by the Prime Minister of Ethiopia, Mr Ato Desalegn.
The President was accompanied to Ethiopia by the First Lady, Dame Patience Jonathan, Governors Ibikunle Amosun of Oyo, Gabriel Suswam of Benue.
Others were the Minister of Foreign Affairs, Mr Olugbenga Ashiru, and the Minister of Statefor Foreign affairs 2, Dr Nurudeen Mohammed and other top government officials.
He is expected back to Nigeria on Tuesday.