Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After First Call, Dialer Sends Incorrectly Formatted Number to Dialpad/call-outbound-join Endpoint #49

Open
pihish opened this issue Mar 21, 2020 · 0 comments

Comments

@pihish
Copy link

pihish commented Mar 21, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant