That can be done using flags
ex :
<action application="conference" data="room1+flags{endconf}"/>

Did you try this:
<action application="conference" data="room1+flags{${endconf}}"/>
Also, you might need to add inline="true" on your set app:
<action application="set" data="member-flags=mute" inline="true"/>

Let us know...

-MC