I did not know about that variable feature in the callerID function!
This is an example of how to do it with the "Set CallerID" module.
IVR option-1 -> Set CallerID "Picked 1"-> Queue1000
IVR option-2 -> Set CallerID "Picked 2"-> Queue2000
instructions:
Select "Set CallerID" in the PBX gui
Create a new "callerID" and give it a description "QueueCDR1"
Leave the pre-set callerID variables the same, but in "OTHER" variables put in
CDR(userfield)
then in the value box (=) put in what you want to be put in the CDR. For Example "picked 1"
Under "Destination' put the queue you expect callers passing through this module to go to
Submit your changes.
Now whatever method you use to get your callers to your queue, In my example users pass through an IVR first, so the IVR sends them to the "Set CallerID" module, sets the variable, then passes them onto the queue.
Picture
https://imgur.com/a/DQbx0wE