Qatar, which had distanced itself from mediating the Iran conflict, signalled openness to playing a role