Skip to content

Commit 3e1fbca

Browse files
committed
Add extra logging output
1 parent 44df864 commit 3e1fbca

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

android/src/main/kotlin/com/twilio/twilio_voice/service/TVConnection.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ class TVCallInviteConnection(
4242
}
4343

4444
override fun onAnswer() {
45+
Log.d(TAG, "onAnswer: onAnswer")
4546
super.onAnswer()
4647
twilioCall = callInvite.accept(context, this)
4748
onAction?.onChange(TVNativeCallActions.ACTION_ANSWERED, Bundle().apply {
@@ -51,14 +52,17 @@ class TVCallInviteConnection(
5152
}
5253

5354
fun acceptInvite() {
55+
Log.d(TAG, "acceptInvite: acceptInvite")
5456
onAnswer()
5557
}
5658

5759
fun rejectInvite() {
60+
Log.d(TAG, "rejectInvite: rejectInvite")
5861
onReject()
5962
}
6063

6164
override fun onReject() {
65+
Log.d(TAG, "onReject: onReject")
6266
super.onReject()
6367
callInvite.reject(context)
6468
// if the call was answered, then immediately rejected/ended, we need to disconnect the call also
@@ -463,6 +467,7 @@ open class TVCallConnection(
463467
* Otherwise, disconnect the call using [Call.disconnect] with [DisconnectCause.LOCAL]
464468
*/
465469
fun disconnect() {
470+
Log.d(TAG, "disconnect: disconnect")
466471
if (this is TVCallInviteConnection && state == STATE_RINGING) {
467472
rejectInvite()
468473
} else {

0 commit comments

Comments
 (0)