[macro-dialout-trunk-predial-hook]
;Remove spaces or dashes or + from outbound number when calling
exten => s,1,Set(OUTNUM=${FILTER(0123456789*#,${OUTNUM})})
exten => s,n,MacroExit()
After saving it in your extensions_custom.conf file, run the following command from the linux console:
Just go into your trunk and add a dial rule that strips any plus No need for custom configs since you want this on a trunk level not global thing as some carriers require + for international calling.