KABUL (AFP) - Afghanistans national security adviser has called on the Pakistani government to take serious measures against militant groups launching attacks on Afghan targets from secure havens inside Pakistan. Rangin Dadfar Spanta spoke to AFP in an interview a week after the Al-Jazeera television network said Afghan President Hamid Karzai had met the man who runs the Al-Qaeda-linked Haqqani network in talks mediated by Pakistan. Afghanistan, Pakistan and the Taliban have all denied any such meeting. Spantas comments signal an about-turn by the Afghan government after months of overtures to Islamabad in efforts to prompt Pakistan to deal with militant groups, including Al-Qaeda and the Taliban based along the Afghan border. Spanta told AFP on Monday that Afghanistan had tremendous evidence that Pakistani authorities allowed Al-Qaeda and other terror organisations to operate on the countrys soil and had presented it to Islamabad many times. Islamabad had failed to act against the groups based in Pakistans tribal areas on the Afghan border, he told AFP. My expectation is that Pakistan after nine years - because theoretically Pakistan is part of the anti-terror alliance - they have to begin to take some serious measures against terrorism, he said. They have to hand over the leadership of the terrorist groups, they have to give a list of the people they have arrested and are holding in the detention centres in Pakistan. Afghan officials have blamed a number of major attacks on Pakistani-based groups whom they say are supported by Pakistans intelligence and military. Pakistani officials were not reachable for comment, but the military consistently denies supporting militant groups and points to the losses of more than 2,000 Paksitani soldiers fighting homegrown Taliban since 2002. We have evidence that the terrorists from Pakistan are involved in daily attacks against our people and international 'jihadi groups are active here. They have their base and sanctuaries behind our border and this is a serious problem, Spanta said. We have to address the menace of terrorism. Relations between Kabul and Islamabad have been traditionally marked by distrust, but there had been growing signs of rapprochement. Karzai had been seen as trying to reach an arrangement with Pakistan - possibly including a power-sharing deal with the Taliban - that would help bring an end to the war in Afghanistan, now in its ninth year. This was also seen as a way of giving Pakistan a stake in Afghanistans future, despite broad opposition among Afghan politicians and the public. Karzais spokesman said Spantas comments were a reiteration of Kabuls position that Pakistan must be involved in the process of bringing peace and stability not only in Afghanistan but also in Pakistan and in the region. Reaching peace would not be possible, Waheed Omar told reporters, without an active and honest role by the Islamic Republic of Pakistan. Spanta - a former foreign minister and the senior cabinet-level advisor to Karzai on security issues - said senior Pakistani military and intelligence officials had visited Kabul in recent months on goodwill visits. I hope we can begin a constructive dialogue with a serious agenda during the next meeting in Islamabad, or in Kabul... maybe next month, he said. Spanta said Pakistan had failed to act against Al-Qaeda, the Afghan Taliban leadership known as the Quetta Shura, the Haqqani network, the minor Hekmatyar group, Hizb-u-Tahrir, as well as Uzbek and Chechen terrorist groups. He denied Karzai had met Sirajuddin Haqqani, who runs the Haqqani network, which often launches attacks in Afghanistan, or the Taliban, through mediation of Pakistan forces or otherwise. Pakistani security officials indicated last month on condition of anonymity that they were planning to help broker peace efforts in Afghanistan by acting as a bridge between the Kabul government and powerful Haqqani network.