Recording 1/2 of a conversation

I am an application developer who has to lear Aterisk in a hurry! We have an application where Caller A calls our server and then enters the PSTN number of the person he wishes to contact, Caller B. The asterisk program then has to make a call to caller B and has to record the conversation - but ONLY record what caller B says - not Caller A. Any ideas on how to do this?


Asterisk by default records an -in and an -out file with each side of the conversation in one of the files as long as you don’t record(Monitor) with the ‘m’ flag.

So it should be easy for you just to grab the -in or the -out file and delete the other one and there you go.