I'm listening for the following inbound call event:
/restapi/v1.0/account/~/extension/~/presence?detailedTelephonyState=true
Is there a way to know which external number was dialed? We need to know for routing/marketing purposes.
I'm listening for the following inbound call event:
/restapi/v1.0/account/~/extension/~/presence?detailedTelephonyState=true
Is there a way to know which external number was dialed? We need to know for routing/marketing purposes.
The presence?detailedTelephonyState=true provides limited info about a call. I recommend you to use the "/telephony/sessions" event notification to get more details of a call. If you do need the presence info via presence notification. Put these in the filter array
[ "/restapi/v1.0/account/~/extension/~/presence", "/restapi/v1.0/account/~/extension/~/telephony/sessions" ]
Check out this blog for more info about the telephony session event notification
Thank you.
Using the telephony sessions event, I still don't see the number dialed. In this test, I dialed +16167470088 but it doesn't show anywhere.
{ "uuid": "4052838342559586889", "event": "/restapi/v1.0/account/244756004/extension/244756004/telephony/sessions", "timestamp": "2020-10-02T20:33:30.604Z", "subscriptionId": "89a75930-fba3-421a-b0f0-113b12b1b687", "ownerId": "244756004", "body": { "sequence": 6, "sessionId": "10761928005", "telephonySessionId": "s-a2df515e3cdf49079cff06828c81f73a", "serverId": "10.29.20.82.TAM", "eventTime": "2020-10-02T20:33:30.449Z", "parties": [ { "accountId": "244756004", "extensionId": "244756004", "id": "p-a2df515e3cdf49079cff06828c81f73a-3", "direction": "Inbound", "to": { "phoneNumber": "101", "name": "Dan English", "extensionId": "244756004" }, "from": { "phoneNumber": "+19492016584" }, "status": { "code": "Setup", "rcc": false }, "park": {}, "missedCall": false, "standAlone": false, "muted": false } ], "origin": { "type": "Call" } } }
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.