示例#1
0
 public void insetnum(boolean connet) {
   BaseMapObject record = new BaseMapObject();
   record.put("id", null);
   record.put("number", code);
   record.put("status", connet ? AbsToCallActivity.Recv_Call : AbsToCallActivity.Recv_Error);
   record.put("creattime", UnixTime.getStrCurrentUnixTime());
   record.put("priority", O.Priority);
   record.put("acknowledgemen", O.Acknowledgemen);
   record.InsertObj2DB(mContext, "voicecoderecord");
   new SendDataTask().execute(APICode.BACK_RECV_VoiceCode + "", O.Account, connet ? "1" : "0");
 }
示例#2
0
  public void insetwiredvoicenum(boolean connet) {
    BaseMapObject record = new BaseMapObject();
    record.put("id", null);
    record.put("number", code);
    record.put("sendtype", "0"); // 语音0.文件1
    record.put(
        "status",
        connet
            ? AbsToCallActivity.Recv_Call
            : AbsToCallActivity.Recv_Error); // 呼入成功/呼出成功/呼入失败/呼出失败(1,2,3,4)
    record.put("filepath", null);
    record.put("creattime", UnixTime.getStrCurrentUnixTime());

    record.InsertObj2DB(mContext, "wiredrecord");
    new SendDataTask().execute(APICode.BACK_RECV_WiredVoice + "", O.Account, connet ? "1" : "0");
  }