|
@@ -116,6 +116,7 @@ import static com.wdkl.callingbed2.util.ToastUtil.showToast;
|
|
|
import static com.wdkl.callingbed2.util.ethernetwifiwithsipconnectstatus.WifiBindSipStatusConnector.ethernetStatus;
|
|
|
import static com.wdkl.callingbed2.util.sendcommand.CallingBedSendCommand.closeHeart;
|
|
|
import static com.wdkl.callingbed2.util.sendcommand.CallingBedSendCommand.setBedLight;
|
|
|
+import static com.wdkl.callingbed2.util.sendcommand.CallingBedSendCommand.setCallStatus;
|
|
|
import static com.wdkl.callingbed2.util.sendcommand.CallingBedSendCommand.setDoorLight;
|
|
|
import static com.wdkl.callingbed2.util.sendcommand.CallingBedSendCommand.setHandsMIC;
|
|
|
import static com.wdkl.callingbed2.util.sendcommand.CallingBedSendCommand.setNurseBrightness;
|
|
@@ -2041,6 +2042,7 @@ public class CallingBedActivity extends BaseActivity implements ISerialPortBedOn
|
|
|
callNurse = true;
|
|
|
showThisView(vNurse);
|
|
|
setDoorLight(serialPortUtil, "200");//门灯红色闪烁 add by waderson 20191119 后来加的门灯控制
|
|
|
+ setCallStatus(serialPortUtil, "1");
|
|
|
UdpSendUtil.sendCall1(initDataEntity, mainDataEntity);
|
|
|
CALL_STATUS = Constants.NURSE_IN_CALL;
|
|
|
if (null != initDataEntity) {
|
|
@@ -2052,6 +2054,7 @@ public class CallingBedActivity extends BaseActivity implements ISerialPortBedOn
|
|
|
callNurse = true;
|
|
|
showThisView(vNurse);
|
|
|
setDoorLight(serialPortUtil, "200");//门灯红色闪烁 add by waderson 20191119 后来加的门灯控制
|
|
|
+ setCallStatus(serialPortUtil, "1");
|
|
|
UdpSendUtil.sendCall1(initDataEntity, mainDataEntity);
|
|
|
CALL_STATUS = Constants.NURSE_IN_CALL;
|
|
|
if (null != initDataEntity) {
|
|
@@ -2068,6 +2071,7 @@ public class CallingBedActivity extends BaseActivity implements ISerialPortBedOn
|
|
|
callNurse = false;
|
|
|
UdpSendUtil.sendHangUp(initDataEntity, mainDataEntity);//取消呼叫 add by waderson 20191118
|
|
|
SipHelperUtil.getInstance(CallingBedActivity.this).getmSipCallBackI().endCall();
|
|
|
+ setCallStatus(serialPortUtil, "0");
|
|
|
CALL_STATUS = STANDBY;
|
|
|
showThisView(vMain);
|
|
|
goneLlRightView(true);
|
|
@@ -2293,7 +2297,7 @@ public class CallingBedActivity extends BaseActivity implements ISerialPortBedOn
|
|
|
//jbVNurse.stopJumping();
|
|
|
tvNurseText.setText("正在通话中...");
|
|
|
tvNurseTimeOut.setText("");
|
|
|
-
|
|
|
+ setCallStatus(serialPortUtil, "2");
|
|
|
|
|
|
if (isTransfer) {
|
|
|
} else {
|
|
@@ -2315,6 +2319,7 @@ public class CallingBedActivity extends BaseActivity implements ISerialPortBedOn
|
|
|
CallingBedActivity.initPlayerVolume(1.0f);
|
|
|
CALL_STATUS = Constants.STANDBY;
|
|
|
showThisView(vMain);
|
|
|
+ setCallStatus(serialPortUtil, "0");
|
|
|
|
|
|
if (isTransfer) {
|
|
|
if (null != callNoticeEntity) {
|