Pakistan confirmed that the United States and Iran were talking ‘indirectly’ and that Islamabad was ‘relaying the messages’.