I Call out with Desktop App, there are 2 records return, RingOutPC and Phone Call, how can I know the second record is from ringoutPC or just inbound call? I need to merge 2 record to 1 record to calculate correct duration.
for example: the following records. one for inbound call, other 2 are outbound from PC.
uri id sessionId startTime duration Type Direction Action Result To_Phone To_extensionNumber To_Name To_Location From_Phone From_extensionNumber From_Name From_Location transport lastModifiedTime legs_startTime legs_duration https://platform.ringcentral.com/restapi/v1.0/account/502681018/call-log/aOVzMtGEALUc5Xc?view=Detail... aOVzMtGEALUc5Xc 1268118322019 24-Jan-17 39 Voice Inbound Phone Call Accepted +18177686409 7020 Yanmei Morales +12143358664 MORALES YANMEI Grand Prairie (Dallas), TX PSTN 2017-01-24T17:47:54.119Z 0 https://platform.ringcentral.com/restapi/v1.0/account/502681018/call-log/aORllaQIvC_W1q4?view=Detail... aORllaQIvC_W1q4 1268068587019 24-Jan-17 10 Voice Outbound RingOut PC Call connected +18003159339 +12143477228 Yanmei Morales PSTN 2017-01-24T17:09:52.446Z 0 https://platform.ringcentral.com/restapi/v1.0/account/502681018/call-log/aORlnfepjmES1pk?view=Detail... aORlnfepjmES1pk 1268068593019 24-Jan-17 32 Voice Inbound Phone Call Accepted +18177686409 7020 Yanmei Morales +18003159339 PSTN 2017-01-24T17:09:53.577Z 0