This commit is contained in:
2021-04-20 22:05:07 +08:00
parent a90f8bf59c
commit 38b701a4ea
8 changed files with 17 additions and 8 deletions

View File

@@ -173,7 +173,7 @@ public class SipEngine implements BluetelInterface {
int calltype = isVideo == false ? 0 : 1;
String state = isVideo == true ? "视频来电" : "音频来电";
callPagesConfig.add(new InCallUtils(incomingNumber, isHolder, isVideo, rPort, lPort, incomingNumber, state, false, 0, callid));
GoToInCall(App.getContext(), incomingNumber, "来电", calltype, callid);
GoToInCall(App.getContext(), incomingNumber, "来电", calltype, callid, false);
}
@Override
@@ -247,7 +247,7 @@ public class SipEngine implements BluetelInterface {
* @param calltype
* @param callid
*/
public void GoToInCall(Context context, String callnumber, String callstate, int calltype, int callid) {
public void GoToInCall(Context context, String callnumber, String callstate, int calltype, int callid, boolean selfCall) {
Intent intent = null;
logmy.e("GoToInCall==============" + isMeetingCall(callnumber) +"==="+ System.currentTimeMillis());
@@ -261,6 +261,7 @@ public class SipEngine implements BluetelInterface {
bundle.putString("callnumber", callnumber);
bundle.putString("callstate", callstate);
bundle.putInt("calltype", calltype);
bundle.putBoolean("selfCall", selfCall);
intent.putExtras(bundle);
intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
context.startActivity(intent);
@@ -276,7 +277,7 @@ public class SipEngine implements BluetelInterface {
public int CallNumber(String number, boolean isVideo) {
int calltype = isVideo ? 0 : 1;
int callid = myBluetelEngine.CallNumber(number, ip, port, isVideo);
GoToInCall(App.getContext(), number, "呼叫中", calltype, callid);
GoToInCall(App.getContext(), number, "呼叫中", calltype, callid, true);
callPagesConfig.add(new InCallUtils(number, false, isVideo, 0, 0, number, "呼叫中", false, 0, callid));
return callid;