Does the CDR function actually work?

mudslide
Posts: 48
Member Since:
2006-08-24

Searched all over and found lots of places that provide guidance on setting the "userfield" in the CDR but while the CLI shows it is being set properly, the value never gets into the database. All I want to do is record the an agent ID into the CDR record when they log in, which they do by calling extension 888:

exten => 888,1,NoOp(${CALLERIDNUM})
exten => 888,2,AgentCallbackLogin(||${CALLERIDNUM}@ext-local)
exten => 888,3,Set(CDR(userfield)=${AGENTBYCALLERID_${CALLERIDNUM}})
exten => 888,4,Hangup()

I can dial 888 and log in [as agent 101], and the CLI shows:

blah blah blah
Set (CDR(userfield)="101")
property set properly!
blah blah blah

but when I look in the CDR, the field "userfield" is still blank.

Any idea what I am missing?