sip-router
9 years agotm, tmx: move small redundant skip_hf macro to ut.h
Henning Westerholt [Tue, 5 Jul 2011 21:44:11 +0000 (23:44 +0200)]
tm, tmx: move small redundant skip_hf macro to ut.h

- move small redundant skip_hf macro in in tm and tmx to tm/ut.h file
- this header is already included from the callers
- rename macro to a bit more descriptive name, no other changes

9 years agocore: move redundant and identical implementation of a str_list type to core
Henning Westerholt [Tue, 5 Jul 2011 21:38:13 +0000 (23:38 +0200)]
core: move redundant and identical implementation of a str_list type to core

- move redundant str_list and new_str implementations from tm and tmx to core
- rename new_str to a more descriptive append_str_list, no interface changes
- fix callers in tm and tmx
- add doxygen documentation

9 years agocore: small spelling fix and cleanup in doxygen docs
Henning Westerholt [Tue, 5 Jul 2011 21:34:41 +0000 (23:34 +0200)]
core: small spelling fix and cleanup in doxygen docs

9 years agocore: new preprocessor directives: trydef and redef
Daniel-Constantin Mierla [Tue, 5 Jul 2011 21:45:14 +0000 (23:45 +0200)]
core: new preprocessor directives: trydef and redef

- #!trydef - don't define if it is already done
- #!redef - redefine even already defined
- both have the prototype like #!define

9 years agocore: allow #! or !! in front of include_file and import_file
Daniel-Constantin Mierla [Tue, 5 Jul 2011 07:20:59 +0000 (09:20 +0200)]
core: allow #! or !! in front of include_file and import_file

- import_file and include_file can have the same syntax as preprocessor
  directives

9 years agocore: added import_file
Daniel-Constantin Mierla [Tue, 5 Jul 2011 07:15:34 +0000 (09:15 +0200)]
core: added import_file

- import_file is similar to include_file but does not throws error if
  the file is not found:
- example: import_file "myfile.cfg"

9 years agotm: deactivate compilation for not used test function _test_insert_to_reply
Henning Westerholt [Mon, 4 Jul 2011 22:21:39 +0000 (00:21 +0200)]
tm: deactivate compilation for not used test function _test_insert_to_reply

9 years agotm: proper definition for tm_init_timers, one small whitespace fix
Henning Westerholt [Mon, 4 Jul 2011 22:20:35 +0000 (00:20 +0200)]
tm: proper definition for tm_init_timers, one small whitespace fix

9 years agotm: initial round of doxygen documentation for timer.[h,c] - tbc
Henning Westerholt [Mon, 4 Jul 2011 22:17:11 +0000 (00:17 +0200)]
tm: initial round of doxygen documentation for timer.[h,c] - tbc

9 years agotm: restrict callid_suffix and callid_prefix visibility to module, not used outside
Henning Westerholt [Mon, 4 Jul 2011 21:47:25 +0000 (23:47 +0200)]
tm: restrict callid_suffix and callid_prefix visibility to module, not used outside

9 years agotm: add doxygen docs to callid.[c,h]
Henning Westerholt [Mon, 4 Jul 2011 21:43:00 +0000 (23:43 +0200)]
tm: add doxygen docs to callid.[c,h]

9 years agosrdb1: regenerated db creation scripts
Daniel-Constantin Mierla [Mon, 4 Jul 2011 20:07:20 +0000 (22:07 +0200)]
srdb1: regenerated db creation scripts

9 years agosrdb1: entities files updated for callid_len and default cseq value
Daniel-Constantin Mierla [Mon, 4 Jul 2011 20:04:29 +0000 (22:04 +0200)]
srdb1: entities files updated for callid_len and default cseq value

9 years agosrdb1: added callid_len entity
Daniel-Constantin Mierla [Mon, 4 Jul 2011 20:02:19 +0000 (22:02 +0200)]
srdb1: added callid_len entity

- used for size of callid columns across tables
- set to 255

9 years agoversion set to 3.2.0-dev6
Daniel-Constantin Mierla [Mon, 4 Jul 2011 20:01:45 +0000 (22:01 +0200)]
version set to 3.2.0-dev6

9 years agotm: add doxygen documentation for sip_msg.[c,h] files
Henning Westerholt [Sun, 3 Jul 2011 22:40:21 +0000 (00:40 +0200)]
tm: add doxygen documentation for sip_msg.[c,h] files

9 years agotm: remove #ifdef POSTPONE_MSG_CLONING, its default for three years now
Henning Westerholt [Sun, 3 Jul 2011 22:07:45 +0000 (00:07 +0200)]
tm: remove #ifdef POSTPONE_MSG_CLONING, its default for three years now

- remove POSTPONE_MSG_CLONING define from tm module
- its now the default for more than three years
- control flow in the module without it is better understandable
- the current way is the expected behavior, also recently discussed on the list

9 years agodoxygen: small doc fix in parser
Henning Westerholt [Sun, 3 Jul 2011 19:50:04 +0000 (21:50 +0200)]
doxygen: small doc fix in parser

9 years agotmx: doxumented t_suspend() and t_continue()
Daniel-Constantin Mierla [Sun, 3 Jul 2011 13:32:42 +0000 (15:32 +0200)]
tmx: doxumented t_suspend() and t_continue()

9 years agodocbook: allow setting catalog path from command line
Daniel-Constantin Mierla [Sun, 3 Jul 2011 13:21:22 +0000 (15:21 +0200)]
docbook: allow setting catalog path from command line

9 years agotmx: exported asynchronous functions to config
Daniel-Constantin Mierla [Sun, 3 Jul 2011 13:07:04 +0000 (15:07 +0200)]
tmx: exported asynchronous functions to config

- t_suspend() - suppend the execution of SIP request in a transaction -
  the transaction is created if it does not exist already. $T(id_index)
  and $T(id_label) can be used to get transaction's internal index and
  label identifiers
- t_continue(index, label, rtname) - continue the execution of a
  suspended transaction identified by (index, label) with the actions in
  route[rtname]

9 years agopresence: document fallback2db parameter, add a obselete warning# Please enter the...
Henning Westerholt [Fri, 1 Jul 2011 15:16:19 +0000 (17:16 +0200)]
presence: document fallback2db parameter, add a obselete warning# Please enter the commit message for your changes. Lines starting

9 years agopresence: rename recently added parameter to the 'standard' db_mode that others uses
Henning Westerholt [Fri, 1 Jul 2011 15:12:35 +0000 (17:12 +0200)]
presence: rename recently added parameter to the 'standard' db_mode that others uses

9 years agoIncrease callid length to varchar(255) in acc table.
Jon Bonilla [Thu, 30 Jun 2011 16:36:37 +0000 (18:36 +0200)]
Increase callid length to varchar(255) in acc table.

9 years agotmx: new pseudo-variable class $T(name)
Daniel-Constantin Mierla [Thu, 30 Jun 2011 13:55:49 +0000 (15:55 +0200)]
tmx: new pseudo-variable class $T(name)

- retrieve transaction related attributes
- name can be:
- id_label - internal transaction label
- id_index - internal transaction index
- branch_index - return the current branch index in transaction
  (alias to $T_branch_idx)
- reply_code - the winning reply code currently set for transaction
  (alias to $T_reply_code)

9 years agodb_mysql: search also for mysql_config5 in Makefile
Daniel-Constantin Mierla [Thu, 30 Jun 2011 13:54:42 +0000 (15:54 +0200)]
db_mysql: search also for mysql_config5 in Makefile

- on some OSes, the mysql_config tool might have the name mysql_config5

9 years agopdt(k): removed add/delete mi commands
Elena-Ramona Modroiu [Thu, 30 Jun 2011 13:50:14 +0000 (15:50 +0200)]
pdt(k): removed add/delete mi commands

- pdt_add and pdt_delete were just insert/delete sql queries followed by
  internal call of pdt_reload, creating unecessary code maintenace, thus
  they were removed. SQL queries can be executed directly from terminal
  and then pdt_reload to get same functionality

9 years agopdt(k): restructured sources
Elena-Ramona Modroiu [Thu, 30 Jun 2011 13:44:50 +0000 (15:44 +0200)]
pdt(k): restructured sources

- prepared for adding rpc commands to replace mi
- mi commands moved in a dedicated file for now
- removed unnecesary mi commads to simplify maintenance

9 years agoxlog(k): readme updated with log_facility param
Elena-Ramona Modroiu [Thu, 30 Jun 2011 09:17:32 +0000 (11:17 +0200)]
xlog(k): readme updated with log_facility param

9 years agoxlog(k): new module parameter log_facility
Elena-Ramona Modroiu [Thu, 30 Jun 2011 09:04:22 +0000 (11:04 +0200)]
xlog(k): new module parameter log_facility

- allow to specify syslog facility for messages printed by xlog module
- xlog messages can be diverted now to special file via syslog conf

9 years agoipops: add a comment about autogenerated files from ragel
Henning Westerholt [Wed, 29 Jun 2011 20:35:39 +0000 (22:35 +0200)]
ipops: add a comment about autogenerated files from ragel

9 years agocore: fix two more 'no real prototype' warnings, fix one wrong caller in timer mod
Henning Westerholt [Wed, 29 Jun 2011 20:30:39 +0000 (22:30 +0200)]
core: fix two more 'no real prototype' warnings, fix one wrong caller in timer mod

9 years agotm: fix one 'no real prototype' warning, fix the wrong call as well
Henning Westerholt [Wed, 29 Jun 2011 20:29:10 +0000 (22:29 +0200)]
tm: fix one 'no real prototype' warning, fix the wrong call as well

9 years agocore: fix another bunch of 'no real prototype' warnings, add doxygen docs
Henning Westerholt [Wed, 29 Jun 2011 20:12:28 +0000 (22:12 +0200)]
core: fix another bunch of 'no real prototype' warnings, add doxygen docs

* fix another bunch of gcc 4.5 'no real prototype' warnings by making the MD5
  functions typesafe (removing this PROTO_LIST stuff)
* refactoring of function definitions to use a proper style, like everybody else
* remove not needed defines for datatypes, delete the then empty header completely
* remove the unneeded include of md5global.h from a few modules
* fix callers of MD5 utility functions which already use a proper type
* adapt format of RSA copyright notices to the common style as well
* add doxygen documentations to all functions and defines
* similar changes have been done in kamailio, but have been not ported to this
  repository yet

9 years agoasync module: mention $apv and $xavp in documentation Overview.
Iñaki Baz Castillo [Mon, 27 Jun 2011 15:09:03 +0000 (17:09 +0200)]
async module: mention $apv and $xavp in documentation Overview.

9 years agoasync: updates to prameter types
Daniel-Constantin Mierla [Sun, 26 Jun 2011 09:51:31 +0000 (11:51 +0200)]
async: updates to prameter types

- use typedefs - straigforwards ctags jumping

9 years agotm: renamed typedef cell_type to tm_cell_t
Daniel-Constantin Mierla [Sun, 26 Jun 2011 09:48:39 +0000 (11:48 +0200)]
tm: renamed typedef cell_type to tm_cell_t

9 years agoasync: documented async_route() function
Daniel-Constantin Mierla [Sun, 26 Jun 2011 09:42:01 +0000 (11:42 +0200)]
async: documented async_route() function

9 years agoasync: safety check for next action in async_sleep()
Daniel-Constantin Mierla [Sun, 26 Jun 2011 09:32:12 +0000 (11:32 +0200)]
async: safety check for next action in async_sleep()

9 years agoasync: added async_route(route, seconds)
Daniel-Constantin Mierla [Sun, 26 Jun 2011 09:27:53 +0000 (11:27 +0200)]
async: added async_route(route, seconds)

- executed route block asynchronously after seconds

9 years agocore: typedef'ed struct action to cfg_action_t
Daniel-Constantin Mierla [Sun, 26 Jun 2011 09:26:48 +0000 (11:26 +0200)]
core: typedef'ed struct action to cfg_action_t

9 years agoasync: added module documentation
Daniel-Constantin Mierla [Sun, 26 Jun 2011 09:05:23 +0000 (11:05 +0200)]
async: added module documentation

9 years agoasync: new module for asynchronous config operations
Daniel-Constantin Mierla [Sat, 25 Jun 2011 22:43:57 +0000 (00:43 +0200)]
async: new module for asynchronous config operations

- exports async_sleep(seconds) - sleep asynchronously and continue the
  exection after the seconds interval has passed
- it uses t_suspend()/t_continue()
- config execution state is lost, so a return at the same level with
  async_sleep() will exit the config execution

9 years agoxlog(k): use the function from core to get action struct
Daniel-Constantin Mierla [Sat, 25 Jun 2011 19:10:08 +0000 (21:10 +0200)]
xlog(k): use the function from core to get action struct

- an internal function was moved to core and the code updated to use it

9 years agocore: function to return action struct from param
Daniel-Constantin Mierla [Sat, 25 Jun 2011 19:07:31 +0000 (21:07 +0200)]
core: function to return action struct from param

- moved the function from xlog module to core to be used by other
  modules
- get_action_from_param(param, param_no) can return the pointer to
  action structure when the pointer to pointer param and param no is
  provided (like in the fixup of module functions)

9 years agoauth_db(k): documented version_table parameter
Daniel-Constantin Mierla [Fri, 24 Jun 2011 18:47:21 +0000 (20:47 +0200)]
auth_db(k): documented version_table parameter

9 years agoauth_db: option to skip checking version table
Daniel-Constantin Mierla [Fri, 24 Jun 2011 18:46:11 +0000 (20:46 +0200)]
auth_db: option to skip checking version table

- new parameter 'version_table' to be able to disable checking for
  version table
- useful when connecting to a different database to fetch the password

9 years agocfg framework: set the handle before creating the cfg group
Miklos Tirpak [Fri, 24 Jun 2011 13:10:51 +0000 (15:10 +0200)]
cfg framework: set the handle before creating the cfg group

The handle must be set before the config group is created
because the related functions save the value for future use.

The tcp and sctp config handles are not initialized to the default
config struction. This cased a crash because orig_handle was set to
the initial value which is uninitialized.

9 years agocfg framework: set the local config in PROC_INIT
Miklos Tirpak [Tue, 7 Jun 2011 18:58:38 +0000 (20:58 +0200)]
cfg framework: set the local config in PROC_INIT

The local configuration of the main process is temporary
set during initialization in child_init with rank==PROC_INIT,
which makes the configuration group instances available for
the modules.
The local configuration is reset back to NULL afterwards to make
sure that each child process updates its own config the usual way.

9 years agocfg framework: safety checks added
Miklos Tirpak [Fri, 3 Jun 2011 12:37:03 +0000 (14:37 +0200)]
cfg framework: safety checks added

Verify that the child process has a local configuration
in the functions that work with config group instances.

9 years agocfg framework: functions to iterate though the group instances
Miklos Tirpak [Fri, 3 Jun 2011 11:38:32 +0000 (13:38 +0200)]
cfg framework: functions to iterate though the group instances

Two functions, cfg_select_first and cfg_select_next, are added
which can be used to iterate though the instances of a cfg group.

9 years agodoxygen: small bunch of fixes for doxygen documentation
Henning Westerholt [Thu, 23 Jun 2011 22:36:18 +0000 (00:36 +0200)]
doxygen: small bunch of fixes for doxygen documentation

9 years agodoxygen: convert existing documentation to doxygen, small whitespace cleanup
Henning Westerholt [Thu, 23 Jun 2011 22:25:09 +0000 (00:25 +0200)]
doxygen: convert existing documentation to doxygen, small whitespace cleanup

9 years agocore: replace redundant for-loop memset/ memcpy with standard (faster) libc versions
Henning Westerholt [Thu, 23 Jun 2011 22:04:01 +0000 (00:04 +0200)]
core: replace redundant for-loop memset/ memcpy with standard (faster) libc versions

9 years agorand: fix warnings: call to function ‘..’ without a real prototype from gcc 4.5
Henning Westerholt [Thu, 23 Jun 2011 21:58:13 +0000 (23:58 +0200)]
rand: fix warnings: call to function ‘..’ without a real prototype from gcc 4.5

9 years agodoxygen: convert existing docs to use proper doxygen structures and groups, small...
Henning Westerholt [Thu, 23 Jun 2011 21:39:01 +0000 (23:39 +0200)]
doxygen: convert existing docs to use proper doxygen structures and groups, small cleanups

9 years agodoxygen: add missing group definition to dialog module
Henning Westerholt [Thu, 23 Jun 2011 21:32:50 +0000 (23:32 +0200)]
doxygen: add missing group definition to dialog module

9 years agodoxygen: some fixes in tls module
Henning Westerholt [Thu, 23 Jun 2011 21:08:41 +0000 (23:08 +0200)]
doxygen: some fixes in tls module

9 years agodoxygen: small syntax fix in cfg support and sl module
Henning Westerholt [Thu, 23 Jun 2011 20:03:43 +0000 (22:03 +0200)]
doxygen: small syntax fix in cfg support and sl module

9 years agodns: typo fixed (dns_a_resovle -> dns_a_resolve)
Iñaki Baz Castillo [Wed, 22 Jun 2011 15:42:13 +0000 (17:42 +0200)]
dns: typo fixed (dns_a_resovle -> dns_a_resolve)

9 years agoextend documentation
Klaus Darilion [Wed, 22 Jun 2011 12:46:59 +0000 (14:46 +0200)]
extend documentation

9 years agofixed description of trusted_table
Klaus Darilion [Wed, 22 Jun 2011 12:45:40 +0000 (14:45 +0200)]
fixed description of trusted_table

9 years agoapp_lua: removed typo 'i' from start of paragraphs
Daniel-Constantin Mierla [Wed, 22 Jun 2011 09:46:13 +0000 (11:46 +0200)]
app_lua: removed typo 'i' from start of paragraphs

- reported by Olle Johansson

9 years agouac: more verbose debug message
Daniel-Constantin Mierla [Wed, 22 Jun 2011 09:42:30 +0000 (11:42 +0200)]
uac: more verbose debug message

- give hint of how to get rid of append_fromtag requirement on rr module

9 years agodb_sqlite: synchronize database schema with other engines
Henning Westerholt [Mon, 20 Jun 2011 11:45:47 +0000 (13:45 +0200)]
db_sqlite: synchronize database schema with other engines

9 years agodb_sqlite: fix path in Makefile and utility script
Henning Westerholt [Mon, 20 Jun 2011 11:44:26 +0000 (13:44 +0200)]
db_sqlite: fix path in Makefile and utility script

9 years agodb_sqlite: rename database scheme files, to allow automatic updates
Henning Westerholt [Mon, 20 Jun 2011 11:43:57 +0000 (13:43 +0200)]
db_sqlite: rename database scheme files, to allow automatic updates

9 years agodb_sqlite: rename database scheme files, to allow automatic updates
Henning Westerholt [Mon, 20 Jun 2011 11:36:01 +0000 (13:36 +0200)]
db_sqlite: rename database scheme files, to allow automatic updates

9 years agoMakefile: exclude pua/presence_reginfo from default compile
Daniel-Constantin Mierla [Sat, 18 Jun 2011 21:27:54 +0000 (23:27 +0200)]
Makefile: exclude pua/presence_reginfo from default compile

- dependency on libxml2
- added the two modules to group presence

9 years agodocs: added README for pua_reginfo and presence_reginfo
Daniel-Constantin Mierla [Sat, 18 Jun 2011 21:25:12 +0000 (23:25 +0200)]
docs: added README for pua_reginfo and presence_reginfo

9 years agodocs: cleanup in xml files
Daniel-Constantin Mierla [Sat, 18 Jun 2011 21:21:41 +0000 (23:21 +0200)]
docs: cleanup in xml files

- useless revision history removed
- docs depend on entities.xml
- updated global entities
- fixed the links to users and devel mailing lists
- fixed the link to tracker

9 years agotmx: readme regenerated
Daniel-Constantin Mierla [Sat, 18 Jun 2011 17:43:11 +0000 (19:43 +0200)]
tmx: readme regenerated

9 years agodbschema: regenerated db creation scripts
Daniel-Constantin Mierla [Sat, 18 Jun 2011 17:42:27 +0000 (19:42 +0200)]
dbschema: regenerated db creation scripts

- updates to lcr tables and rls_watchers

9 years agodb schema: updated column sizes of rls_watchers table
Daniel-Constantin Mierla [Sat, 18 Jun 2011 17:39:11 +0000 (19:39 +0200)]
db schema: updated column sizes of rls_watchers table

- size for callid and contact columns set to &uri_len;
- patch by Peter Dunkley

9 years agotmx: documented t_reply_callid MI command
Daniel-Constantin Mierla [Sat, 18 Jun 2011 17:35:11 +0000 (19:35 +0200)]
tmx: documented t_reply_callid MI command

9 years agotmx: added t_reply_callid MI command
Daniel-Constantin Mierla [Sat, 18 Jun 2011 17:30:09 +0000 (19:30 +0200)]
tmx: added t_reply_callid MI command

- patch by Helmut Grohne

9 years ago- Merge of the implementation of the RFC3680 (reginfo-package) into master
Carsten Bock [Mon, 13 Jun 2011 13:04:27 +0000 (15:04 +0200)]
- Merge of the implementation of the RFC3680 (reginfo-package) into master

9 years agotm: fix minor tm_load_xapi bug
Andrei Pelinescu-Onciul [Sat, 11 Jun 2011 09:32:16 +0000 (11:32 +0200)]
tm: fix minor tm_load_xapi bug

Due to a typo the check for load_xtm not found was wrong.

9 years agotm: fix warnings/eliminate unused variables
Andrei Pelinescu-Onciul [Sat, 11 Jun 2011 09:31:43 +0000 (11:31 +0200)]
tm: fix warnings/eliminate unused variables

Eliminate initialized, but unused variables (reported by gcc 4.6).

9 years agocore: remove unused variables + coding style
Andrei Pelinescu-Onciul [Sat, 11 Jun 2011 09:24:05 +0000 (11:24 +0200)]
core: remove unused variables + coding style

9 years agocore: fix warnings/eliminate unused variables
Andrei Pelinescu-Onciul [Sat, 11 Jun 2011 09:21:49 +0000 (11:21 +0200)]
core: fix warnings/eliminate unused variables

Eliminate initialized, but unused variables (reported by gcc 4.6).

9 years agodns: case insensitive check for NAPTR record flags
Andrei Pelinescu-Onciul [Sat, 11 Jun 2011 08:38:10 +0000 (10:38 +0200)]
dns: case insensitive check for NAPTR record flags

The NAPTR records flags where not checked in case insensitive
mode. Records with the 'S' flags where ignored ('s' was expected).

Closes: FS#135
Reported-by: Inaki Baz Castillo ibc aliax net
9 years agopkg/kamailio/deb: lot of love to debian init scripts.
Iñaki Baz Castillo [Fri, 10 Jun 2011 17:17:25 +0000 (19:17 +0200)]
pkg/kamailio/deb: lot of love to debian init scripts.
- init scripts under debian/, lenny/, lucid/ and squeeze/ unified.
- fixed a bug in restart action: now it waits until kamailio has
  been stopped (using --retry 5 option in start-stop-daemon) rather
  than waiting an artificial fixed second (which is not enough when using
  memdbg/memlog causing kamailio not to start again).
- some text formatting.
- more LSB compliant (status codes).

9 years agodebugger: safety check for pid list
Daniel-Constantin Mierla [Fri, 10 Jun 2011 09:19:44 +0000 (11:19 +0200)]
debugger: safety check for pid list

- some event route blocks can be executed before all children
  initialization and the internal pid list structure is not created,
  disable debugging in this case

9 years agocore: IPv6 addr enclosed in square brackets for process descripton
Daniel-Constantin Mierla [Tue, 7 Jun 2011 21:19:18 +0000 (23:19 +0200)]
core: IPv6 addr enclosed in square brackets for process descripton

- UDP and SCTP listeners will have the IPv6 address in between square
  brackets inside the description string

9 years agokamctl: don't require sercmd all the time
Daniel-Constantin Mierla [Tue, 7 Jun 2011 20:57:32 +0000 (22:57 +0200)]
kamctl: don't require sercmd all the time

- sercmd is not needed for all commands - throw error only when it is
  going to be executed but it is not found

9 years agoMakefile.defs: adding LD_EXTRA_OPTS flag
Ovidiu Sas [Tue, 7 Jun 2011 19:48:27 +0000 (15:48 -0400)]
Makefile.defs: adding LD_EXTRA_OPTS flag
 - improving support for cross compilation

9 years agopkg/kamailio/squeeze : Make lintian happy(er) by adding dependancy on $remote_fs
Marius Zbihlei [Mon, 6 Jun 2011 12:44:16 +0000 (15:44 +0300)]
pkg/kamailio/squeeze : Make lintian happy(er) by adding dependancy on $remote_fs

As Kamailio need /usr paths to be available, this requires a LSB dependancy on $remote_fs.

9 years agoMakefile: updated groups of modules
Daniel-Constantin Mierla [Sat, 4 Jun 2011 08:30:30 +0000 (10:30 +0200)]
Makefile: updated groups of modules

- ipops, p_usrloc and sdpops added to kstandard group
- db_sqlite excluded from default compilation (depends os sqlite libs)
  and added to ksqlite group

9 years agoregistrar(k): reset local interator to contacts headers
Daniel-Constantin Mierla [Sat, 4 Jun 2011 08:22:09 +0000 (10:22 +0200)]
registrar(k): reset local interator to contacts headers

- when the REGISTER request had more than one Contact header and
  max_contacts parameter was set, there were two iterations through the
  list fo Contacts header without reseting the iterator, resulting in
  not processing all Contact headers in save() - reported by Andreas Granig
- instead of parsing the fist contact header as parameter to several
  functions, take it from sip msg structure hook

9 years agomodules_k/htable: include stddef.h to let sip-router compile on old distros
Ovidiu Sas [Fri, 3 Jun 2011 17:43:32 +0000 (13:43 -0400)]
modules_k/htable: include stddef.h to let sip-router compile on old distros

9 years agomodules_k/dispatcher: include stddef.h to let sip-router compile on old distros
Ovidiu Sas [Fri, 3 Jun 2011 17:31:35 +0000 (13:31 -0400)]
modules_k/dispatcher: include stddef.h to let sip-router compile on old distros

9 years agocore: include stddef.h to let sip-router compile on old distros
Ovidiu Sas [Fri, 3 Jun 2011 17:02:00 +0000 (13:02 -0400)]
core: include stddef.h to let sip-router compile on old distros

9 years agoMerge branch 'tteras/db_sqlite'
Timo Teräs [Fri, 3 Jun 2011 15:31:21 +0000 (18:31 +0300)]
Merge branch 'tteras/db_sqlite'

9 years agoimc: fix announcing attepts to join private rooms
Daniel-Constantin Mierla [Fri, 3 Jun 2011 08:25:19 +0000 (10:25 +0200)]
imc: fix announcing attepts to join private rooms

- if an user cannot join a private room, the announcement was wrong,
  using invalid structure
- reported by Ozren Lapcevic

9 years agoimc: keep db handle open for main process
Daniel-Constantin Mierla [Wed, 1 Jun 2011 10:36:09 +0000 (12:36 +0200)]
imc: keep db handle open for main process

- the module sync's back to database at shutdown
- dicovered based on an email by Ozren Lapcevic

9 years agoipops: use INET6_ADDRSTRLEN constant for IPv4/IPv6 maximun size.
Iñaki Baz Castillo [Tue, 31 May 2011 23:30:03 +0000 (01:30 +0200)]
ipops: use INET6_ADDRSTRLEN constant for IPv4/IPv6 maximun size.

9 years agocore: added new preprocessor directive: substdef
Daniel-Constantin Mierla [Mon, 30 May 2011 21:57:18 +0000 (23:57 +0200)]
core: added new preprocessor directive: substdef

- prototype
  !!substdef '/regexp/replacement/flags'
- separator char '/' can be replaced with any other character to avoid
  conflicts
- it adds a preprocessor substitution like '!!subst' and in addition
  defines the regexp to replacement, like
  !!define regexp replacement
- useful when you need to replace tokens present as ID and inside string
  values

9 years agocore: updated man page
Daniel-Constantin Mierla [Mon, 30 May 2011 21:03:42 +0000 (23:03 +0200)]
core: updated man page

9 years agokamialio.cfg: sample usage of speed dialing
Daniel-Constantin Mierla [Mon, 30 May 2011 12:20:39 +0000 (14:20 +0200)]
kamialio.cfg: sample usage of speed dialing

- can be enabled by define WITH_SPEEDDIAL