Hello
I sent a message sip-info with a message body that contains data at another host , so how can i retrieve or "sniffing" this message body of the destination host.
Thank you
Votre messagerie et bien plus où que vous soyez. Passez à Windows Live Hotmail, c'est gratuit !
https://signup.live.com/signup.aspx?id=60969
assuming you correctly installed the callback (i.e. SIPINFOReceived) in your app
you could do something like
hope this helps
Cheers
void SIPINFOReceived(pjsip_rx_data *messageData)
{
messageData->msg_info.msg->body
}
On Jun 14, 2010, at 4:48 AM, peter hanshon wrote:
Hello
I sent a message sip-info with a message body that contains data at another host , so how can i retrieve or "sniffing" this message body of the destination host.
Thank you
Votre messagerie et bien plus où que vous soyez. Passez à Windows Live Hotmail, c'est gratuit ! Inscrivez-vous _______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
Alejandro Orellana
Savant Systems, LLC
770 Main Street
Osterville, Ma. 02655
(508) 683-2547 (W)
(508) 683-2647 (F)
Alejandro.Orellana@savantav.com
Statement of Confidentiality
The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. The information may also be legally privileged. This transmission is sent in trust, and the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or at 508.683-2500 and delete this message and its attachments, if any.
Thank you for your response
Can you explain more because i want to retrievve the message body from the destination host after i save this message body in file (.txt)
Thank you
From: Alejandro.Orellana@savantav.com
Date: Mon, 14 Jun 2010 08:57:08 -0400
To: pjsip@lists.pjsip.org
Subject: Re: [pjsip] Find message body
assuming you correctly installed the callback (i.e. SIPINFOReceived) in your appyou could do something like
hope this helps
Cheers
void SIPINFOReceived(pjsip_rx_data *messageData){
messageData->msg_info.msg->body}On Jun 14, 2010, at 4:48 AM, peter hanshon wrote:
Hello
I sent a message sip-info with a message body that contains data at another host , so how can i retrieve or "sniffing" this message body of the destination host.
Thank you
Votre messagerie et bien plus où que vous soyez. Passez à Windows Live Hotmail, c'est gratuit ! Inscrivez-vous _______________________________________________
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
------Alejandro OrellanaSavant Systems, LLC
770 Main Street
Osterville, Ma. 02655
(508) 683-2547 (W)
(508) 683-2647 (F)
Alejandro.Orellana@savantav.com
Statement of Confidentiality
The contents of this e-mail message and any attachments are confidential and are intended solely for the addressee. The information may also be legally privileged. This transmission is sent in trust, and the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or at 508.683-2500 and delete this message and its attachments, if any.
Votre messagerie et bien plus où que vous soyez. Passez à Windows Live Hotmail, c'est gratuit !
https://signup.live.com/signup.aspx?id=60969
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
https://signup.live.com/signup.aspx?id=60969
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 Regards
Sushil Kumar
+91-9810697762
2010/6/14 peter hanshon mido.1111@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 https://signup.live.com/signup.aspx?id=60969
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
Thanks and Regards,
Sushil Kumar
Thank you for your response
i can extract this message body and save this message value in a file (.txt)??
thank you
From: sushilbcn@gmail.com
Date: Mon, 14 Jun 2010 23:26:15 +0530
To: pjsip@lists.pjsip.org
Subject: Re: [pjsip] 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@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
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
https://signup.live.com/signup.aspx?id=60969
where will be displayed or saved this header value?
From: sushilbcn@gmail.com
Date: Mon, 14 Jun 2010 23:26:15 +0530
To: pjsip@lists.pjsip.org
Subject: Re: [pjsip] 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@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
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
Hi,
You can save the value in .txt file by using file handling or save value by
using PJ_LOG method.
Thanks and Regards
Sushil Kumar
+91-9810697762
On Tue, Jun 15, 2010 at 1:55 PM, peter hanshon mido.1111@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@gmail.com
Date: Mon, 14 Jun 2010 23:26:15 +0530
To: pjsip@lists.pjsip.org
Subject: Re: [pjsip] 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 Regards
Sushil Kumar
+91-9810697762
2010/6/14 peter hanshon mido.1111@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 https://signup.live.com/signup.aspx?id=60969
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@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 https://signup.live.com/signup.aspx?id=60969
Visit our blog: http://blog.pjsip.org
pjsip mailing list
pjsip@lists.pjsip.org
http://lists.pjsip.org/mailman/listinfo/pjsip_lists.pjsip.org
--
Thanks and Regards,
Sushil Kumar
thank you sir
can you give me a code?
From: sushilbcn@gmail.com
Date: Tue, 15 Jun 2010 14:09:34 +0530
To: pjsip@lists.pjsip.org
Subject: Re: [pjsip] 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@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@gmail.com
Date: Mon, 14 Jun 2010 23:26:15 +0530
To: pjsip@lists.pjsip.org
Subject: Re: [pjsip] 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@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
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
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
I need your help sir
From: mido.1111@hotmail.fr
To: pjsip@lists.pjsip.org
Date: Tue, 15 Jun 2010 09:42:29 +0100
Subject: Re: [pjsip] Extract a message body from Incoming Message
thank you sir
can you give me a code?
From: sushilbcn@gmail.com
Date: Tue, 15 Jun 2010 14:09:34 +0530
To: pjsip@lists.pjsip.org
Subject: Re: [pjsip] 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@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@gmail.com
Date: Mon, 14 Jun 2010 23:26:15 +0530
To: pjsip@lists.pjsip.org
Subject: Re: [pjsip] 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@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
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
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 Inscrivez-vous
Hotmail : une messagerie fiable avec la protection anti-spam performante de Microsoft
https://signup.live.com/signup.aspx?id=60969