The two countries held talks mediated by Oman in Muscat after weeks of tensions between Washington and Tehran.