Description: Incorrect or inactive user details are posted in the MISSED call log activity in the activity history, even when no user data was posted in the payload (because of missed call).
Explanation: The user details are fetched from the agentID parameter. Since no agent picked the call and it was a missed call, there will be no data present in the agentID parameter. In such cases, the provider should pass a default value in the agentID attribute, or not pass the agentID attribute in the payload at all.

Using the AgentId, but not passing a value for it, is incorrect.
In case of outbound calls, even if no agentID parameter is passed, source number is used to fetch the users details and it must contain a default/valid value to avoid this issues of incorrect user details getting picked.

Dev ticket for reference: #1006627 Random user picked in call log | PFL 53450
