twilio_voice icon indicating copy to clipboard operation
twilio_voice copied to clipboard

Add Call Direction in sendPhoneCallEvents description to fix customPa…

Open agent515 opened this issue 1 year ago • 1 comments

…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;
  }
}

agent515 avatar May 08 '24 13:05 agent515

Thank you for the PR - will review and merge this week.

cybex-dev avatar May 14 '24 11:05 cybex-dev

Amazing PR, thank you and great catch. Expect it in next pub.dev release.

cybex-dev avatar Mar 19 '25 18:03 cybex-dev