#### 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) 2013 Crocodile RCS Ltd 3 - * 4 - * This file is part of Kamailio, a free SIP server. 5 - * 6 - * Kamailio is free software; you can redistribute it and/or modify 7 - * it under the terms of the GNU General Public License as published by 8 - * the Free Software Foundation; either version 2 of the License, or 9 - * (at your option) any later version 10 - * 11 - * Kamailio is distributed in the hope that it will be useful, 12 - * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 - * GNU General Public License for more details. 15 - * 16 - * You should have received a copy of the GNU General Public License  17 - * along with this program; if not, write to the Free Software  18 - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 - * 20 - */ 21 -/*! 22 - * \file 23 - * \brief Kamailio core :: STUN support 24 - * STUN support callback, used by the STUN module 25 - * \ingroup core 26 - * Module: \ref core 27 - */ 28 - 29 -#include "events.h" 30 -#include "ip_addr.h" 31 -#include "stun.h" 32 - 33 -int stun_process_msg(char* buf, unsigned int len, struct receive_info* ri) 34 -{ 35 - int ret; 36 - stun_event_info_t sev; 37 - 38 - ret = 0; 39 - LM_DBG("STUN Message: [[>>>\n%.*s<<<]]\n", len, buf); 40 - if(likely(sr_event_enabled(SREV_STUN_IN))) { 41 - memset(&sev, 0, sizeof(stun_event_info_t)); 42 - sev.buf = buf; 43 - sev.len = len; 44 - sev.rcv = ri; 45 - ret = sr_event_exec(SREV_STUN_IN, (void *) &sev); 46 - } else { 47 - LM_DBG("no callback registering for handling STUN -" 48 - " dropping!\n"); 49 - } 50 - return ret; 51 -}

#### 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) 2013 Crocodile RCS Ltd 5 3  * 6 4  * This file is part of Kamailio, a free SIP server. ... ... @@ -20,6 +18,13 @@ 20 18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 21 19  * 22 20  */ 21 +/*! 22 + * \file 23 + * \brief Kamailio core :: STUN support 24 + * STUN support callback, used by the STUN module 25 + * \ingroup core 26 + * Module: \ref core 27 + */ 23 28   24 29  #include "events.h" 25 30  #include "ip_addr.h"

#### all: updated FSF address in GPL text

Anthony Messina authored on 04/07/2014 09:36:37 • Daniel-Constantin Mierla committed on 04/07/2014 09:37:36
Showing 1 changed files
 ... ... @@ -17,7 +17,7 @@ 17 17  * 18 18  * You should have received a copy of the GNU General Public License  19 19  * along with this program; if not, write to the Free Software  20 - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 21 21  * 22 22  */ 23 23 

#### core: removed STUN from core

- Added hooks so that STUN messages can be passed to a module
- Removed STUN configuration file parameters

Peter Dunkley authored on 29/03/2013 21:47:57
Showing 1 changed files
 1 1 new file mode 100644 ... ... @@ -0,0 +1,46 @@ 1 +/* 2 + * $Id$ 3 + * 4 + * Copyright (C) 2013 Crocodile RCS Ltd 5 + * 6 + * This file is part of Kamailio, a free SIP server. 7 + * 8 + * Kamailio is free software; you can redistribute it and/or modify 9 + * it under the terms of the GNU General Public License as published by 10 + * the Free Software Foundation; either version 2 of the License, or 11 + * (at your option) any later version 12 + * 13 + * Kamailio is distributed in the hope that it will be useful, 14 + * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 + * GNU General Public License for more details. 17 + * 18 + * You should have received a copy of the GNU General Public License  19 + * along with this program; if not, write to the Free Software  20 + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 + * 22 + */ 23 + 24 +#include "events.h" 25 +#include "ip_addr.h" 26 +#include "stun.h" 27 + 28 +int stun_process_msg(char* buf, unsigned int len, struct receive_info* ri) 29 +{ 30 + int ret; 31 + stun_event_info_t sev; 32 + 33 + ret = 0; 34 + LM_DBG("STUN Message: [[>>>\n%.*s<<<]]\n", len, buf); 35 + if(likely(sr_event_enabled(SREV_STUN_IN))) { 36 + memset(&sev, 0, sizeof(stun_event_info_t)); 37 + sev.buf = buf; 38 + sev.len = len; 39 + sev.rcv = ri; 40 + ret = sr_event_exec(SREV_STUN_IN, (void *) &sev); 41 + } else { 42 + LM_DBG("no callback registering for handling STUN -" 43 + " dropping!\n"); 44 + } 45 + return ret; 46 +}