The pjsua on_incoming_call callback is passed a pjsip_rx_data*.? rdata->msg_info.msg is a pjsip_msg*, and you can loop through the headers with a loop like this: ??? pjsip_hdr *hdr ; ??? for (hdr = m->hdr.next ; hdr != &m->hdr ; hdr = hdr->next) { ??? } -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20120529/65fab137/attachment.html>