Ringcentral Webhooks - caller name shows extention number instead of mobile number

45 Views Asked by At

We have created Webhook Subscription for getting missed calls.

We are using "/restapi/v1.0/account/~/telephony/sessions?direction=Inbound&missedCall=true" to get all missed calls/voice calls.

Webhook works good as we get all call information but somehow for some number we get only extention value(101) instead of phone number(refer attahced files)

enter image description hereis there any way to get actual phone number instead of extention number?

1

There are 1 best solutions below

0
On BEST ANSWER

It looks like you are using password based authentication.

You can use JWT authentication instead of password based authentication

and then add following api to get call for each extension(replace second ~ with extension id)

"/restapi/v1.0/account/~/extension/~/voicemail",

alongwith

 "/restapi/v1.0/account/~/telephony/sessions?direction=Inbound&missedCall=true",