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
master in legs in sdk
Tags: sdk
Oct 11, 2018 at 6:38am   •   8 replies  •  0 likes
david-southern

I'm trying to find the 'master' flag in the C# sdk for the call log record 'leg' subtype, but I'm not seeing it. Am I just blind, or has the element been omitted from the sdk or removed from the API?

8 Answers
answered on Oct 24, 2018 at 8:21am  
Sounds good... I'll probably take a look at it tomorrow.

 0
answered on Oct 22, 2018 at 12:55pm  
Thanks Tyler. I'll look to see that SDK update.  Is there some mailing list I should be on to be able to know when new updates to the SDK are posted?


 0
answered on Oct 19, 2018 at 8:02am  
Hey Tyler - do you have an update on this?  

Thanks!


 0
answered on Oct 17, 2018 at 6:17am  
Thanks Tyler.  I was afraid I was going to have to go into the source code myself and add that property.  :)

 0
answered on Oct 16, 2018 at 7:31pm  
Hi David, thank you very much for the feedback!

The C# code is auto generated according to swagger spec. I just check the swagger spec and there isn't a master property at all. So the issue is the swagger spec. 

I will escalate this issue and push them to fix it as soon as possible.

 0
answered on Oct 16, 2018 at 8:14am  
Sorry - just now getting back to this.  :)

So here's an example of the code we're using:

//add the leg data
                        foreach (RingCentral.CallLogRecordLegInfo leg in log.legs)
                        {
                            var logLeg = new legInfo()
                            {
                                action = leg.action,
                                call_Id = log.id,   //extracted from the parent call log record.
                                direction = leg.direction,
                                duration = leg.duration,
                                legType = leg.legType,
                                result = leg.result,
                                startTime = leg.startTime,
                                transport = leg.transport,
                                type = leg.type,
                                
                            };

The 'log' variable is of type RingCentral.CallLogRecord.  If I look at the 'leg' variable I don't see a 'master' property on there.  

 0
answered on Oct 12, 2018 at 6:23am  
Thanks Tyler.  Here's an example pulled from the API:

[{"startTime":"2018-09-17T22:52:44.723Z","duration":33,"type":"Voice","direction":"Outbound","action":"VoIP Call","result":"Hang Up","to":{"phoneNumber":"+15084941229","name":"WIRELESS CALLER","location":"Framingham, MA"},"from":{"phoneNumber":"+15088094487","name":"Patient Unit 5 410","device":{"uri":"https://platform.ringcentral.com/restapi/v1.0/account/62100168016/device/802202037016","id":"802202037016"}},"extension":{"uri":"https://platform.ringcentral.com/restapi/v1.0/account/62100168016/extension/62194396016","id":62194396016},"transport":"VoIP","legType":"SipToPstnUnmetered","master":true}]

 

 0
answered on Oct 11, 2018 at 9:24pm  
Could you please post some sample data?

It might be omitted from the API Server side. In order to confirm it, you can make API call without auto converting result to C# objects: https://github.com/ringcentral/ringcentral-csharp-client#what-if-i-want-plain-http-without-those-fan...

Then you can if the data is included in server response.

Let me know what you find.

 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