MSR_decodeMessage

Description: checks the type of the message and cals the right procedure