hi all,
I’m wanting to have the start and end timestamps for each call logged in our CDR database. The reason, in case you are wondering is so that we can determine (easily) a time between calls for our agents (to see who is jacking around).
I have tried a few variations on this (beginning of macro deleted for length)
exten => s,n,Dial(${ARG1},${ARG3},L(99999999:99999999:30000))
exten => s,n,Voicemail(u${ARG2})
exten => s,n,Hangup
exten => h,1,Set(CDR(userfield)=${TIMESTAMP})
and
exten => s,n,Dial(${ARG1},${ARG3},L(99999999:99999999:30000))
exten => s,n,Voicemail(u${ARG2})
exten => s,n,Set(CDR(userfield)=${TIMESTAMP})
exten => s,n,Hangup
I know that I can run a query with cron to add the duration field to the calldate field, but it would be nice to do this within asterisk if possible.
Any takers?