00001 /* 00002 * $Id$ 00003 * 00004 * Call-ID Header Name Parsing Macros 00005 * 00006 * Copyright (C) 2001-2003 FhG Fokus 00007 * 00008 * This file is part of SIP-router, a free SIP server. 00009 * 00010 * SIP-router is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your option) any later version 00014 * 00015 * SIP-router is distributed in the hope that it will be useful, 00016 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00017 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00018 * GNU General Public License for more details. 00019 * 00020 * You should have received a copy of the GNU General Public License 00021 * along with this program; if not, write to the Free Software 00022 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00023 * 00024 * History: 00025 * ---------- 00026 * 2003-02-28 scratchpad compatibility abandoned (jiri) 00027 * 2003-01-27 next baby-step to removing ZT - PRESERVE_ZT (jiri) 00028 */ 00029 00037 #ifndef CASE_CALL_H 00038 #define CASE_CALL_H 00039 00040 #include "../comp_defs.h" 00041 00042 #define ID_CASE \ 00043 switch(LOWER_DWORD(val)) { \ 00044 case __id1_: \ 00045 hdr->type = HDR_CALLID_T; \ 00046 hdr->name.len = 7; \ 00047 return (p + 4); \ 00048 \ 00049 case __id2_: \ 00050 hdr->type = HDR_CALLID_T; \ 00051 p += 4; \ 00052 goto dc_end; \ 00053 } 00054 00055 00056 #define call_CASE \ 00057 p += 4; \ 00058 val = READ(p); \ 00059 ID_CASE; \ 00060 goto other; 00061 00062 00063 #endif /* CASE_CALL_H */
1.7.1