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
Call logs legs details
Tags: getting started
Dec 5, 2017 at 8:08am   •   3 replies  •  0 likes
keith-stephens-fax

Hello All,

At this point I dont know if I need to use call logs with Details/Legs or not.

I want to get a count of all inbound and outbound call made per company user.

And display UserName and count number.

Right Now I am looking at the LEGS details.

Scenario:

I made a call out from my Ringcentral soft phone +19167502475 to my companys desk phone 17048978566

But the legs show me 2 legs. Below. Why does leg[0] show me a to: of 19167502475 (which is what I dialed from), and a from: of 17048978566what I dialed to.

And LEG[1] shows the opposite?

"legs": [

{

"startTime": "2017-12-01T16:37:24.760Z",

"duration": 30,

"type": "Voice",

"direction": "Outbound",

"action": "RingOut Web",

"result": "Accepted",

"to": {

"phoneNumber": "+19167502475",

"location": "Sacramento (North), CA"

},

"from": {

"phoneNumber": "+17048978566",

"name": "RingCentral API"

},

"transport": "PSTN",

"billing": {

"costIncluded": 0,

"costPurchased": 0

},

"legType": "RingOutWebToSubscriber",

"extension": {

"uri": ";,

"id": 150344004

}

},

{

"startTime": "2017-12-01T16:37:27.942Z",

"duration": 27,

"type": "Voice",

"direction": "Outbound",

"action": "RingOut Web",

"result": "Call connected",

"to": {

"phoneNumber": "+17048978566",

"location": "Davidson, NC"

},

"from": {

"phoneNumber": "+19167502475",

"name": "RingCentral API"

},

"transport": "PSTN",

"legType": "RingOutWebToCaller",

"extension": {

"uri": "

;, "id": 150344004

},

"master": true

}

]

}

Thanks,

Keith.


3 Answers
answered on Dec 6, 2017 at 5:30am  
I need to get a user names and a count of direct incoming and outgoing calls?  Apparently I have been going about this wrong since there is a difference between the two call methods.

 0
answered on Dec 6, 2017 at 5:05am  
What is the difference between the 2 calls?  Also how do I make a direct call in my sandbox?
Thanks,
Keith

 0
answered on Dec 5, 2017 at 4:59pm  
Is it a ringout call? Ringout is different from direct call. And there is an intermediate number to connect from and to.

 0



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