India and Pakistan discuss terrorism, fate of prisoners