Welcome!
It’s not appropriate to reference the channel var function EXTEN
in a custom destination, as it’s value will change depending on what destinations come before it. In this case, you probably want to use FROM_DID
in which case your target will change to
Target: ext-local,${FROM_DID:-3},1