In this case I would do with a small block of dialplan:
[from-internal-custom]
exten => _1NXXNXXXXXX.,1,NoOp(Entering user defined context from-internal-custom in extensions_custom.conf)
exten => _1NXXNXXXXXX.,n,GoTo(outbound-allroutes,${EXTEN:0:11},1)
exten => _NXXNXXXXXX.,1,NoOp(Entering user defined context from-internal-custom in extensions_custom.conf)
exten => _NXXNXXXXXX.,n,GoTo(outbound-allroutes,${EXTEN:0:10},1)