I got the solution , as david mentioned before you need to setup the hangup handler in the called channel and per Dial application docs
https://docs.asterisk.org/Asterisk_16_Documentation/API_Documentation/Dialplan_Applications/Dial/
you will use ‘b’ option to set hangup handler on these channels
https://docs.asterisk.org/Configuration/Miscellaneous/Hangup-Cause/?h=hangup+cause