CDR problem with dst

Hi all, i have the problem with my dialplan.
When there os the call in the CDR i dont have the value dst but i have the contest.
i use ASTERISK 16.27.0

this is the dial plan

[tohost01]
exten => _800X.,1,NoOp(Check whitelist num ${CALLERID(num)})
 same => n,Set(RESULT=${ODBC_CHECK_WHITELIST(${CALLERID(num)})})
 same => n,GotoIf($["${RESULT}"="OK"]?allow800,1:blocked800,1)

exten => allow800,1,NoOp(Number WHITE 800 AF1)
 same => n,Goto(tohost01AF1800,s,1)

exten => blocked800,1,NoOp(Numer BLACK)
 same => n,Goto(black-bloc800,s,1)
 
exten => _700X.,1,NoOp(Check whitelist num ${CALLERID(num)})
 same => n,Set(RESULT=${ODBC_CHECK_WHITELIST(${CALLERID(num)})})
 same => n,GotoIf($["${RESULT}"="OK"]?allow700,1:blocked700,1)

exten => allow700,1,NoOp(Number WHITE)
 same => n,Goto(tohost01AF1700,s,1)

exten => blocked700,1,NoOp(Numer BLACK)
 same => n,Goto(black-bloc700,s,1)


[tohost01AF1800]
exten => s,1,NoOp(Inoltro chiamata WHITE 800 da ${CALLERID(num)} verso ${DST_ORIG})
 same => n,Wait(0)
 same => n,Playback(/var/lib/asterisk/sounds/it/route/${RAND(1,11)}_01)
 same => n,Set(RANDCHOICE=${RAND(1,3)})
 same => n,Goto(choice${RANDCHOICE},${EXTEN},1)

;CHOICE101;
exten => choice1,1,NoOp(Routing CHOICE101 AF1 - ${DST_ORIG})
; same => n,Wait(1)
 same => n,Playback(/var/lib/asterisk/sounds/it/digits_fast/${RAND(1,90)})
; same => n,Wait(1)
 same => n,HangUp()
 same => n,HangUp()
 same => n,HangUp()
 
;CHOICE102;
exten => choice2,1,NoOp(Routing CHOICE102 AF1 - ${DST_ORIG})
; same => n,Wait(1)
 same => n,Playback(/var/lib/asterisk/sounds/it/digits_fast/${RAND(1,90)})
; same => n,Wait(1)
 same => n,Playback(/var/lib/asterisk/sounds/it/digits_fast/${RAND(1,90)})
; same => n,Wait(1)
 same => n,HangUp()
 same => n,HangUp()
 same => n,HangUp()

;CHOICE103;
exten => choice3,1,NoOp(Routing CHOICE103 AF1 - ${DST_ORIG})
; same => n,Wait(1)
 same => n,Playback(/var/lib/asterisk/sounds/it/digits_fast/${RAND(1,90)})
; same => n,Wait(1)
 same => n,Playback(/var/lib/asterisk/sounds/it/digits_fast/${RAND(1,90)})
; same => n,Wait(1)
 same => n,Playback(/var/lib/asterisk/sounds/it/digits_fast/${RAND(1,90)})
; same => n,Wait(1)
 same => n,HangUp()
 same => n,HangUp()
 same => n,HangUp()

on CDR i have the dst is choice2 or choice3 ….

Hi!

All of the CDR field names are read-only, except for ‘accountcode’, ‘userfield’, and ‘amaflags’.

and you can use custom field

Scuse me i update the file.
I wrong copy and paste.