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

Can not get voiceStatusCallback from api #329

Open
marphi opened this issue Sep 9, 2022 · 0 comments
Open

Can not get voiceStatusCallback from api #329

marphi opened this issue Sep 9, 2022 · 0 comments

Comments

@marphi
Copy link

marphi commented Sep 9, 2022

Can not fetch Number::getWebhook(Number::WEBHOOK_VOICE_STATUS)

Some time ago I've noticed similar issue #271. After solving this issue there is no option to fetch the set value.

I've notice that endpoints
GET https://rest.nexmo.com/account/numbers?size=100&index=1&page_index=1&api_key=<api_key>&api_secret=<secret>

returns response with data like:

    {
      "country": "PL",
      "msisdn": "xxxx",
      "type": "mobile-lvn",
      "features": [
        "VOICE"
      ],
      "voiceCallbackType": "tel",
      "voiceCallbackValue": "xxxx",
      "voiceStatusCallbackUrl": "https://example.org/..."
    },

voiceStatusCallbackUrl is the problem.
Number::hasWebhook(Number::WEBHOOK_VOICE_STATUS) always returns false.

Number::getWebhook(Number::WEBHOOK_VOICE_STATUS) expects column name voiceStatusCallback, which is changed in #271, becouse api to create/update number expects voiceStatusCallback.

IMHO it could be a "backend" issue, serialization/deseriazliation on create/update endpoints have to expect the same field name as on fetch numbers endpoints.

@marphi marphi changed the title Can get voiceStatusCallback from api Can not get voiceStatusCallback from api Sep 9, 2022
@SecondeJK SecondeJK self-assigned this Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants