2009/6/21 Miguel Goncalves <mig...@netvisao.pt>:
...
>            char *header;
>            header = sip_header_as_string( cli->home, (void*)
> sip->sip_content_type);
>
>            printf("\nCONTENT TYPE -> %s\n", header);
>        }
>
> but i just keep getting :
> INVITE : 200 OK
>
> CONTENT TYPE -> (null)
>
> can anyone help please? Where should i get the content_type and how?

That should work, it seems fine..

You could also print the value of sip->sip_content_type pointer, if
there is a syntax error that is hidden somewhere.

There was a bug in sip_header_as_string() before 1.12.9, I think, so
make sure you have recent enough version.

-- 
Pekka.Pessi mail at nokia.com

------------------------------------------------------------------------------
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to