Iran says it has agreed with Oman on a shipping route through the Strait of Hormuz, but reopening the waterway depends on US commitments.