twilio_voice
twilio_voice copied to clipboard
Add Call Direction in sendPhoneCallEvents description to fix customPa…
…rams being null in Active Call on Answer.
Fixes #232
Call Direction is added to the Call Event log to satisfy tokens.length == 5 condition in parseCustomParams().
Map<String, dynamic>? parseCustomParams(List<String> tokens) {
if (tokens.length != 5) return null;
try {
Map<String, dynamic> customValue = jsonDecode(tokens[4]);
return customValue;
} catch (error) {
return null;
}
}
Thank you for the PR - will review and merge this week.
Amazing PR, thank you and great catch. Expect it in next pub.dev release.