How to record calls in two channels

How can I have my call record file in two channels?
So that the caller and the responder are each in one channel