The link i posted should answer your question.  Please read through it.

On Sep 15, 2017, at 5:01 PM, Joseph Waite <joelists@tm.net.uk> wrote:

I need a template for each leg. Would naming the templates aleg & bleg do what I need like the example of naming the template as an account code?

On 15 Sep 2017, at 21:50, Michael Jerris <mike@jerris.com> wrote:

https://freeswitch.org/confluence/display/FREESWITCH/mod_cdr_csv#mod_cdr_csv-accountcode

On Sep 15, 2017, at 4:08 PM, Joseph Waite <joelists@tm.net.uk> wrote:

Hi Guys

I have checked online but can’t seem to find anything.

I am wondering if it is possible to set a different template for a leg and bleg cdr’s?
If so how would I go about this?