'Function to send SMS via locally-attached Modem
- needs to have the cron/sms_handler_modem.py script running'

def send_sms_via_modem(self, mobile, text='', channel_id=None):

    mobile = self.sanitise_phone(mobile, channel_id)
    mobile = ('+%s' % mobile)
    try:
        self.modem.send_sms(mobile, text)
        return True
    except KeyError:
        current.log.error('s3msg', 'Modem    not    available:    need    to    have    the    cron/sms_handler_modem.py    script    running')
        return False
