Trying to populate a custom CDR field in the “gosub” of a queue connect. See the code below. The userfield gets populated in the database but “operatorid” does not. What am I doing wrong? I’ve double checked the spelling of my custom field between the database and the field in the code.
[code][queues]
exten =>sales,1,Verbose(2,${CALLERID(all)} entering the sales queue)
same =>n,Queue(sales,subQueueConnected)
same =>n,Hangup()
[subQueueConnected]
exten =>s,1,NoOp()
same =>n,Set(CDR(operatorid)=test)
same =>n,Set(CDR(userfield)=mitch)
same =>n,Return()
[/code]
Here is my cdr conf:
[code][adaptive_connection]
connection=asterisk
table=asterisk_cdr
[/code]