Hi, dedulka!
You are not closely watched in the archive maillists!
See my variant:
Piece from regexroute.conf
[extra]
call.cdr=120,operation
...
[call.cdr]
initialize=echo Start call ${chan} '${caller}' -> '${called}' coming from ${address} with context of ${context}
finalize=echo Finished call ${chan} '${caller}' -> '${called}' duration ${duration}'s with context of ${context}
update=if ${status}^answered$=if ${direction}^incoming$=goto r-answer
...
[r-answer]
.*=echo Answer call ${chan}, '${caller}' -> '${called}', duration of ring ${duration}'s, with context of ${context}
.*=;rec=wave/record//tmp/rec-${caller}-${called}-${billid}
.*=enqueue chan.masquerade;message=chan.record;id=${chan};call=${rec}-A.au;peer=${rec}-B.au
Good luck !