added check for type=outboundSMS to sendMessages check