sip-router
11 years agodoc: dump_cfg_defs.pl: support for docbook output
Andrei Pelinescu-Onciul [Wed, 17 Feb 2010 21:27:01 +0000 (22:27 +0100)]
doc: dump_cfg_defs.pl: support for docbook output

Added support for generating docbook output (by using the
--docbook option).

11 years agodoc: rpc_list: generated docbook rpc lists
Andrei Pelinescu-Onciul [Wed, 17 Feb 2010 16:38:05 +0000 (17:38 +0100)]
doc: rpc_list: generated docbook rpc lists

11 years agodoc: rpc_list: docbook output directory
Andrei Pelinescu-Onciul [Wed, 17 Feb 2010 16:24:46 +0000 (17:24 +0100)]
doc: rpc_list: docbook output directory

Added directory for docbook output, complete with standard doc
makefile (for generating html, pdf, txt a.s.o from docbook
sources).

11 years agodoc: rpc_list: support for generating docbook output
Andrei Pelinescu-Onciul [Wed, 17 Feb 2010 16:21:18 +0000 (17:21 +0100)]
doc: rpc_list: support for generating docbook output

- make docbook will generate the rpc lists in docbook format
- make all will generate both txt and docbook
- generate docbook index file (rpc_list.xml)
- configurable output directories (txt_output_dir and
  docbook_output_dir)

11 years agodoc: dump_rpcs.pl: support for docbook output
Andrei Pelinescu-Onciul [Wed, 17 Feb 2010 16:19:11 +0000 (17:19 +0100)]
doc: dump_rpcs.pl: support for docbook output

Added support for generating docbook output (by using the
 --docbook option).

11 years agodoc: select doc generator: more fixes & core selects support
Andrei Pelinescu-Onciul [Tue, 26 Jan 2010 18:34:53 +0000 (19:34 +0100)]
doc: select doc generator: more fixes & core selects support

- support core select file: file with core selects that
  might be referenced from the current file. To use it the new
  "-c" or "--core" command line parameters must be used, e.g.:
  dump_selects.pl -f modules_s/textops/textops.c -c select_core.c

- fixed handling of the NESTED and NESTED| CONSUME_* combinations

11 years agodoc: select doc generator fix flags processing
Andrei Pelinescu-Onciul [Tue, 12 Jan 2010 19:48:09 +0000 (20:48 +0100)]
doc: select doc generator fix flags processing

- fixes based on Jan's select decoding explanations (included in
  the code as a comment), select.c/resolve_select() and Libor's ser_objdump
  (http://git.sip-router.org/cgi-bin/gitweb.cgi?p=ser;a=blob;f=ser_objdump/select.c;hb=HEAD)
- '{}' are now used to mark optional parameters

12 years agodoc: generated rpc lists
Andrei Pelinescu-Onciul [Mon, 19 Oct 2009 16:43:03 +0000 (18:43 +0200)]
doc: generated rpc lists

12 years agodoc: generated cfg vars lists
Andrei Pelinescu-Onciul [Mon, 19 Oct 2009 16:41:34 +0000 (18:41 +0200)]
doc: generated cfg vars lists

12 years agodoc: added makefiles for auto-gen. rpc and cfg vars lists
Andrei Pelinescu-Onciul [Mon, 19 Oct 2009 16:36:52 +0000 (18:36 +0200)]
doc: added makefiles for auto-gen. rpc and cfg vars lists

12 years agodoc: script to generate select lists from C code
Andrei Pelinescu-Onciul [Mon, 19 Oct 2009 16:30:45 +0000 (18:30 +0200)]
doc: script to generate select lists from C code

Added a perl script that tries to generate the list of selects
defined in a C file.
The script works by looking for the first select_row_t array with
an initializer in the .c file. It then tries to generate the list
of all possible selects (but it still has some bugs, especially on
 matching params to a select part).

Note: there is no documentation generated besides the list
(the select format is not auto-documented).

12 years agodoc: script to generate rpc lists from C code
Andrei Pelinescu-Onciul [Mon, 19 Oct 2009 16:22:55 +0000 (18:22 +0200)]
doc: script to generate rpc lists from C code

Added a perl script that generates the list of RPCs defined in a C
file. The list contains also the RPC documentation.
The script works by looking for the first rpc_export_t array in
the file that has an initializer and using it to get all the rpc
definitions. Then it looks for all the corresponding *doc
variables (char* arrays holding the help message and the
signature) and extracts the doc string from their initializer.

E.g.:
dump_rpcs.pl --file ../../../core_cmd.c
...
37. dst_blacklist.view
        dst blacklist dump in human-readable format.
...

12 years agodoc: script to generate cfg var lists from C code
Andrei Pelinescu-Onciul [Mon, 19 Oct 2009 16:05:25 +0000 (18:05 +0200)]
doc: script to generate cfg var lists from C code

Added a perl script that generates the list of config variables
 defined in a C file.
The script uses gcc to generate a syntax tree structure for an
entire file and then parses and uses the tree to locate
the config vars. definition, initialization and default values.

E.g.: dump_cfg_defs.pl --file ../../../cfg_core.c --grp core
=> ...
31. core.udp_mtu
        fallback to a congestion controlled protocol if send size
        exceeds udp_mtu.
        Default: 0.
        Range: 0 - 65535.
        Type: integer.
...

The config group (--grp) needs to be specified only if it cannot
be auto-detected (under normal circumstances it is auto-detected
from the type name of the variable holding the default values,
e.g.  cfg_group_core).
If the default values are set in the same .c file, they will be
added to the list.

Note: the script requires a patched version of the
GCC:TranslationUnit perl package. To get the patch use:
dump_cfg_defs.pl --patch

12 years agoctl: missing ifdef (minor)
Andrei Pelinescu-Onciul [Mon, 19 Oct 2009 16:01:51 +0000 (18:01 +0200)]
ctl: missing ifdef (minor)

- missing ifdef USE_FIFO prevented compilation without fifo
  support.

12 years agocore: fix fixup_spve_* reuse after free
Andrei Pelinescu-Onciul [Thu, 15 Oct 2009 15:58:05 +0000 (17:58 +0200)]
core: fix fixup_spve_* reuse after free

- fixup_spve_* functions have an optimization that checks if a
a parsed format is a simple string and if this happens it frees
the fixed param an re-does the fixup with type==string.
However when freeing the result of the first fixup the original
string was freed too and the next string fixup would be
called with freed memory instead of a valid string.
(this bug was hidden before the memleak fix in af8f3e1536d)

12 years agoRemove obsolete gen_ha1.
Jan Janak [Thu, 15 Oct 2009 10:19:29 +0000 (12:19 +0200)]
Remove obsolete gen_ha1.

The tool gen_ha1 is not needed anymore. It was used by an old version
of the script serctl. The same functionality can be achieved by other
means either on the command line or in MySQL with server-side commands.

12 years agomodules_k/permissions: Increased version number of 'trusted' table
Juha Heinanen [Thu, 15 Oct 2009 09:47:01 +0000 (12:47 +0300)]
modules_k/permissions: Increased version number of 'trusted' table

- Increased version number of 'trusted' table also in code so that it
  matches the one in db.

12 years agolib/srdb1/schema/trusted.xml: forgot to increase version number
Juha Heinanen [Wed, 14 Oct 2009 12:39:15 +0000 (15:39 +0300)]
lib/srdb1/schema/trusted.xml: forgot to increase version number

- Forgot to increase version number of trusted table after increasing
  size of tag field.

12 years agolib/srdb1/schema/trusted.xml: increased tag length from 32 to 64 chars
Juha Heinanen [Wed, 14 Oct 2009 12:27:00 +0000 (15:27 +0300)]
lib/srdb1/schema/trusted.xml: increased tag length from 32 to 64 chars

12 years agomakefile: support self-installing utils, extra cfgs a.s.o.
Andrei Pelinescu-Onciul [Tue, 13 Oct 2009 19:58:56 +0000 (21:58 +0200)]
makefile: support self-installing utils, extra cfgs a.s.o.

- support for self-installing utils, they just need to be added to
 C_INSTALL_UTILS
- support for extra installed config, they just need to be added
  to C_INSTALL_CFGS. Module paths inside them will be fixed
  automatically if they are of the form /usr/*lib/modules*/.
- utils_compile renamed into C_COMPILE_UTILS
- utils_bin_install renamed into C_INSTALL_BIN
- utils_script_install renamed into C_INSTALL_SCRIPTS
- share_install renamed into C_INSTALL_SHARE

12 years agocore: fix memleak in fixup_free*
Andrei Pelinescu-Onciul [Tue, 13 Oct 2009 18:11:25 +0000 (20:11 +0200)]
core: fix memleak in fixup_free*

fparam_free_contents() (which is what all the fixup_free* call in
sr) did not free the original string (which in sr is kept inside
 the fixed fparam/gparam).
It should have no impact, since at this point nobody seems to use
 any fixup_free* functions.

12 years agocore: fix cfg_update() on config error 2nd try
Andrei Pelinescu-Onciul [Mon, 12 Oct 2009 19:20:02 +0000 (21:20 +0200)]
core: fix cfg_update() on config error 2nd try

The cfg framework is considered initialized only after
the cfg_child_cb_no_init() call.
Fixes 29e63735632a379df5d6b49130d05d47e2829a60.

12 years agouserblacklist(k): gcc 2.95 compile fixes
Andrei Pelinescu-Onciul [Mon, 12 Oct 2009 16:08:29 +0000 (18:08 +0200)]
userblacklist(k): gcc 2.95 compile fixes

- variables must be declared at the beginning of a block

12 years agostatistics(k): minor warning in printf fmt
Andrei Pelinescu-Onciul [Mon, 12 Oct 2009 16:07:15 +0000 (18:07 +0200)]
statistics(k): minor warning in printf fmt

12 years agosiputils(k): gcc 2.95 compile fixes
Andrei Pelinescu-Onciul [Mon, 12 Oct 2009 16:06:35 +0000 (18:06 +0200)]
siputils(k): gcc 2.95 compile fixes

- variables must be declared at the beginning of a block

12 years agoregistrar(k): gcc 2.95 compile fixes
Andrei Pelinescu-Onciul [Mon, 12 Oct 2009 16:05:33 +0000 (18:05 +0200)]
registrar(k): gcc 2.95 compile fixes

- variables must be declared at the beginning of a block

12 years agopua_mi: gcc 2.95 compile fixes
Andrei Pelinescu-Onciul [Mon, 12 Oct 2009 16:04:30 +0000 (18:04 +0200)]
pua_mi: gcc 2.95 compile fixes

- variables must be declared at the beginning of a block

12 years agocfgutils(k): gcc 2.95 compile fixes
Andrei Pelinescu-Onciul [Mon, 12 Oct 2009 16:03:48 +0000 (18:03 +0200)]
cfgutils(k): gcc 2.95 compile fixes

- variables must be declared at the beginning of a block

12 years agolcr: compile & warning fixes for gcc 2.95
Andrei Pelinescu-Onciul [Mon, 12 Oct 2009 14:45:27 +0000 (16:45 +0200)]
lcr: compile & warning fixes for gcc 2.95

- variables must be declared at the beginning of a block

12 years agodb_postgres: compile fixes for gcc 2.95
Andrei Pelinescu-Onciul [Mon, 12 Oct 2009 14:43:33 +0000 (16:43 +0200)]
db_postgres: compile fixes for gcc 2.95

- variables must be declared at the beginning of a block
- #ifdefs not allowed in macro arguments

12 years agodb_mysql: compile fix for gcc 2.95
Andrei Pelinescu-Onciul [Mon, 12 Oct 2009 14:41:32 +0000 (16:41 +0200)]
db_mysql: compile fix for gcc 2.95

- variables must be declared at the beginning of a block

12 years agocompile: don't warn on old gcc versions
Andrei Pelinescu-Onciul [Mon, 12 Oct 2009 14:39:38 +0000 (16:39 +0200)]
compile: don't warn on old gcc versions

12 years agoutils/sercmd: Fixed include paths also in sr_3.0 branch.
Juha Heinanen [Sat, 10 Oct 2009 11:50:23 +0000 (14:50 +0300)]
utils/sercmd: Fixed include paths also in sr_3.0 branch.

12 years agoversion number increased
Andrei Pelinescu-Onciul [Sat, 10 Oct 2009 00:51:13 +0000 (02:51 +0200)]
version number increased

- preparing for the sr_3.0 branch

12 years agocall_control(k): fix register_script_cb callback
Andrei Pelinescu-Onciul [Sat, 10 Oct 2009 00:23:24 +0000 (02:23 +0200)]
call_control(k): fix register_script_cb callback

- sip-router script _cb take an extra parameter

12 years agomakefile: minor makecfg.lst fix
Andrei Pelinescu-Onciul [Sat, 10 Oct 2009 00:21:59 +0000 (02:21 +0200)]
makefile: minor makecfg.lst fix

- better escaping when saving the current DEFS and INCLUDES

12 years agoxmlrpc: moved from modules_s/ to modules/
Andrei Pelinescu-Onciul [Fri, 9 Oct 2009 23:46:24 +0000 (01:46 +0200)]
xmlrpc: moved from modules_s/ to modules/

- mv modules_s/xmlrpc modules/xmlrpc
- updated sl.h include path

12 years agoauth_identity: moved from modules_s/ to modules/
Andrei Pelinescu-Onciul [Fri, 9 Oct 2009 23:43:53 +0000 (01:43 +0200)]
auth_identity: moved from modules_s/ to modules/

12 years agoiptrtpproxy: minor makefile update
Andrei Pelinescu-Onciul [Fri, 9 Oct 2009 23:39:26 +0000 (01:39 +0200)]
iptrtpproxy: minor makefile update

- use INCLUDES instead of DEFS+=-I...

12 years agoiptrtpproxy: moved from modules_s/ to modules/
Andrei Pelinescu-Onciul [Fri, 9 Oct 2009 23:34:21 +0000 (01:34 +0200)]
iptrtpproxy: moved from modules_s/ to modules/

12 years agocfg_db: moved from modules_s/ to modules/
Andrei Pelinescu-Onciul [Fri, 9 Oct 2009 23:02:31 +0000 (01:02 +0200)]
cfg_db: moved from modules_s/ to modules/

12 years agocfg_rpc: moved from modules_s/ to modules/
Andrei Pelinescu-Onciul [Fri, 9 Oct 2009 23:01:52 +0000 (01:01 +0200)]
cfg_rpc: moved from modules_s/ to modules/

12 years agoctl: moved from modules_s/ to modules/
Andrei Pelinescu-Onciul [Fri, 9 Oct 2009 23:00:54 +0000 (01:00 +0200)]
ctl: moved from modules_s/ to modules/

12 years agodb_mysql makefile: example FLAVOUR support
Andrei Pelinescu-Onciul [Fri, 9 Oct 2009 22:50:32 +0000 (00:50 +0200)]
db_mysql makefile: example FLAVOUR support

12 years agomakefile: FLAVOUR support
Andrei Pelinescu-Onciul [Fri, 9 Oct 2009 22:38:34 +0000 (00:38 +0200)]
makefile: FLAVOUR support

Basic support for sip-router, ser and kamailio flavours and
install flavours, e.g.:
make config FLAVOUR=sip-router
make config INSTALL_FLAVOUR=kamailio; make install (will install
only kamailio specific tools, but won't change the main name)
make config FLAVOUR=ser; make install (will install ser tools and
change the name to ser).

Note that FLAVOUR does not influence the module list (one should
use modules_dirs, group_include and/or modules, modules_s,
modules_k) and that for now choosing kamailio will only change the
name.

12 years agoTypos and formatting
oej [Fri, 9 Oct 2009 20:38:48 +0000 (22:38 +0200)]
Typos and formatting

12 years agoTypo
oej [Fri, 9 Oct 2009 20:34:16 +0000 (22:34 +0200)]
Typo

12 years agoSmall formatting updates
oej [Fri, 9 Oct 2009 20:33:11 +0000 (22:33 +0200)]
Small formatting updates

12 years agoUpdating PDB readme as well...
oej [Fri, 9 Oct 2009 20:25:34 +0000 (22:25 +0200)]
Updating PDB readme as well...

12 years agoUpdating PDB documentation from http://sip-router.org/2009/09/11/number-portability...
oej [Fri, 9 Oct 2009 20:20:24 +0000 (22:20 +0200)]
Updating PDB documentation from sip-router.org/2009/09/11/number-portability-functionality/

12 years agoMerge branch 'master' of ssh://oej@git.sip-router.org/sip-router
oej [Fri, 9 Oct 2009 20:05:45 +0000 (22:05 +0200)]
Merge branch 'master' of ssh://oej@git.sip-router.org/sip-router

* 'master' of ssh://oej@git.sip-router.org/sip-router:
  makefile: even more quiet
  modules warning fixes
  * callcontrol
  makefile: quiet output support
  pike_top: moved from tools/ to utils/
  kamctl: moved from tools/ to utils/
  core ev: minor cleanups
  topoh: new module for hiding topology details
  core: new sr events system
  core: execute callbacks for NET_DATA_IN and NET_DATA_OUT

12 years agoUpdating README files
oej [Fri, 9 Oct 2009 20:04:36 +0000 (22:04 +0200)]
Updating README files
- total restart for the README-MODULES

Need help updating the list of current modules.

12 years agomakefile: even more quiet
Andrei Pelinescu-Onciul [Fri, 9 Oct 2009 19:03:03 +0000 (21:03 +0200)]
makefile: even more quiet

12 years agomodules warning fixes
Andrei Pelinescu-Onciul [Fri, 9 Oct 2009 18:59:18 +0000 (20:59 +0200)]
modules warning fixes

12 years ago* callcontrol
Raul Alexis Betancor Santana [Fri, 9 Oct 2009 18:20:41 +0000 (19:20 +0100)]
* callcontrol

- Ported r6149 from OpenSips:
   added support for customizing call-control messages from the script
- Ported r6236 from OpenSips:
   fixed incorrect release of memory

12 years agomakefile: quiet output support
Andrei Pelinescu-Onciul [Fri, 9 Oct 2009 13:30:02 +0000 (15:30 +0200)]
makefile: quiet output support

Support for quiet output (without all the flags and compile
options): make Q=1 or make QUIET=1.
It can be saved in the config (e.g. make config Q=1) and it can be
overridden any time (e.g. make utils Q=0).
Compilation is a little faster in quiet mode and the same speed as
before in normal mode.

Example module output:
CC (gcc) [M tm.so]              uac.o
LD (gcc) [M tm.so]              tm.so

Lib example:
LD (gcc) [L libbinrpc.so.0.1]           libbinrpc.so.0.1

12 years agoMerge remote branch 'origin/tmp/core_events'
Andrei Pelinescu-Onciul [Fri, 9 Oct 2009 12:16:41 +0000 (14:16 +0200)]
Merge remote branch 'origin/tmp/core_events'

* origin/tmp/core_events:
  core ev: minor cleanups
  topoh: new module for hiding topology details
  core: new sr events system
  core: execute callbacks for NET_DATA_IN and NET_DATA_OUT

12 years agopike_top: moved from tools/ to utils/
Andrei Pelinescu-Onciul [Fri, 9 Oct 2009 12:09:17 +0000 (14:09 +0200)]
pike_top: moved from tools/ to utils/

12 years agokamctl: moved from tools/ to utils/
Andrei Pelinescu-Onciul [Fri, 9 Oct 2009 12:05:15 +0000 (14:05 +0200)]
kamctl: moved from tools/ to utils/

- mv tools/kamctl utils/kamctl
- updated srdb1 Makefile and test/unit/include/common with the new
  kamctl path

12 years agoUpdating INSTALL - mostly formatting
oej [Fri, 9 Oct 2009 09:23:20 +0000 (11:23 +0200)]
Updating INSTALL - mostly formatting

12 years agomakefile: use separate CFLAGS & LDFLAGS for utils
Andrei Pelinescu-Onciul [Thu, 8 Oct 2009 15:45:44 +0000 (17:45 +0200)]
makefile: use separate CFLAGS & LDFLAGS for utils

- added UTILS_CFLAGS and UTILS_LDFLAGS (Makefile.defs and saved in
  the config)
- use UTILS_CFLAGS and UTILS_LDFLAGS when compiling the utils
(fixes a bug when an util compiled by a module will be compiled
 with the module flags)

12 years agounit test: also test for memcache value deletion
Henning Westerholt [Thu, 8 Oct 2009 14:13:43 +0000 (16:13 +0200)]
unit test: also test for memcache value deletion

12 years agomemcached(sr): fix docs for value deletion
Henning Westerholt [Thu, 8 Oct 2009 14:12:52 +0000 (16:12 +0200)]
memcached(sr): fix docs for value deletion

12 years agoMerge branch 'master' of ssh://oej@git.sip-router.org/sip-router
oej [Thu, 8 Oct 2009 13:29:07 +0000 (15:29 +0200)]
Merge branch 'master' of ssh://oej@git.sip-router.org/sip-router

* 'master' of ssh://oej@git.sip-router.org/sip-router:
  pdb(sr): add missing doc Makefile, fix include for pdb_admin.xml, regenerate docs

12 years agoUpdating LDAP readme
oej [Thu, 8 Oct 2009 13:10:48 +0000 (15:10 +0200)]
Updating LDAP readme

12 years agopdb(sr): add missing doc Makefile, fix include for pdb_admin.xml, regenerate docs
Henning Westerholt [Thu, 8 Oct 2009 12:50:31 +0000 (14:50 +0200)]
pdb(sr): add missing doc Makefile, fix include for pdb_admin.xml, regenerate docs

12 years agopv: added init and working destroy functions
Andrei Pelinescu-Onciul [Thu, 8 Oct 2009 10:14:29 +0000 (12:14 +0200)]
pv: added init and working destroy functions

- added init and destroy functions (declared in pvapi_init.h)
- fixed pv_table_free() and tr_table_free() bug

12 years agomem: nicer fm_status() & fm_sums() output
Andrei Pelinescu-Onciul [Thu, 8 Oct 2009 10:11:39 +0000 (12:11 +0200)]
mem: nicer fm_status() & fm_sums() output

Removed useless and confusing current file location information
(we are interested where the fragment was allocated from, and not
where the information is printed).

12 years agomem: include the module name in the debugging info
Andrei Pelinescu-Onciul [Thu, 8 Oct 2009 09:33:25 +0000 (11:33 +0200)]
mem: include the module name in the debugging info

- use <module_name: file> when recording the filename information
  for debugging (DBQ_QM_MALLOC defined)
- added a new file that should define in a portable way the
  various location info (file, function, a.s.o.)

12 years agocore: fix cfg_update() on config error
Andrei Pelinescu-Onciul [Wed, 7 Oct 2009 22:14:32 +0000 (00:14 +0200)]
core: fix cfg_update() on config error

Don't try to use the cfg framework if it was not initialized (it
could happen if for example config parsing fails and shutdown is
triggered before the cfg framework is initialized).

12 years agopv(k): removed $rc and $retcode (they are now in core)
Andrei Pelinescu-Onciul [Wed, 7 Oct 2009 22:03:25 +0000 (00:03 +0200)]
pv(k): removed $rc and $retcode (they are now in core)

12 years agocore: core pvars added for $?/$retcode/$rc
Andrei Pelinescu-Onciul [Wed, 7 Oct 2009 21:57:45 +0000 (23:57 +0200)]
core: core pvars added for $?/$retcode/$rc

- added core pvars (registered before script parsing) for the
  return code ($?, $retcode, $rc). This solves script conflicts
  between the different return code handling (kamailio - pvars and
   ser built-in expr. elem).
- removed ser expr. elem for retcode (not needed anymore)
- added '?' as a valid pvar char (needed so that $? will be
  accepted)

12 years agounit test(sr): fix debug setting and a bunch of paths
Henning Westerholt [Wed, 7 Oct 2009 16:37:55 +0000 (18:37 +0200)]
unit test(sr): fix debug setting and a bunch of paths

12 years agounit test(sr): fix location of kamailio ctl tool
Henning Westerholt [Wed, 7 Oct 2009 16:35:51 +0000 (18:35 +0200)]
unit test(sr): fix location of kamailio ctl tool

12 years agounit test(sr): add initial small test for memcache module
Henning Westerholt [Wed, 7 Oct 2009 16:35:00 +0000 (18:35 +0200)]
unit test(sr): add initial small test for memcache module

12 years agomemcached(sr): add support for setting of value expiration - $mctex(key)
Henning Westerholt [Wed, 7 Oct 2009 16:31:08 +0000 (18:31 +0200)]
memcached(sr): add support for setting of value expiration - $mctex(key)

- add support for setting of value expiration. As the memcache library
  don't provide functions to later change the expire value of an existing
  key we need to fetch the value and then store it again with the given
  time. This should be changed with a different (improved) library
- refactor functions a bit, use a helper method instead of duplicating
  the cache access functions
- update documentation

12 years agocore ev: minor cleanups
Andrei Pelinescu-Onciul [Tue, 6 Oct 2009 12:53:26 +0000 (14:53 +0200)]
core ev: minor cleanups

- use if (unlikely(...)) when executing the callbacks (optimize
  for the case where there are no callbacks)
- debugging info printed only #if EXTRA_DEBUG

12 years agocfg framework: fix shutdown crash for non registered modules
Andrei Pelinescu-Onciul [Tue, 6 Oct 2009 10:47:14 +0000 (12:47 +0200)]
cfg framework: fix shutdown crash for non registered modules

Added cfg_update_no_cbs() which partially updates (no per-child
 callbacks are called) the local config.
It's needed for config update on exit (SIGTERM) for modules that
do not register as cfg users and when the code is compiled with
SIG_DEBUG.

12 years agoChanges to documentation of carrierroute module:
Marius Zbihlei [Tue, 6 Oct 2009 09:41:59 +0000 (12:41 +0300)]
Changes to documentation of carrierroute module:
changed cr_route usage in example as it didn't matched the actual interface
by removing the crc32 parameter.

12 years agosctp: linux kernel obsolete api bug workaround
Andrei Pelinescu-Onciul [Mon, 5 Oct 2009 14:15:30 +0000 (16:15 +0200)]
sctp: linux kernel obsolete api bug workaround

set SPP_PMTUD_ENABLE when changing pathmaxrxt on linux. This was
required on older versions of the api draft (<=14, most likely a
draft bug) and is still required on linux.

Reported-by: Libor Chocholaty libor at iptel org
12 years agomodules_k/msilo: send composed body only if content type is text/plain
Juha Heinanen [Mon, 5 Oct 2009 12:13:56 +0000 (15:13 +0300)]
modules_k/msilo: send composed body only if content type is text/plain

12 years agodb schemes(k): related to commit 8eb5c7071b79, fix Makefile variable
Henning Westerholt [Mon, 5 Oct 2009 11:04:54 +0000 (13:04 +0200)]
db schemes(k): related to commit 8eb5c7071b79, fix Makefile variable

12 years agodb schemes(k): fix loading of DTD from internet, reported from Juha
Henning Westerholt [Mon, 5 Oct 2009 11:03:52 +0000 (13:03 +0200)]
db schemes(k): fix loading of DTD from internet, reported from Juha

12 years agodb_mysql: fix install instead of compile bug
Andrei Pelinescu-Onciul [Mon, 5 Oct 2009 11:08:05 +0000 (13:08 +0200)]
db_mysql: fix install instead of compile bug

Fix for trying to install the extra utils instead of compiling bug
(introduced in the last commit).

12 years ago* modules_k/permissions: fixed checking of db connection
Juha Heinanen [Fri, 2 Oct 2009 13:37:17 +0000 (16:37 +0300)]
* modules_k/permissions: fixed checking of db connection

- In allow_trusted(), check existence of db connection only when in
  non-caching mode.

12 years agomodules_k/permissions: fixed handling of db connection
Juha Heinanen [Fri, 2 Oct 2009 09:00:58 +0000 (12:00 +0300)]
modules_k/permissions: fixed handling of db connection

* Do not close db connection if query fails.
* Check that db connection exists before making a query

12 years agolcr: regenerate database tables
Henning Westerholt [Thu, 1 Oct 2009 16:42:54 +0000 (18:42 +0200)]
lcr: regenerate database tables

12 years agodialog(k): use the version from (old) trunk, the ones from 1.5 is also old
Henning Westerholt [Thu, 1 Oct 2009 16:41:57 +0000 (18:41 +0200)]
dialog(k): use the version from (old) trunk, the ones from 1.5 is also old

12 years agodb docs(k): better to place this in the existing dir 'databases'
Henning Westerholt [Thu, 1 Oct 2009 16:40:07 +0000 (18:40 +0200)]
db docs(k): better to place this in the existing dir 'databases'

12 years agodb schema(k): add XSL files, as the ones from sr not work for us (extensions etc..)
Henning Westerholt [Thu, 1 Oct 2009 16:33:20 +0000 (18:33 +0200)]
db schema(k): add XSL files, as the ones from sr not work for us (extensions etc..)

12 years agosr: add 'make dbschema' target, compatibility to kamailio
Henning Westerholt [Thu, 1 Oct 2009 16:32:34 +0000 (18:32 +0200)]
sr: add 'make dbschema' target, compatibility to kamailio

12 years agopurple(k): add missing purple xml db scheme sources
Henning Westerholt [Thu, 1 Oct 2009 16:27:15 +0000 (18:27 +0200)]
purple(k): add missing purple xml db scheme sources

12 years agodialog(k): copy dialog table from 1.5 branch, the version in this tree is older
Henning Westerholt [Thu, 1 Oct 2009 16:26:17 +0000 (18:26 +0200)]
dialog(k): copy dialog table from 1.5 branch, the version in this tree is older

12 years agomakefile: mysql shared *.sql removed
Andrei Pelinescu-Onciul [Thu, 1 Oct 2009 14:52:17 +0000 (16:52 +0200)]
makefile: mysql shared *.sql removed

mysql shared *.sql files are no longer installed by the main
makefile, but by the db_mysql module.

12 years agodb_mysql: install shared *.sql files
Andrei Pelinescu-Onciul [Thu, 1 Oct 2009 14:51:36 +0000 (16:51 +0200)]
db_mysql: install shared *.sql files

12 years agomakefile: per modules arch. indep. files install support
Andrei Pelinescu-Onciul [Thu, 1 Oct 2009 14:48:30 +0000 (16:48 +0200)]
makefile: per modules arch. indep. files install support

Support for easily adding arch. independent files that should be
installed along a module.
The following new module makefile variable is supported:

MOD_INSTALL_SHARE - list of files to install into the
arch-independent shared directory (by default
/usr/local/share/$(MAIN_NAME)).

12 years agodoc: serdoc2man.xsl revived
Andrei Pelinescu-Onciul [Thu, 1 Oct 2009 14:29:14 +0000 (16:29 +0200)]
doc: serdoc2man.xsl revived

serdoc2man.xsl is still needed for the ser modules that have
manpages.

12 years agomakefile: doc update for Makefile.utils
Andrei Pelinescu-Onciul [Thu, 1 Oct 2009 14:05:02 +0000 (16:05 +0200)]
makefile: doc update for Makefile.utils

12 years agomakefile: utils and cfg cleanup
Andrei Pelinescu-Onciul [Thu, 1 Oct 2009 14:02:51 +0000 (16:02 +0200)]
makefile:  utils and cfg cleanup

Moved sercmd, sip-router_mysql.sh and tls.cfg install to their
respective modules.

12 years agotls: updated to the new auto install cfg makefile
Andrei Pelinescu-Onciul [Thu, 1 Oct 2009 14:01:34 +0000 (16:01 +0200)]
tls: updated to the new auto install cfg makefile