question

david-southern11373 avatar image
david-southern11373 asked david-southern11373 answered

Not finding legs in call logs

I have the following code for extracting call log records from the api:


RingCentral.ExtensionCallLogResponse response;

mRecordList = new List<RingCentral.CallLogRecord>();


int pageNum = 0;


RingCentral.RestClient rc = new RingCentral.RestClient("fakeKey", "fakeSecret", true);


await rc.Authorize("fakeNumber", "fakeExt", "fakePassword");


do

{


pageNum++;

response = await rc.Restapi().Account("~").CallLog().List(new { dateFrom = fromDate, dateTo = toDate, page = pageNum.ToString(), perPage = recordsPerPage, detailed = "true" });

mRecordList.AddRange(response.records);

System.Threading.Thread.Sleep(7000);

} while (response.navigation.nextPage != null);


This returns 6391 records, but none of them have any leg info. Now I know it's possible that they don't have any leg info, but I just want to make sure the code I have above will return leg info.


Thanks!

sdk
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

david-southern11373 avatar image
david-southern11373 answered
Aha!  Found the problem.  detailed = "true" should be view = "Detailed" - and it's important that Detailed be capitalized.
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys