question

thompson7544 avatar image
thompson7544 asked ·

Detailed CallLog : given an Incoming Call who receives it?

Sorry for such a simple question. I'm retrieving detailed call log data and trying to determine which RC user picked up the inbound call.

I'd thought I could just look at each Call where call result= "Accepted"
and final leg result = "Accepted" 
and the call recipient would be the 'to' of the receiving RC user.

Instead, I'm mostly seeing the 'to' number as something I don't recognise, but the 'from' is an RC user.

last Leg  from call where Call 'from' was a customer phoning in, eg:

"result": "Accepted",
                    "to": {
                        "phoneNumber": "+440000000005" <-- no idea about this (example) number
                    },
                    "from": {
                        "name": "Bob Dobbs", <!-- Bob is an RC User

What should I be looking at to determine which user picked up an Incoming call? 

Sorry if I'm not being clear. I don't actually use RC, I'm just accessing the API.

Thanks
aaa
1 |1000 characters needed characters left characters exceeded

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

Phong Vu avatar image
Phong Vu answered ·
Hi Thompson,

I am not sure if the "to" phone number you showed is a real one you received. But if that is real, then it looks like some international number issue.

If you question is purely about how to map the "to" number to one of the extension under your account, then maybe you use the phone-number (at the account level /account/~/phone-number) endpoint to read all phone numbers under the account and match with the number you received to determine the user.

+ Phong
Share
1 |1000 characters needed characters left characters exceeded

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

thompson7544 avatar image
thompson7544 answered ·
 I am not sure I phrased my question very well. You can delete this question if you like and I will submit a better example from the actual logs on Monday. Thank you anyway.
Share
1 |1000 characters needed characters left characters exceeded

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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