Skip to content

Commit aaf5083

Browse files
committed
add in sip scheme
1 parent 97205a8 commit aaf5083

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

android/src/main/java/io/wazo/callkeep/RNCallKeepModule.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ public void displayIncomingCall(String uuid, String identifier, String callerTyp
133133
return;
134134
}
135135

136-
Log.d(TAG, "displayIncomingCall identifier: " + identifier + ", callerName: " + callerName);
136+
Log.d(TAG, "displayIncomingCall identifier: " + identifier + ", callerName: " + callerName + ", callerType: " + callerType + ", callHasVideo: " + callHasVideo);
137137

138138
Bundle extras = new Bundle();
139139
Uri uri = Uri.fromParts((callerType.equals("sip") ? PhoneAccount.SCHEME_SIP : PhoneAccount.SCHEME_TEL), identifier, null);
@@ -169,7 +169,7 @@ public void startCall(String uuid, String identifer, String callerName, String c
169169
return;
170170
}
171171

172-
Log.d(TAG, "startCall identifer: " + identifer + ", callerName: " + callerName);
172+
Log.d(TAG, "startCall identifer: " + identifer + ", callerName: " + callerName + ", callerType: " + callerType + ", callHasVideo: " + callHasVideo);
173173

174174
Bundle extras = new Bundle();
175175
Uri uri = Uri.fromParts((callerType.equals("sip") ? PhoneAccount.SCHEME_SIP : PhoneAccount.SCHEME_TEL), identifer, null);
@@ -445,7 +445,8 @@ private void registerPhoneAccount(Context appContext) {
445445
handle = new PhoneAccountHandle(cName, appName);
446446

447447
PhoneAccount.Builder builder = new PhoneAccount.Builder(handle, appName)
448-
.setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER);
448+
.addSupportedUriScheme(PhoneAccount.SCHEME_SIP)
449+
.setCapabilities(PhoneAccount.CAPABILITY_CALL_PROVIDER | PhoneAccount.CAPABILITY_VIDEO_CALLING);
449450

450451
if (_settings != null && _settings.hasKey("imageName")) {
451452
int identifier = appContext.getResources().getIdentifier(_settings.getString("imageName"), "drawable", appContext.getPackageName());

0 commit comments

Comments
 (0)