Are you referring to an incoming message?
If so, then take a look at section 4.9 Setting and retrieve SIP message header field as a way to access that information, not only for INVITE, but a lot of other SIP messages as well.
www.dialogic.com/.../globalcall_for_ip_hmp_v12.pdf
Jeff