Reputation: 50
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)
is there any way to get actual phone number instead of extention number?
Upvotes: 0
Views: 40
Reputation:
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",
Upvotes: 0