|
From: Pekka P. <pp...@gm...> - 2009-06-25 17:50:01
|
2009/6/21 Miguel Goncalves <mi...@ne...>:
...
> 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
|