$Revision$
$Date$
CSeq Header Field Parser
Purpose of this parser is to parse body of CSeq header field. The
parser can be found in file parse_cseq.c under
parser subdirectory.
Main function is parse_cseq but there is no need
to call the function explicitly. Every time the parser finds a CSeq
header field, this function will be called automatically. Result of the
parser is cseq_body structure. Pointer to the
structure will be stored in parsed field of
hdr_field structure. Since the pointer is
void*, there is a convenience macro
get_cseq in file parse_cseq.h
that will do the necessary type-casting and will return pointer to
cseq_body structure.
The parser will parse CSeq body according to the grammar defined in
RFC3261 and store result in
cseq_body structure.
The parser gets called automatically from function
get_hdr_field in file
msg_parser.c. The function first creates and
initializes an instance of cseq_body
structure, then calls parse_cseq function with the
structure as a parameter and if everything went OK, puts the pointer to
the structure in parsed field of
hdr_field structure representing the parsed
CSeq header field.
The newly created structure will be freed when the message is being
destroyed, see function clean_hdr_field in file
hf.c for more details.
See for description of the
cseq_body structure.