Pickup2Silence is a project mainly written in ..., it's free.
A simple tweak that allows you to silence your phone by simply picking it up