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
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" } } }
How do make the call? Did you set the caller id? Which number is the "from" "+19492016584". Where is this number coming from?
That is my personal cel number, used for testing.
Oh, so you want to see the "to" number. That's your main company number. Can you dial the digital line number (424) xxx-8002
It worked when I dialed the direct number. Thanks.
A new Community is coming to RingCentral!
Posts are currently read-only as we transition into our new platform.We thank you for your patience
during this downtime.
Try Workflow Builder
Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!Try RingCentral Workflow Builder