cybex-dev / twilio_voice

Flutter Twilio Voice Plugin
https://twilio-voice-web.web.app/
MIT License
39 stars 79 forks source link

_prettyPrintNumber is US-only? #245

Open jd-bus opened 1 month ago

jd-bus commented 1 month ago

Issue Summary

The implementation of ActiveCall _prettyPrintNumber does not use a proper international number formatter. Instead it seems to be hardcoded to assume that the number is USA format. This affects ActiveCall.toFormatted and ActiveCall.fromFormatted.

Steps to Reproduce

Try calling an international number like +52 55-2591-9530.

Expectation: toFormatted should return like: +52 55-2591-9530 Observed result: toFormatted returns: (525) 525-919530