Malaysia’s Prime Minister Anwar Ibrahim said any talks with Iran must aim to end the war.