(CNN) -- Afghan President Hamid Karzai and his Pakistani counterpart Pervez Musharraf met Wednesday to try to mend rifts over how to tackle terrorism across their countries' borders amid accusations that neither side was doing enough.
Afghan President Hamid Karzai waves as he arrives at Chaklala Airbase in Rawalpindi.
Karzai was on a two-day visit to the Pakistani capital Islamabad that will include meetings with political and business leaders, Karzai's office said. Musharraf will host a state banquet in the Afghan leader's honor Wednesday night.
At a joint news conference following their first meeting, Musharraf said "the key to enhancing our capability against terrorists and extremists is intelligence cooperation.
"The two intelligence agencies on both sides must cooperate more strongly if we are to deal with terrorists and extremists more effectively," Musharraf said. He also said both countries must cooperate more on border control measures.
The controversy over Pakistan's madrassas did not come up at the news conference, but Karzai earlier said closing the religious schools was a key to ridding Afghanistan of terror groups like the Taliban.
In a CNN interview December 15, Karzai said the madrassas "are not religious schools. (They are) actually training camps, training grounds for terrorists, who take desperate young people mostly without families and brainwash them."
In his own interview with CNN, Musharraf disputed Karzai's suggestion that some terrorists make their way across the border from Pakistan into Afghanistan.
"They may come into Pakistan and get some sanctuaries here, hide here, recuperate here and go back," Musharraf said. "But the real support, the real backbone of everything that is happening there is in Afghanistan."
Karzai's spokesman said he would also meet with former Pakistan Prime Minister Benazir Bhutto, who returned to Pakistan in October after eight years in exile. Bhutto is expected to participate in the parliamentary election, hoping for a third term as prime minister.
The Afghan president will meet with Pakistan's caretaker Prime Minister Mohammadmian Soomro and attend a luncheon before departing for Kabul Thursday afternoon, the Pakistan Foreign Ministry said. E-mail to a friend