|
@@ -1019,7 +1019,9 @@ public class CallingBedFragment extends BaseFragment implements SicknessBedAdapt
|
|
|
//ToastUtil.showToast(sipAddress+"===="+callingEntity.getDeviceMAC());
|
|
|
callBed = false;
|
|
|
ivCallListPic.setImageResource(R.mipmap.ic_calling_sickbed_right_hang_up);
|
|
|
+ Log.e(TAG,"sipAddress "+sipAddress+" getType() "+callItemChooseEntity.getType()+" DeviceMAC "+callItemChooseEntity.getDeviceMAC());
|
|
|
mainFragmentActivity.initiateCall(sipAddress, callingEntity.getType(), callingEntity.getDeviceMAC());
|
|
|
+// mainFragmentActivity.initiateCall("4000180040", "3", "0");
|
|
|
removeCallList(callingEntity);
|
|
|
}
|
|
|
} else {
|
|
@@ -1060,6 +1062,7 @@ public class CallingBedFragment extends BaseFragment implements SicknessBedAdapt
|
|
|
callSipId = sipAddress;
|
|
|
callBed = true;
|
|
|
ivCallPic.setImageResource(R.mipmap.ic_calling_sickbed_right_hang_up);
|
|
|
+// Log.e(TAG,"sipAddress "+sipAddress+" getType() "+callItemChooseEntity.getType()+" DeviceMAC "+callItemChooseEntity.getDeviceMAC());
|
|
|
mainFragmentActivity.initiateCall(sipAddress, "", sickBedInfo.getDeviceMAC() == null ? "-1" : sickBedInfo.getDeviceMAC());
|
|
|
Constants.CallType = Constants.MAIN_CALL;//设置呼叫类型标记
|
|
|
}
|
|
@@ -1260,7 +1263,10 @@ public class CallingBedFragment extends BaseFragment implements SicknessBedAdapt
|
|
|
LogUtil.d("sipAddress", "Call==sipAddress==" + sipAddress);
|
|
|
LogUtil.d("sipAddress", "Call==deviceMAC==" + callItemChooseEntity.getDeviceMAC());
|
|
|
//ToastUtil.showToast(sipAddress+"===="+callItemChooseEntity.getDeviceMAC());
|
|
|
+ Log.e(TAG,"sipAddress "+sipAddress+" getType() "+callItemChooseEntity.getType()+" DeviceMAC "+callItemChooseEntity.getDeviceMAC());
|
|
|
mainFragmentActivity.initiateCall(sipAddress, callItemChooseEntity.getType(), callItemChooseEntity.getDeviceMAC());
|
|
|
+ //删除医生机转接给护士机的集合
|
|
|
+ removeCallList(MyApplication.callEntityList.get(position));
|
|
|
}
|
|
|
} else {
|
|
|
endCall();
|
|
@@ -1510,7 +1516,7 @@ public class CallingBedFragment extends BaseFragment implements SicknessBedAdapt
|
|
|
Constants.DoctorMachineCallStatus = Constants.STANDBY;
|
|
|
Constants.CALL_STATE = Constants.STANDBY;
|
|
|
break;
|
|
|
- case "call_15_doctor_hang_up_phone"://医生主机挂断电话,这时可以进行下一个床头分机的呼叫转移
|
|
|
+ case "call_15_doctor_hang_up_phone"://医生主机挂断电话,这时可以进行下一个床头分机的呼叫转移给医生机
|
|
|
transmitThreadBool = true;
|
|
|
break;
|
|
|
case "call_1_b1": //护士已经退出护理
|
|
@@ -2211,8 +2217,16 @@ public class CallingBedFragment extends BaseFragment implements SicknessBedAdapt
|
|
|
endCall(); //挂断电话!
|
|
|
}
|
|
|
// ivCallPic.setImageResource(R.mipmap.ic_calling_sickbed_right_calling);
|
|
|
+ if (handTelephone) {
|
|
|
+ if (Constants.CallType.equals(Constants.NURSE_CALL)) {
|
|
|
+ UdpSendUtil.sendNurseHostHangUp(Constants.CALLING_DOCTOR_HOST_ID);//通知医生主机改变状态
|
|
|
+ Constants.DoctorMachineCallStatus = Constants.STANDBY;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
handTelephone = false;
|
|
|
MainFragmentActivity.initCallVoiceShowProgress();//20190801 waderson
|
|
|
+
|
|
|
}
|
|
|
if (0 == data) {//拿起状态
|
|
|
Constants.HANDS_FREE = false;
|
|
@@ -2222,6 +2236,11 @@ public class CallingBedFragment extends BaseFragment implements SicknessBedAdapt
|
|
|
if (!handTelephone) { //拨打电话开始!
|
|
|
autoStartCall();
|
|
|
}
|
|
|
+
|
|
|
+ //删除医生机转接给护士机的集合
|
|
|
+ if(MyApplication.callEntityList.size()>0){
|
|
|
+ removeCallList(MyApplication.callEntityList.get(0));
|
|
|
+ }
|
|
|
handTelephone = true;
|
|
|
MainFragmentActivity.initCallVoiceShowProgress();//20190801 waderson
|
|
|
}
|