I am expierencing strange behavior of Ringout APIs
I make a Ringout call, with a subscription to /restapi/v1.0/account/~/extension/~/presence?detailedTelephonyState=true. When the call, is initiated, I receive a notification where activeCalls has one entry:
[ { direction: "Outbound", from: "12296386813", sessionId: "777723541012", telephonyStatus: "Ringing", to: "18008768533" } ]
so far, soo good
when softpfone rings, another notofication comes, with 2 entries in activeCalls:
[ { direction: "Inbound", from: "18008768533", id: "f7a273c803be43f59b3d76927f43e2a2", sessionId: "777723542012", telephonyStatus: "Ringing", to: "12296386813" }, { direction: "Outbound", from: "12296386813", id: "7fded2188141416b88b6c9355069e991", sessionId: "777723541012", telephonyStatus: "CallConnected", to: "18008768533" } ]
Inbound? And outbound connected ?
After the call is finished, I request call log. And here is what I see:
[ { "uri":"https://platform.ringcentral.com/restapi/v1.0/account/2547887012/extension/2547889012/call-log/QFTvxOsxQ4xoEcE?view=Simple", "id":"QFTvxOsxQ4xoEcE", "sessionId":"777723542012", "startTime":"2015-11-11T06:19:53.000Z", "duration":31, "type":"Voice", "direction":"Inbound", "action": "Phone Call", "result":"Missed", "to": {"phoneNumber":"+12296386813", "name":"Michael Whitehead", "location":"Albany, GA"}, "from": {"phoneNumber":"+18008768533"} }, { "uri":"https://platform.ringcentral.com/restapi/v1.0/account/2547887012/extension/2547889012/call-log/QFTvw4fryy7eEcA?view=Simple", "id":"QFTvw4fryy7eEcA", "sessionId":"777723541012", "startTime":"2015-11-11T06:19:52.000Z", "duration":32, "type":"Voice", "direction":"Outbound", "action":"RingOut Web", "result":"No Answer", "to":{"phoneNumber":"+12296386813","name":"Michael Whitehead","location":"Albany, GA"}, "from":{"name":"Michael Whitehead"} } ]
I understand these are 2 legs of same call, but how do I figure that out?
Now I look at the calls log at https://service.ringcentral.com
Same info, very misleading
And same in Mac app:
Interestingly, when using sandbox, the call log at https://service.devtest.ringcentral.com only has one record per call, and so does call log returned from API call
Also, API docs say that call log records should contain information about call legs - but that info is never returned.
This makes the API absolutely unusable for me. What I am doing wrong?