Asterisk & CNAM

Researching how to make asterisk perform a DIP for CNAM from a CNAM provider for incoming calls where CNAM is not provided. It sounds like we can send out an invite but the CNAM vendor says we would get back the CNAM info via a 387 message/response. Not sure how set up asterisk to accept and process a 387 response. Anyone have any ideas?