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

2010-01-06 Thread Martin Drasar
Martin Drasar napsal(a): >> 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 con

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 Aleksander Morgado
From: Stefano Sabatini [mailto:[EMAIL PROTECTED] >> Sent: Thursday, November 20, 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 S

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

2008-11-20 Thread Andrew Rechenberg Lists
hursday, November 20, 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? >

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 f

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 -> s

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,

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

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

2008-08-04 Thread Tan Miaoqing
Hi, If the purpose of printing all incoming SIP messages is to debug the call flow, maybe it's worth mentioning that you can set environment variable SOFIA_DEBUG to let Sofia-SIP stack directly print all incoming and outgoing SIP messages. See these two links for more details: http://wiki.freeswi

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

2008-08-04 Thread Pekka Pessi
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 convert a sip_t object to a char* >>> and viceversa?

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 incomin

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,

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

2008-07-30 Thread Stefano Sabatini
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 diving just now into docs/code, nonetheless a little help would make life a little easi