plugin-flex-outbound-dialpad
plugin-flex-outbound-dialpad copied to clipboard
After First Call, Dialer Sends Incorrectly Formatted Number to Dialpad/call-outbound-join Endpoint
After the first call, subsequent calls using the Dialer results in a
"error":"The phone number you are attempting to call, +3324327116, is not valid."
response from POST https://flex.twilio.com/v1/Dialpad/call-outbound-join
The first outgoing call sends out the API request correctly, but subsequent API requests from the dialer incorrectly appends a "+" sign before the phone number value.
So if I enter 444-222-3333 into the dialer, the requested number is +444-222-3333 (even though I didn't put a "+" in front of the number in the dialer). And since you must append the local number with a country code if you include the "+" sign, the resulting call fails.
I found you can get around this bug by entering the full phone number with country code and the plus sign. So for the above number, if I enter +1-444-222-3333 into the dialer, the call does go through.
This looks to be a simple parsing fix.