Re: [Sofia-sip-devel] [NEWBIE] How to print a SIP message

2009-12-07 Thread Martin Drasar
If you want to iterate through each header field in the message, you should start from msg_chain_head(msg) and then proceed in order, e.g., for (next = msg_chain_head(msg); *next; next = (*next)-sh_next) { sip_header_t *sh = (*next); msg_hclass_t const *hc = sh-sh_class; if

Re: [Sofia-sip-devel] [NEWBIE] How to print a SIP message

2008-11-20 Thread Stefano Sabatini
On date Tuesday 2008-08-05 11:40:44 +0200, Stefano Sabatini phoned this: On Mon, Aug 4, 2008 at 8:07 PM, Pekka Pessi [EMAIL PROTECTED] wrote: 2008/7/30 Stefano Sabatini [EMAIL PROTECTED]: On 7/30/08, Stefano Sabatini [EMAIL PROTECTED] wrote: On Wed, Jul 30, 2008 at 10:31 AM, Stefano

Re: [Sofia-sip-devel] [NEWBIE] How to print a SIP message

2008-11-20 Thread Stefano Sabatini
On date Thursday 2008-11-20 10:49:21 +0100, Stefano Sabatini phoned this: On date Tuesday 2008-08-05 11:40:44 +0200, Stefano Sabatini phoned this: On Mon, Aug 4, 2008 at 8:07 PM, Pekka Pessi [EMAIL PROTECTED] wrote: [...] How can I get a msg_t from a sip_t? I can convert a msg_t - sip_t

Re: [Sofia-sip-devel] [NEWBIE] How to print a SIP message

2008-11-20 Thread Stefano Sabatini
On date Thursday 2008-11-20 10:49:21 +0100, Stefano Sabatini phoned this: [...] How can I get a msg_t from a sip_t? I can convert a msg_t - sip_t using sip_object, but how can I perform the inverse conversion? Again auto-replying to myself... Contemplating the sip module doc picture I

Re: [Sofia-sip-devel] [NEWBIE] How to print a SIP message

2008-11-20 Thread Andrew Rechenberg Lists
, 2008 7:38 AM To: sofia-sip-devel@lists.sourceforge.net Subject: Re: [Sofia-sip-devel] [NEWBIE] How to print a SIP message On date Thursday 2008-11-20 10:49:21 +0100, Stefano Sabatini phoned this: [...] How can I get a msg_t from a sip_t? I can convert a msg_t - sip_t using sip_object

Re: [Sofia-sip-devel] [NEWBIE] How to print a SIP message

2008-11-20 Thread Aleksander Morgado
-sip-devel] [NEWBIE] How to print a SIP message On date Thursday 2008-11-20 10:49:21 +0100, Stefano Sabatini phoned this: [...] How can I get a msg_t from a sip_t? I can convert a msg_t - sip_t using sip_object, but how can I perform the inverse conversion? Again auto-replying to myself

Re: [Sofia-sip-devel] [NEWBIE] How to print a SIP message

2008-08-05 Thread Stefano Sabatini
On Mon, Aug 4, 2008 at 8:07 PM, Pekka Pessi [EMAIL PROTECTED] wrote: 2008/7/30 Stefano Sabatini [EMAIL PROTECTED]: On 7/30/08, Stefano Sabatini [EMAIL PROTECTED] wrote: On Wed, Jul 30, 2008 at 10:31 AM, Stefano Sabatini [EMAIL PROTECTED] wrote: Hi all, can you say if there is a simple way to

Re: [Sofia-sip-devel] [NEWBIE] How to print a SIP message

2008-07-30 Thread Stefano Sabatini
On Wed, Jul 30, 2008 at 10:31 AM, Stefano Sabatini [EMAIL PROTECTED] wrote: Hi all, can you say if there is a simple way to convert a sip_t object to a char* and viceversa? For example I would like to print all the incoming SIP messages from the the event callback function. (Well, I'm

Re: [Sofia-sip-devel] [NEWBIE] How to print a SIP message

2008-07-30 Thread Stefano Sabatini
On 7/30/08, Stefano Sabatini [EMAIL PROTECTED] wrote: On Wed, Jul 30, 2008 at 10:31 AM, Stefano Sabatini [EMAIL PROTECTED] wrote: Hi all, can you say if there is a simple way to convert a sip_t object to a char* and viceversa? For example I would like to print all the incoming SIP messages