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");
 }
 @Override
 public void initView() {
   // TODO Auto-generated method stub
   text_Num = (TextView) findViewById(R.id.text_number);
   Btn_Cut = (Button) findViewById(R.id.bt_cut);
   Btn_Connet = (Button) findViewById(R.id.bt_connet);
   Btn_Cut.setOnClickListener(this);
   Btn_Connet.setOnClickListener(this);
   if (code == null || code.equals("")) {
     this.finish();
   } else {
     BaseMapObject map = GetData4DB.getObjectByRowName(mContext, "contact", "number", code);
     if (map != null && map.get("name") != null) {
       text_Num.setText(map.get("name").toString() + "\r\n" + code);
     } else {
       text_Num.setText(code);
     }
   }
 }
  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");
  }