Mr. Erdogan had separate meetings Sunday with Iranian President Mahmoud Ahmadinejad and Vice President Parviz Davoodi .