Mute the andorid using MIT App Inventor

I want to make an app to mute android phone several times and I need any thing that can make it mute. I tried sound manager etc but no use. I need to mute ring tone only if possible.