Update asteriskcdrdb/cdr on callin

Hi

Does anyone know to insert row into cdr as soon as pbx receives call??

In my system the cdr table first update on hangup. But I would like customer to automatically popup upon calling, which is why i need the fast update.

Use Asterisk manager interface and AMI events for screen pop application.