mirror of https://github.com/sipwise/sems.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
572 B
28 lines
572 B
#ifndef __PARSE_100REL_H__
|
|
#define __PARSE_100REL_H__
|
|
|
|
#include <assert.h>
|
|
#include "cstring.h"
|
|
#include "sip_parser.h"
|
|
#include "parse_header.h"
|
|
|
|
struct sip_rack: public sip_parsed_hdr
|
|
{
|
|
unsigned rseq;
|
|
unsigned cseq;
|
|
cstring cseq_str;
|
|
int method;
|
|
cstring method_str;
|
|
};
|
|
|
|
bool parse_rseq(unsigned *rseq, const char *start, int len);
|
|
bool parse_rack(sip_rack *rack, const char *start, int len);
|
|
|
|
inline static sip_rack *get_rack(const sip_msg *msg)
|
|
{
|
|
assert(msg->rack);
|
|
return dynamic_cast<sip_rack *>(msg->rack->p);
|
|
}
|
|
|
|
#endif /* __PARSE_100REL_H__ */
|