Record file not linked to CDR Report

Good day! Sorry for my english …

I can not understand why the conversation is not linked to the CDR report ((

I have .call file

Channel: Local/1@timeconditions Callerid: 79123456789 MaxRetries: 2 RetryTime: 10 WaitTime: 45 Context: FromTest Extension: 89123456789

in extension_custom:

[FromTest] exten => _89XXXXXXXXX,1,Macro(user-callerid,LIMIT,EXTERNAL,) exten => _89XXXXXXXXX,n,Gosub(sub-record-check,s,1(record,${EXTEN},always)) exten => _89XXXXXXXXX,n,Macro(dialout-trunk,1,${EXTEN},,off) exten => _89XXXXXXXXX,n,Gosub(sub-record-cancel,s,1()) exten => _89XXXXXXXXX,n,Macro(outisbisy,)

1@timeconditions redirect call to the ring group

exten => 7771,1,Macro(user-callerid,)
exten => 7771,n,Macro(blkvm-setifempty,)
exten => 7771,n,GotoIf($["${GOSUB_RETVAL}" = “TRUE”]?skipov)
exten => 7771,n,Macro(blkvm-set,reset)
exten => 7771,n,Set(__NODEST=)
exten => 7771,n(skipov),Set(RRNODEST=${NODEST})
exten => 7771,n(skipvmblk),Set(__NODEST=${EXTEN})
exten => 7771,n,GosubIf($[${DB_EXISTS(RINGGROUP/7771/changecid)} = 1 & “${DB(RINGGROUP/7771/changecid)}” != “default” & “${DB(RINGGROUP/7771/changecid)}” != “”]?sub-rgsetcid,s,1())
exten => 7771,n,Gosub(sub-record-check,s,1(rg,7771,always))
exten => 7771,n,Set(RingGroupMethod=ringall)
exten => 7771,n(DIALGRP),Macro(dial,20,${DIAL_OPTIONS},111)
exten => 7771,n,Gosub(sub-record-cancel,s,1())
exten => 7771,n,Set(RingGroupMethod=)
exten => 7771,n,GotoIf($[“foo${RRNODEST}” != “foo”]?nodest)
exten => 7771,n,Set(__NODEST=)
exten => 7771,n,Macro(blkvm-clr,)
exten => 7771,n,Goto(app-blackhole,hangup,1)
exten => 7771,n(nodest),Noop(SKIPPING DEST, CALL CAME FROM Q/RG: ${RRNODEST})

exten => h,1,Macro(hangupcall,)

Ring group 7771 calls to extension (number=111)

It works… but recorded file not showing in CDR report. Only ring group recordings shows in CDR report, but destination address for this records is 7771 (but I need it to be 89123456789).

CDR report shows two lines (callerid from call file to ring group and ring group to number of extension field in call file). First line have recording file link (group ring), but second line does not…(((

thanks for any help…