Fields in CDR table

Hi,

Currently I’m developing a desktop application to make outbound calls. The app is used by 5-6 users. I know that each time a user finished making a call, asterisk would fill the CDR table, containing the call details and recording path. In the table, I noticed there are fields userfield, userfield2, userfield3, userfield4, data1, data2, and they are always empty.

Is it possible to pass some data to those fields when originating a call? Would be useful to link my app’s data to the recording.

I’m developing using C#.NET, connecting to asterisk 11.3 server via TCP.

Thanks.

You can set your own extra variables by using Set(CDR(name)=value) but I guess according to the documenation you need to use channel function now