I am confused about some of the data being sent back by the API for a detailed call log for extension to extension calls. Here's what I am getting:
Extension 100 belongs to Joe, Extension 101 belong to Jane.
Joe dials Jane by dialing extension 101. This creates call log data that I'm pulling through the API.
The call has four legs. The first three are more or less understandable, but there is an odd anomaly on the final leg.
In the final leg, I'm reading the response from the API with leg.from.name and leg.from.extensionnumber. If the call was from Joe at ext 100, you'd expect to see leg.from.extensionnumber have 100 for a value and leg.from.name to have "Joe" for its value.
This is NOT what I'm seeing in the final leg of extension to extension calls. What I'm seeing on the final leg is leg.from.extensionnumber at 100, but I'm seeing leg.from.name showing "Jane". Jane does not own extension 100. I do not get this. At all. I want to understand what I'm missing about why this is, or if it shouldn't be this way, then I want to report it s a bug.