Call forwarding - diversion header and pai problem

I don’t recommend abandoning PJSIP, I recommend instead learning how to use it properly. You can’t use the predial hook macro for PJSIP trunks, but you can add custom headers to PJSIP trunks using the method described in this post: