Custom functions and how to run them

I presume AddSipHeadet is a typo, but if spelled correctly it does work from the predial hook macro. If you’re using pjsip trunks, then you can’t add headers with this macro, and instead must use the method described here: