How to distinguish between video calls from voice calls?

How to distinguish between video calls from voice calls in asterisk CDR records?

Your dialplan would need to set the user field.

There are еxtensions on asterisk that can make a video call or audio call.
Can in the SDR records to determine when a video call and when the audio call?

Your dialplan will need to set the userfield in the CDR. No automatically maintained field contains this information.

Although call event logging is the standard for non-trivial cases, I don’t know if that provides codec information. If it does, it could only be in the “extra” field, or in a dialplan provided userfield.

Set the userfield in the CDR. Ok i understand.
But which variable contains information about the video call?
May be set?
CDR(userfield2)=${CODEC-IN}
CDR(userfield3)=${CODEC-OUT}