sip 1.12.11devel
|
This part of the Sofia documentation describes the internal working of SIP parser.
It documents the internal functions and macros used when a new parser is added.
The sip module contains interface to the SIP headers and message objects. The interface is abstracted using objects known as header classes and message classes.
The message class defines how a message is handled: parsed and encoded. It contains a parser table with references to header classes. It also contains function pointers used by the parser to handle message body and other details that vary between protocols.
A header class defines how a single header is parsed. Each header has its own header class. There are also header classes for message elements that are not really headers, like request and status line, separator between headers and message body (which is also known as payload). There is also a header classes for unknown headers and headers that contained parsing errors.
Sofia SIP Parser can be extended easily, either by application or by internally extending the sofia-sip library itself.
Create a header template for your header just like sip_rfc2543.h.in, e.g, sip_example.h.in: