Afghan President Hamid Karzai and President Asif Ali Zardari took the decision on the sidelines of an Organisation of Islamic Cooperation summit in Saudi Arabia on Tuesday, Karzai's office said.
Pakistan said the two leaders "discussed bilateral ties, the regional situation, the peace process in Afghanistan and other issues of mutual concern", but declined to go into specifics.
Afghans say that thousands of rockets and heavy artillery shells have landed on their territory in recent months, blaming Pakistan for the alleged attacks.
The cross-border violence has become a highly sensitive issue in Afghanistan, where many are deeply suspicious of Pakistan and its historic ties to the Taliban, which is now fighting a 10-year insurgency against Karzai's government.
Pakistan says groups of Pakistani Taliban sheltering in Afghanistan have infiltrated the border to resume attacks on its security forces.
Karzai asked Pakistan "to immediately end these attacks" and warned that if they continued, they would negatively impact "Afghanistan's friendship with Pakistan".
His office said Zardari agreed to assign a joint military delegation to visit the border and investigate the shelling.
Zardari's office said: "The two leaders were unanimous in the view that all groups should shun violence and join the peace process in Afghanistan, for peace and stability of the region."
The apparent agreement to investigate the border violence comes after officials on both sides said Pakistan allowed an Afghan delegation to meet a senior Taliban leader being held in a Pakistani jail.
Pakistan's 2010 arrest of Mullah Abdul Ghani Baradar, a powerful military chief who has been described as the Taliban's second in command, had been blamed by Kabul for sabotaging peace initiatives.
COMMENTS (8)
Comments are moderated and generally will be posted if they are on-topic and not abusive.
For more information, please see our Comments FAQ
In the best interest of both countries, both Kabul and Islamabad have to find out who started the fight and why. Both parties don't want to be tricked by Taiban insurgents into the lines of fire.
Enough is enough. These Afghani paracites should give us a break and go back to Afghanistan, where USA, EU and others are developing it at God's speed and has established peace and order. GO BACK AFGHANIS. YOU ARE NOT WELCOMED ANY MORE FOR YOUR SELFISH AND CRIMINAL ACTIVITIES.
Cooperation is the only way that border disputes are going to be resolved -- blindly firing artillery across the border accomplishes nothing positive and lets hope you don't inadvertently hit an American patrol which might retaliate with something lethal and accurate.
Who cares whether Karzai and Afghanis are deeply suspicious of Pakistan. Why do all Afghanis still want to come to Pakistan? Let them take back their millions of refugees to Afghanistan because they are a drain on Pakistan. Or the West should take all the Afghanis there in North America and Europe where a lot of them already live on state khayrat / welfare since they don't work. Pakistan does not have the resources to be housing these people. By the way Pakistan has been suspicious of Afghanis since 1947 when Afghanistan allowed itself to be used as a base for Indian aggression against Pakistan.
where is the water car?
Shame on you Mr. A J Khan,, this just shows the intellectual level
Shame on ur thinking Mr. A J Khan, just show the intellectual level
The more important issue is the despatch of Afghan Refugees back to Afghanistan. It is high time that these people are sent back or we will not be able to see a developed Pakistan. No country in the world can afford to take 3 million criminals and than absorb them it its society. President of Pakistan, Prime Minister and Chief of Army staff should do some thing to send these criminals back to where it belongs.