The parties exchanged messages several times, Iranian Foreign Ministry Spokesman Esmaeil Baghaei said