Indian Prime Minister Narendra Modi and Pakistani counterpart Nawaz Sharif has met in Russia on the sidelines of the Shanghai Cooperation Organisation (SCO) summit on Friday.
The meeting was the first encounter between the two leaders since Sharif attended Modi's oath taking ceremony last year.
According to the Indian officials, Sharif and Modi have agreed to hold a security meeting in New Delhi.
Indian and Pakistani national security advisers will discuss "terrorism", India's Foreign Secretary Subrahmanyan Jaishankar said, adding that Modi also accepted Sharif's invitation to join other South Asian leaders in Pakistan next year.
"Prime Minister Nawaz Sharif reiterated his invitation to Prime Minister Modi to visit Pakistan for SAARC summit in 2016. Prime Minister Modi accepted that invitation," Jaishankar said.
Pakistani foreign secretary Aizaz Ahmad Chaudhry described the meeting as cordial.
"Both leaders condemned terrorism in all its form and agreed to cooperate with each other to eliminate this menace from south Asia," he said.
India cancelled talks with Pakistan last August after growing tension over the disputed Kashmir region between the two rival neighbors, which fought three wars since gaining Independence.
The meeting came a day after India accused Pakistani troops of killing an Indian soldier at the de facto Kashmiri border.
During the latest talks, Modi reportedly raised India's concerns on the release of Lashkar-e-Taiba leader and Mumbai blasts mastermind Zaki-ur-Rehman Lakhvi as well.
India and Pakistan are set to join the strategically important SCO, the first expansion of the grouping since it was set up in 2001.