Skip to content

Commit 8897efb

Browse files
authored
Merge pull request #233 from agent515/fix-null-custom-params-in-active-call-on-answer
Add Call Direction in sendPhoneCallEvents description to fix customPa…
2 parents 779cb7f + 599a9e7 commit 8897efb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

android/src/main/kotlin/com/twilio/twilio_voice/TwilioVoicePlugin.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1735,7 +1735,7 @@ class TwilioVoicePlugin : FlutterPlugin, MethodCallHandler, EventChannel.StreamH
17351735
}
17361736
}.toString()
17371737
// callSid = callHandle
1738-
logEvents("", arrayOf("Answer", from, to, params))
1738+
logEvents("", arrayOf("Answer", from, to, CallDirection.INCOMING.label, params))
17391739
}
17401740

17411741
TVNativeCallActions.ACTION_DTMF -> {

ios/Classes/SwiftTwilioVoicePlugin.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,7 @@ public class SwiftTwilioVoicePlugin: NSObject, FlutterPlugin, FlutterStreamHand
955955
}
956956
self.sendPhoneCallEvents(description: "LOG|performAnswerVoiceCall: answering call", isError: false)
957957
let theCall = ci.accept(options: acceptOptions, delegate: self)
958-
self.sendPhoneCallEvents(description: "Answer|\(theCall.from!)|\(theCall.to!)\(formatCustomParams(params: ci.customParameters))", isError:false)
958+
self.sendPhoneCallEvents(description: "Answer|\(theCall.from!)|\(theCall.to!)|Incoming\(formatCustomParams(params: ci.customParameters))", isError:false)
959959
self.call = theCall
960960
self.callKitCompletionCallback = completionHandler
961961
self.callInvite = nil

0 commit comments

Comments
 (0)