This comes a month after four tankers including two of Saudi Arabia were attacked.
The attacks came as Japanese Prime Minister Shinzo Abe was in Iran seeking to defuse tensions between Washington and the Islamic Republic.
Iraqi President Barham Saleh discussed with Mohammad Javad Zarif the need to prevent all war or escalation, his office said.
Pakistan Foreign Minister Shah Mehmood Qureshi said that Islamabad wants resolution of all outstanding issues through diplomatic engagement as he held talks with his Iranian counterpart Javad Zarif.
The 11th joint consular committee meeting mainly focused on reviewing the status of ongoing cooperation in consular and visa related issues.
The Iranian Foreign Minister also said that a 60-day timeline had been given to EU-3 and other parties to the nuclear deal Iran signed with world powers, for restoring Iran’s oil and banking channels.
The talks between the two foreign ministers came 12 days after the US ended six-month-long exemptions from sanctions to India and seven other countries to buy oil from Iran.
The US had told India and other countries to cut oil imports from the Gulf nation to "zero" by November 4 or face sanctions.
The resignations happened hours after a surprise visit by Syrian President Bashar Al-Assad to Tehran.
In a tweet, Iran's foreign minister Mohammad Javad Zarif mocked US national security adviser John Bolton's idea to prepare military options for attacking Iran.
US President Donald Trump announced in May that he was pulling the country from the Iranian nuclear deal.
The Iranian minister was responding to allegations made by Israeli Prime Minister Benjamin Netanyahu on Thursday in a speech to the UN General Assembly.
Javad Zarif's visit to Pakistan comes as both Tehran and Islamabad are struggling with fraught relationships with Washington, which withdrew from the 2015 nuclear accord in May.
Asked by the conservative Tasnim news agency if there was any plan to meet US Secretary of State Mike Pompeo, Zarif said: "No, there will be no meeting."
Trump branded Iran a "corrupt dictatorship" and "rogue state" and said the "longest-suffering victims of Iran's leaders are, in fact, its own people."