Cross-border firing along the disputed region of Kashmir has killed dozens of people from both sides.
India had initially insisted that any talks should only cover what it refers to as terrorism.
But a statement issued after Sunday's meeting said the security advisers of the two countries had also talked about Kashmir, peace and security.
It added that Sunday's meeting in Bangkok was held in a "candid, cordial and constructive atmosphere".
"It was agreed to carry forward the constructive engagement between the two countries," it said.
Read the full story here.