Hello Andcza,
You have to configure it in extensions_custom.conf under [macro-dialout-trunk-predial-hook] context. There you can add the diversion header using REDIRECTING function.
https://wiki.asterisk.org/wiki/display/AST/Function_REDIRECTING
Best regards,