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.
kamailio/parser/case_sip.h

39 lines
886 B

/*! \file
* \brief Parser :: Handle case for headers
*
* \ingroup parser
*/
#ifndef CASE_SIP_H
#define CASE_SIP_H
#define atch_CASE \
switch(LOWER_DWORD(val)) { \
case _atch_: \
DBG("end of SIP-If-Match\n"); \
hdr->type = HDR_SIPIFMATCH_T; \
p += 4; \
goto dc_end; \
}
#define ifm_CASE \
switch(LOWER_DWORD(val)) { \
case _ifm_: \
DBG("middle of SIP-If-Match: yet=0x%04x\n",LOWER_DWORD(val)); \
p += 4; \
val = READ(p); \
atch_CASE; \
goto other; \
}
#define sip_CASE \
DBG("beginning of SIP-If-Match: yet=0x%04x\n",LOWER_DWORD(val)); \
p += 4; \
val = READ(p); \
ifm_CASE; \
goto other;
#endif /* CASE_SIP_H */