Cargo vessels are seen July 21 at one end of the Strait of Hormuz near the coast of Dibba Al Fujairah, United Arab Emirates. Photo by stringer/EPA

Aug. 5 (UPI) -- Iran and Oman are in the final stages of a joint agreement to manage commercial shipping in the Strait of Hormuz, agreeing on a route for ships Wednesday, the Iranian foreign ministry said.

However, Iran will not open the strait to traffic until the United States ends its blockade, the ministry said, CBS reported.

Iranian Deputy Foreign Minister Kazem Gharibabadi told state-run media that there is agreement between Iran and Oman on proposed inbound and outbound shipping routes in the strait, CNN reported.

Iran and Oman are on opposite sides of the strait, a major commercial waterway used for much of the world's oil and gas supplies. They've been in negotiations over it for about three weeks. Before the United States and Israel attacked Iran in February, the strait was an open international waterway, but Iran closed it in response to the attacks.