Asterisk agi command


is there a way to force agi wirte to CDR some info on call being answered , now it’s wring only after hangup ? is there a way to do it on some sort of “pick up” ??

Thx in advance

I think - there arent. When you make dial from AGI - you cant do nothing until call finished.
But something could be done from AMI.
I easily could imagine how to write raw in MySQL based CDR but have no idea how to do with “normal” CDR.