Qatar has called on Israel and Hamas to reach an agreement on releasing hostages seized in the October 7 attack.