Iran and Pakistan have stressed that restraint and dialogue remain the only path to lasting peace and stability in the region.