How do messages tie back to call logs? I need to get the message information for all call legs/logs that resulted in a voicemail, and cannot find the relationship between the two objects. Currently, the only IDs that I see in the detailed message data are the messageId and attachementId. The call logs have a sessionId, but I do not know what this ties to, and the call legs only have a callLogId, and a LegId.
Any help in identifying the relationship would be greatly appreciated.