Empty CallerID field in CDR when VoiceMail called

Hello,

I’m using asterisk 1.6.0.1 and have noticed that when a call gets routed to voicemail, the CDR doesn’t log the callerid. The call itself gets logged in the CDR but callerid is missing. I’ve done a NoOp and the callerid number is actually there and is indeed logged to /var/log/asterisk/messages for these calls. It just doesn’t get into the Master.csv file. I’m figuring it’s something messed up in my configs, so here’s a couple relevant bits.

cdr.conf:
[csv]
usegmtime=no ; log date/time in GMT. Default is "no"
loguniqueid=yes ; log uniqueid. Default is "no"
loguserfield=yes ; log user field. Default is “no”

cdr_custom.conf:
[mappings]
Master.csv => “${CDR(clid)}”,"${CDR(src)}","${CDR(dst)}","${CDR(dcontext)}","${C
DR(channel)}","${CDR(dstchannel)}","${CDR(lastapp)}","${CDR(lastdata)}","${CDR(s
tart)}","${CDR(answer)}","${CDR(end)}","${CDR(duration)}","${CDR(billsec)}","${C
DR(disposition)}","${CDR(amaflags)}","${CDR(accountcode)}","${CDR(uniqueid)}","$
{CDR(userfield)}"