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

[4.3] Upstream 4.3 telnyx carrier api issues #6615

Closed

Conversation

bradfordben
Copy link
Contributor

@bradfordben bradfordben commented Jul 30, 2020

Fixes to the Telnyx carrier module

The best effort configuration setting did not work, My guess is that this was written and then telnyx changed the api response and the response to no longer included the flag “any_best_effort” so the old code would never filter the best effort out. This improvement will now pass the best effort flag to telnyx and remove the need to filter the response.

Requests for TF numbers was failing as the request built and passed to Telnyx was incorrect. It passed the TF NAP as prefix in the body and it should be nap as there api doc states. I have also added the option to filer TF numbers by NXX.

Also found that the crossbar quantity option was always overwritten to 500 so every time you requested 15 numbers through CB it requested 500 from telnyx resulting in longer query times. The fix was to only set the default values if they were not set.

Kazoo5 PR https://github.com/2600hz/kazoo-core/pull/48

searching for toll-free numbers. When searching for toll-free numbers
the api request sent to telnyx was incorrect resulting in a poor
number search response.
This will fix a bug where the quantity of numbers requested
during a search was always overwritten to the max search size that
defaults to 500 resulting in longer query times.
…hing

for numbers with the telnyx module. The option is now passed to telnyx
as part of the api request as opposed to filtering the response in kazoo.
broken as a result of the changes to the telnyx requests.
core/kazoo_number_manager/src/carriers/knm_telnyx.erl Outdated Show resolved Hide resolved
core/kazoo_number_manager/src/carriers/knm_telnyx.erl Outdated Show resolved Hide resolved
core/kazoo_number_manager/src/knm_telnyx_util.erl Outdated Show resolved Hide resolved
core/kazoo_number_manager/src/knm_telnyx_util.erl Outdated Show resolved Hide resolved
@bradfordben bradfordben force-pushed the upstream-4.3-telnyx-carrier-api-issues branch from b203833 to 48f7c80 Compare September 29, 2020 19:31
@bradfordben bradfordben force-pushed the upstream-4.3-telnyx-carrier-api-issues branch from 48f7c80 to 95fc21c Compare September 29, 2020 19:34
jamesaimonetti pushed a commit that referenced this pull request Oct 2, 2020
Fixes to the Telnyx carrier module

The best effort configuration setting did not work, My guess is that
this was written and then telnyx changed the api response and the
response to no longer included the flag “any_best_effort” so the old
code would never filter the best effort out. This improvement will now
pass the best effort flag to telnyx and remove the need to filter the
response.

Requests for TF numbers was failing as the request built and passed to
Telnyx was incorrect. It passed the TF NAP as `prefix` in the body and
it should be `nap` as there api doc states. I have also added the
option to filer TF numbers by NXX.

Also found that the crossbar quantity option was always overwritten to
500 so every time you requested 15 numbers through CB it requested 500
from telnyx resulting in longer query times. The fix was to only set
the default values if they were not set.
@jamesaimonetti
Copy link
Member

Merged

@bradfordben
Copy link
Contributor Author

Thanks

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

Successfully merging this pull request may close these issues.

2 participants