CDR not logging some missed calls

Hi everyone,

I am using Asterisk 1.8.20.1 on one of my installations with cdr_mysql to record my CDR registries.
Today I realized that some missed calls are not being logged to the database:

I had an issue with the connection between the queue agents and the asterisk server for a while.
Once the connection was reestablished the callcenter manager searched for the missed calls and no records where inserted in that time lapse.
I was able to see the missed calls at the log file /var/log/asterisk/messages so the calls where received but no agents joined the queue because of the connection issue.
In my dialplan I call the Queue function in this way:

same => n,Queue(QueueName,t,,,) same => n,Playback(AgentsBusy) same => n,Hangup()

So I don’t know if this missed calls where not inserted into the CDR because of the parameters sent to the Queue function or the way the Queue is configured:

[general]
autofill=yes
shared_lastcall=no
persistentmembers=yes
monitor-type=MixMonitor
updatecdr=yes

[SalesQueue](!)
musicclass=ulaw_moh
strategy=leastrecent
joinempty=inuse
leavewhenempty=unavailable
ringinuse=no
timeout=17
retry=0
maxlen=10
wrapuptime=30
eventwhencalled=yes

Any idea on what to change?