#### core, lib, modules: restructured source code tree

- new folder src/ to hold the source code for main project applications
- main.c is in src/
- all core files are subfolder are in src/core/
- modules are in src/modules/
- libs are in src/lib/
- application Makefiles are in src/
- application binary is built in src/ (src/kamailio)

Daniel-Constantin Mierla authored on 07/12/2016 11:03:51
Showing 1 changed files
 1 1 deleted file mode 100644 ... ... @@ -1,51 +0,0 @@ 1 -/* 2 - * Copyright (C) 2008 iptelorg GmbH 3 - * 4 - * Permission to use, copy, modify, and distribute this software for any 5 - * purpose with or without fee is hereby granted, provided that the above 6 - * copyright notice and this permission notice appear in all copies. 7 - * 8 - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 9 - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 10 - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 11 - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 12 - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 13 - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14 - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15 - */ 16 - 17 -/*! 18 - * \file 19 - * \brief Kamailio core :: ser/kamailio/openser compatibility macros & vars. 20 - * \ingroup core 21 - * Module: \ref core 22 - */ 23 - 24 -/* 25 - * History: 26 - * -------- 27 - * 2008-11-29 initial version (andrei) 28 - */ 29 - 30 - 31 -#include "sr_compat.h" 32 - 33 -/** 34 - * compatibility modes: 35 - * - SR_COMPAT_SER - strict compatibiliy with ser ($xy is avp) 36 - * - SR_COMPAT_KAMAILIO - strict compatibiliy with kamailio ($xy is pv) 37 - * - SR_COMPAT_MAX - max compatibiliy ($xy tried as pv, if not found, is avp) 38 - */ 39 -#ifdef SR_SER 40 -#define SR_DEFAULT_COMPAT SR_COMPAT_SER 41 -#elif defined SR_KAMAILIO || defined SR_OPENSER 42 -#define SR_DEFAULT_COMPAT SR_COMPAT_MAX 43 -#elif defined SR_ALL || defined SR_MAX_COMPAT 44 -#define SR_DEFAULT_COMPAT SR_COMPAT_MAX 45 -#else 46 -/* default */ 47 -#define SR_DEFAULT_COMPAT SR_COMPAT_MAX 48 -#endif 49 - 50 -int sr_compat=SR_DEFAULT_COMPAT; 51 -int sr_cfg_compat=SR_DEFAULT_COMPAT; #### Core Removed history, svn$id$and doxygen udpates on the .c files Olle E. Johansson authored on 03/01/2015 09:53:17 Showing 1 changed files  ... ... @@ -1,6 +1,4 @@ 1 1 /* 2 - *$Id$3 - * 4 2 * Copyright (C) 2008 iptelorg GmbH 5 3 * 6 4 * Permission to use, copy, modify, and distribute this software for any ... ... @@ -15,9 +13,10 @@ 15 13 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16 14 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17 15 */ 16 + 18 17 /*! 19 18 * \file 20 - * \brief SIP-router core :: ser/kamailio/openser compatibility macros & vars. 19 + * \brief Kamailio core :: ser/kamailio/openser compatibility macros & vars. 21 20 * \ingroup core 22 21 * Module: \ref core 23 22 */ #### core: default compatibility set to SR_COMPAT_MAX - means that$xy is tried first as pv and if not, then is considered avp
(was default compat mode for default flavour in the past)
- you can still use:
- #!KAMAILIO in config to force SR_COMPAT_KAMAILIO (i.e., $xy must be a pv, otherwise is error) - #!SER is config to force SR_COMPAT_SER (i.e.,$xy is avp/attr)

Daniel-Constantin Mierla authored on 24/01/2013 10:45:31
Showing 1 changed files