thank you sir can you give me a code? From: sushilbcn@xxxxxxxxx Date: Tue, 15 Jun 2010 14:09:34 +0530 To: pjsip at lists.pjsip.org Subject: Re: Extract a message body from Incoming Message Hi, You can save the value in .txt file by using file handling or save value by using PJ_LOG method. Thanks and RegardsSushil Kumar+91-9810697762 On Tue, Jun 15, 2010 at 1:55 PM, peter hanshon <mido.1111 at hotmail.fr> wrote: Thank you for your response i can extract this message body and save this message value in a file (.txt)?? thank you 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 la protection anti-spam performante de Microsoft Inscrivez-vous _______________________________________________ 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/e4600bd1/attachment.html>