SIPAddHeader for all SIP messages

my question is regarding to this. I need add some no-proprietary SIP headers, I was trying to perform this using the SIPAddHeader function but it just works for INVITE request. Exist any function that implement this for all the SIP message in a dialog (INVITE, ACK and BYE).

Thanks in advanced.