News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
Inbound presence event: does it include the external number called?
Tags: events, presence
Oct 1, 2020 at 1:09pm   •   3 replies  •  0 likes
Dan English

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.

3 Answers
answered on Oct 1, 2020 at 3:15pm  

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


 0
answered on Oct 1, 2020 at 3:19pm  

Thank you.


 0
answered on Oct 2, 2020 at 2:31pm  

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"
}
}
}



 0
on Oct 5, 2020 at 11:03am   •  0 likes

How do make the call? Did you set the caller id? Which number is the "from" "+19492016584". Where is this number coming from?

on Oct 5, 2020 at 11:08am   •  0 likes

That is my personal cel number, used for testing.

on Oct 5, 2020 at 11:49am   •  0 likes

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

on Oct 5, 2020 at 7:42pm   •  0 likes

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

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us