where will be displayed or saved this header value? From: sushilbcn@xxxxxxxxx Date: Mon, 14 Jun 2010 23:26:15 +0530 To: pjsip at lists.pjsip.org Subject: Re: Extract a message body from Incoming Message Hi, You can easily extract any header value from incoming message by following code ... Put this code in pjsua_core.c:logging_on_rx_msg(pjsip_rx_data *rdata) pjsip_msg *uas_parsed_msg;pjsip_err_info_hdr *info;pj_str_t hname;pj_str_t sname; hname=pj_str("<Header>"); //Header you want to extract ex. CSeq. info=(pjsip_err_info_hdr*)pjsip_msg_find_hdr_by_name(uas_parsed_msg,&hname,NULL); if(info!=NULL) { char headerInfo[512]; pj_size_t size=512; memset(headerInfo,'\0',512); pjsip_hdr_print_on(info,headerInfo,size); // headerInfo will give header value you want extract } Thanks and RegardsSushil Kumar+91-9810697762 2010/6/14 peter hanshon <mido.1111 at hotmail.fr> Hello How Can I Extract a Particular Header from Incoming Message?? Thank you Hotmail : une messagerie performante et gratuite avec une s?curit? sign?e Microsoft Profitez-en _______________________________________________ Visit our blog: http://blog.pjsip.org pjsip mailing list pjsip at lists.pjsip.org http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org -- Thanks and Regards, Sushil Kumar _________________________________________________________________ Hotmail : une messagerie fiable avec une protection anti-spam performante https://signup.live.com/signup.aspx?id=60969 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.pjsip.org/pipermail/pjsip_lists.pjsip.org/attachments/20100615/fdf6e6d9/attachment-0001.html>