sip-router
8 years agocore: make method conditions work on reply routes
Daniel-Constantin Mierla [Thu, 6 Oct 2011 15:47:38 +0000 (17:47 +0200)]
core: make method conditions work on reply routes

- reported by Alex Hermann, closes FS#164

8 years agotextopsx: copy msg->hash_index in msg_apply_changes()
Daniel-Constantin Mierla [Wed, 5 Oct 2011 23:02:11 +0000 (01:02 +0200)]
textopsx: copy msg->hash_index in msg_apply_changes()

- patch by Hugh Waite

8 years agodialog(k): reset global dlg shortcut when destroying the structure
Daniel-Constantin Mierla [Tue, 4 Oct 2011 20:34:35 +0000 (22:34 +0200)]
dialog(k): reset global dlg shortcut when destroying the structure

8 years ago- In active probing mode (ds_probing_mode=1) disable gateways not only on "408" but...
Carsten Bock [Tue, 4 Oct 2011 15:14:44 +0000 (17:14 +0200)]
- In active probing mode (ds_probing_mode=1) disable gateways not only on "408" but also on any non-successful reply (as per ds_reply_codes)
(e.g. SEMS replies with "503" when in shutdown mode)

8 years agocore: some adjustments to two debug messages
Daniel-Constantin Mierla [Mon, 3 Oct 2011 21:51:16 +0000 (23:51 +0200)]
core: some adjustments to two debug messages

8 years agodb_text(k): init new db text table structure to 0
Daniel-Constantin Mierla [Mon, 3 Oct 2011 15:33:21 +0000 (17:33 +0200)]
db_text(k): init new db text table structure to 0

- can cause a crash when reloading, reported by Bruno Bresciani

8 years agomi_xmlrcp: Update dependency in doc.
Jon Bonilla [Sun, 2 Oct 2011 21:42:00 +0000 (23:42 +0200)]
mi_xmlrcp: Update dependency in doc.

Acording to the Makefile, libxmlrpc-c3 versions 0.9.10
and 1.06.10-1.06.30 are supported.
Build against version 1.16 fails at the moment.

8 years agopkg/debian: Add Wheezy build folder
Jon Bonilla [Sun, 2 Oct 2011 20:15:28 +0000 (22:15 +0200)]
pkg/debian: Add Wheezy build folder

Include a "debian" folder for building kamailio
in Debian Wheezy

8 years agojsonrpc: Fix dependency in doc
Jon Bonilla [Sun, 2 Oct 2011 20:07:00 +0000 (22:07 +0200)]
jsonrpc: Fix dependency in doc

Added libevent as dependency for jsonrpc module

8 years agopkg/debian Add libevent as dependency for jsonrpc module
Jon Bonilla [Sun, 2 Oct 2011 20:01:42 +0000 (22:01 +0200)]
pkg/debian Add libevent as dependency for jsonrpc module

8 years agoiptrtpproxy: docbook parts split to functions.xml and params.xml
Daniel-Constantin Mierla [Sun, 2 Oct 2011 12:21:44 +0000 (14:21 +0200)]
iptrtpproxy: docbook parts split to functions.xml and params.xml

8 years agoauth_identity: parts of docbook split to functions and params.xml
Daniel-Constantin Mierla [Sun, 2 Oct 2011 12:05:48 +0000 (14:05 +0200)]
auth_identity: parts of docbook split to functions and params.xml

8 years agoapp_lua: test for lua5.1 with pkg-config
Daniel-Constantin Mierla [Sun, 2 Oct 2011 11:38:17 +0000 (13:38 +0200)]
app_lua: test for lua5.1 with pkg-config

- the lua lib name for pkg-config can be lua5.1 on some distros
- reported and troubleshooting by Jon Bonilla, affecting Debian Wheezy

8 years agomodules*: regenerated readmes
Daniel-Constantin Mierla [Sun, 2 Oct 2011 08:53:35 +0000 (10:53 +0200)]
modules*: regenerated readmes

8 years agoMakefile: version set to 3.2.0-pre4
Daniel-Constantin Mierla [Sun, 2 Oct 2011 08:49:04 +0000 (10:49 +0200)]
Makefile: version set to 3.2.0-pre4

8 years agoosp(s): updated name of docbook file to follow common pattern
Daniel-Constantin Mierla [Sun, 2 Oct 2011 08:47:35 +0000 (10:47 +0200)]
osp(s): updated name of docbook file to follow common pattern

8 years agodocbook: consitent titles of main section
Daniel-Constantin Mierla [Sun, 2 Oct 2011 08:42:27 +0000 (10:42 +0200)]
docbook: consitent titles of main section

- updated various forms of titles to: Functions, Modules, MI Commands

8 years agoprivacy: removed incomple module residing in for long time
Daniel-Constantin Mierla [Sat, 1 Oct 2011 20:30:23 +0000 (22:30 +0200)]
privacy: removed incomple module residing in for long time

8 years agopkg/debian: Add Json modules and package
Jon Bonilla [Sun, 2 Oct 2011 06:38:49 +0000 (08:38 +0200)]
pkg/debian: Add Json modules and package

8 years agoMakefile: Do not exclude modules without external depends
Jon Bonilla [Sun, 2 Oct 2011 06:23:17 +0000 (08:23 +0200)]
Makefile: Do not exclude modules without external depends

8 years agoMakefile: Add dmq to K modules standard
Jon Bonilla [Sun, 2 Oct 2011 06:20:00 +0000 (08:20 +0200)]
Makefile: Add dmq to K modules standard

8 years agopkg/debian: Add sqlite module and package
Jon Bonilla [Sun, 2 Oct 2011 06:12:09 +0000 (08:12 +0200)]
pkg/debian: Add sqlite module and package

Add db_sqlite k_module package.
Also fix ndb_redis packaging

8 years agoMakefile: Add async module
Jon Bonilla [Sun, 2 Oct 2011 05:54:01 +0000 (07:54 +0200)]
Makefile: Add async module

8 years agondb_redis: Add to Makefile and kamailio/debian packaging
Jon Bonilla [Sun, 2 Oct 2011 05:44:39 +0000 (07:44 +0200)]
ndb_redis: Add to Makefile and kamailio/debian packaging

8 years agotm: some restructuring to docbook for better ToC
Daniel-Constantin Mierla [Sat, 1 Oct 2011 20:01:33 +0000 (22:01 +0200)]
tm: some restructuring to docbook for better ToC

8 years agomodules dockbook: a bit of restructuring for better ToC
Daniel-Constantin Mierla [Sat, 1 Oct 2011 11:54:38 +0000 (13:54 +0200)]
modules dockbook: a bit of restructuring for better ToC

8 years agocfg_db: added docbook params.xml file
Daniel-Constantin Mierla [Sat, 1 Oct 2011 09:37:28 +0000 (11:37 +0200)]
cfg_db: added docbook params.xml file

8 years agojsonrpc-c: renamed docbook files to match module name
Daniel-Constantin Mierla [Sat, 1 Oct 2011 09:07:01 +0000 (11:07 +0200)]
jsonrpc-c: renamed docbook files to match module name

8 years agopipelimit: small reformating of parm presentation
Daniel-Constantin Mierla [Sat, 1 Oct 2011 08:59:52 +0000 (10:59 +0200)]
pipelimit: small reformating of parm presentation

- avoid syntax conflict between txt result and dokuwiki link when
  generating indexes

8 years agoauth_identity: added section id in docbook and common xml tag
Daniel-Constantin Mierla [Sat, 1 Oct 2011 08:57:39 +0000 (10:57 +0200)]
auth_identity: added section id in docbook and common xml tag

8 years agoiptrtpproxy: selects are now a different section than cfg functions
Daniel-Constantin Mierla [Sat, 1 Oct 2011 08:55:33 +0000 (10:55 +0200)]
iptrtpproxy: selects are now a different section than cfg functions

- docbook updated with proper category for exported selects

8 years agodrouting, call_control: updates to docbook files
Daniel-Constantin Mierla [Sat, 1 Oct 2011 08:36:45 +0000 (10:36 +0200)]
drouting, call_control: updates to docbook files

- use <xi:include .../>

8 years agop_usrloc: updates to docbook files
Daniel-Constantin Mierla [Sat, 1 Oct 2011 08:16:00 +0000 (10:16 +0200)]
p_usrloc: updates to docbook files

- renamed *_user to *_admin file to match the general pattern
- use <xi:include ...> to include the files

8 years agomodules:sipcapture: fixed mirroring capture mode. Currently it works only on Linux.
Alexandr Dubovikov [Fri, 30 Sep 2011 18:44:04 +0000 (20:44 +0200)]
modules:sipcapture: fixed mirroring capture mode. Currently it works only on Linux.

8 years agoxmlrpc: redeclaration of v/snprintf() conditioned by OS type
Daniel-Constantin Mierla [Fri, 30 Sep 2011 12:02:47 +0000 (14:02 +0200)]
xmlrpc: redeclaration of v/snprintf() conditioned by OS type

8 years agolib/kmi, mi_*: better handling of mi child init
Daniel-Constantin Mierla [Fri, 30 Sep 2011 11:58:16 +0000 (13:58 +0200)]
lib/kmi, mi_*: better handling of mi child init

8 years agolib/kmi: safety re-entrant call of init_mi_child()
Daniel-Constantin Mierla [Fri, 30 Sep 2011 11:29:15 +0000 (13:29 +0200)]
lib/kmi: safety re-entrant call of init_mi_child()

- otherwise can get to a loop of trying, reported by Juha Heinanen

8 years agolib/kmi: turned a debug log in error
Daniel-Constantin Mierla [Fri, 30 Sep 2011 11:17:48 +0000 (13:17 +0200)]
lib/kmi: turned a debug log in error

8 years agomodules:sipcapture: ETHHDR moved from .h to .c, changed method check in kamailio.cfg
Alexandr Dubovikov [Fri, 30 Sep 2011 09:37:35 +0000 (11:37 +0200)]
modules:sipcapture: ETHHDR moved from .h to .c, changed method check in kamailio.cfg

8 years agomodules_k/sqlops: use signed int to string conversion for sql.val transformation
Alex Hermann [Thu, 29 Sep 2011 11:03:47 +0000 (13:03 +0200)]
modules_k/sqlops: use signed int to string conversion for sql.val transformation

integer variables in kamailio are signed by default, conversion to string should be signed also.

8 years agomodules:sipcapture: fixed rotation scripts (maxvalue) and SQL schema.
Alexandr Dubovikov [Thu, 29 Sep 2011 13:03:46 +0000 (15:03 +0200)]
modules:sipcapture: fixed rotation scripts (maxvalue) and SQL schema.

      Thanks Dorn B. <djbinter@gmail.com> for reports and fixes.

8 years agomodules:sipcapture: fixed mirroring mode, added BPF functionality.
Alexandr Dubovikov [Thu, 29 Sep 2011 12:26:45 +0000 (14:26 +0200)]
modules:sipcapture: fixed mirroring mode, added BPF functionality.

8 years agocore: init_child(1) for no-fork mode replaced with init_child(PROC_SIPINIT)
Daniel-Constantin Mierla [Thu, 29 Sep 2011 08:25:16 +0000 (10:25 +0200)]
core: init_child(1) for no-fork mode replaced with init_child(PROC_SIPINIT)

- use the defined proc rank instead if its integer value

8 years agousrloc(k): use PROC_SIPINIT instead of rank 1 in child_init
Daniel-Constantin Mierla [Thu, 29 Sep 2011 08:23:23 +0000 (10:23 +0200)]
usrloc(k): use PROC_SIPINIT instead of rank 1 in child_init

- this child is used to load the records from db

8 years agocore: added defines for positive child ranks
Daniel-Constantin Mierla [Thu, 29 Sep 2011 08:18:01 +0000 (10:18 +0200)]
core: added defines for positive child ranks

- PROC_SIPINIT 1 - some modules do specific processing in this child
  only, like usrloc loading records from db
- PROC_SIPRPC 127 - special positive rank to use in RPC workers to init
  the environment for processing SIP-specific commands. For example,
  event_route[tm:local-request] can be executed due to MI/RPC command
  and have insite SIP related functions from other modules which need db
  connection, like acc_db_request()

8 years agolib/kmi: init MI workers for SIP commands when needed
Daniel-Constantin Mierla [Thu, 29 Sep 2011 08:14:32 +0000 (10:14 +0200)]
lib/kmi: init MI workers for SIP commands when needed

8 years agotm: advertise child rpc-sip mode when using event_route[tm:local-request]
Daniel-Constantin Mierla [Thu, 29 Sep 2011 07:33:01 +0000 (09:33 +0200)]
tm: advertise child rpc-sip mode when using event_route[tm:local-request]

- the event route can be executed for MI/RPC commands that send
  requests, thus there are sip routing specific functions that work when
  child init for sip workers is executed for that process
- example, calling acc_db_request() requires db connection to be open

8 years agoxmlrpc: updated the way of setting child sip-rpc mode
Daniel-Constantin Mierla [Wed, 28 Sep 2011 21:56:07 +0000 (23:56 +0200)]
xmlrpc: updated the way of setting child sip-rpc mode

8 years agocore: allow to specify that rpc worker may handle sip commands
Daniel-Constantin Mierla [Wed, 28 Sep 2011 21:52:49 +0000 (23:52 +0200)]
core: allow to specify that rpc worker may handle sip commands

- a sip child process can handle rpc (e.g., xmlops module) and a rpc
  child process can handle sip commands (e.g., mi cmd to end dlg and
  event_route[tm:local-request])

8 years agomi_rpc: call init mi child based on core advertising of handling rpc commands
Daniel-Constantin Mierla [Wed, 28 Sep 2011 21:04:02 +0000 (23:04 +0200)]
mi_rpc: call init mi child based on core advertising of handling rpc commands

- update of the way to prepare sip workers to execute mi commands via rpc

8 years agoxmlrpc: advertise to core that sip workers handle rpc commands
Daniel-Constantin Mierla [Wed, 28 Sep 2011 20:53:48 +0000 (22:53 +0200)]
xmlrpc: advertise to core that sip workers handle rpc commands

8 years agoxmlrpc: removed redeclaration of v/snprintf()
Daniel-Constantin Mierla [Wed, 28 Sep 2011 20:48:23 +0000 (22:48 +0200)]
xmlrpc: removed redeclaration of v/snprintf()

- otherwise throws error on mac os x when redeclaring functions from stdio.h

8 years agocore: added possibility to know if SIP workers handle RPC commands
Daniel-Constantin Mierla [Wed, 28 Sep 2011 20:18:53 +0000 (22:18 +0200)]
core: added possibility to know if SIP workers handle RPC commands

- for example when using xmlrpc module, the rpc commands are handled by
  sip workers and may require special sip child initialization

8 years agodialog(k): Do not consider late requests for dialogs in "deleted"
Timo Reimann [Wed, 28 Sep 2011 18:04:36 +0000 (20:04 +0200)]
dialog(k): Do not consider late requests for dialogs in "deleted"
state as bogus messages.

8 years agoFix previous commit e5a5344290a351344c2451017d1d5677fe649cb8
Jon Bonilla [Wed, 28 Sep 2011 15:19:14 +0000 (17:19 +0200)]
Fix previous commit e5a5344290a351344c2451017d1d5677fe649cb8

Thanks to Andrew Pogrebennyk

8 years agondb_redis: fix parsing of integer arguments from server connect string
Jon Bonilla [Wed, 28 Sep 2011 15:16:34 +0000 (17:16 +0200)]
ndb_redis: fix parsing of integer arguments from server connect string

Reported and patch contributed by Andrew Pogrebennyk

8 years agocore: parser/sdp - optimized a= lines parsing
Daniel-Constantin Mierla [Wed, 28 Sep 2011 14:02:02 +0000 (16:02 +0200)]
core: parser/sdp - optimized a= lines parsing

- search for next a= line from the last parsed position in previous a=
  line

8 years agocore: parser/sdp - fixed parsing attributes lines
Daniel-Constantin Mierla [Wed, 28 Sep 2011 13:48:02 +0000 (15:48 +0200)]
core: parser/sdp - fixed parsing attributes lines

- some lines were mistakenly jumped over

8 years agocore: parser/sdp - refactored extract_mediaip()
Daniel-Constantin Mierla [Wed, 28 Sep 2011 12:45:53 +0000 (14:45 +0200)]
core: parser/sdp - refactored extract_mediaip()

- added ser_memrmem(...) for reverse search of a str in another str
- use it to locate IP address in o= and c= lines
- this closes also FS#160 reported by Juha Heinanen

8 years agoMakefile: version set to 3.2.0-pre3
Daniel-Constantin Mierla [Tue, 27 Sep 2011 16:09:41 +0000 (18:09 +0200)]
Makefile: version set to 3.2.0-pre3

8 years agocore: added extra debug messages when cfg command is not found
Daniel-Constantin Mierla [Tue, 27 Sep 2011 16:09:13 +0000 (18:09 +0200)]
core: added extra debug messages when cfg command is not found

8 years agopike(k): add parameter unit, reported from dirtytoni at gmx dot de
Henning Westerholt [Tue, 27 Sep 2011 08:02:50 +0000 (10:02 +0200)]
pike(k): add parameter unit, reported from dirtytoni at gmx dot de

8 years agodb_mysql: use variable $(MAKE) to call make command
Daniel-Constantin Mierla [Mon, 26 Sep 2011 20:46:16 +0000 (22:46 +0200)]
db_mysql: use variable $(MAKE) to call make command

8 years agosrdb1: make strptime available on freebsd
Daniel-Constantin Mierla [Mon, 26 Sep 2011 20:44:49 +0000 (22:44 +0200)]
srdb1: make strptime available on freebsd

- remove unnecessary compile flags from db_ut.h

8 years agokamailio.cfg: version set to 3.2 in top comments
Daniel-Constantin Mierla [Mon, 26 Sep 2011 10:17:04 +0000 (12:17 +0200)]
kamailio.cfg: version set to 3.2 in top comments

8 years ago- added sipcapture at a second place (was missing)
Carsten Bock [Sun, 25 Sep 2011 19:53:13 +0000 (21:53 +0200)]
- added sipcapture at a second place (was missing)

8 years ago- Added sipcapture to the default module-list
Carsten Bock [Sun, 25 Sep 2011 18:50:36 +0000 (20:50 +0200)]
- Added sipcapture to the default module-list

8 years agokamailio.cfg: check if uri is still myself after aliases and speed dial
Daniel-Constantin Mierla [Sat, 24 Sep 2011 08:49:22 +0000 (10:49 +0200)]
kamailio.cfg: check if uri is still myself after aliases and speed dial

- new uri can point to other voip domains
- set tcp connection lifetime and max expires registrations to cope with
  UA behind NAT using TCP

8 years agotmx: $T(reply_type) to solve ambiguity of received or local replies
Daniel-Constantin Mierla [Fri, 23 Sep 2011 20:08:23 +0000 (22:08 +0200)]
tmx: $T(reply_type) to solve ambiguity of received or local replies

- it returns 1 in failure route if the reply was local generated (e.g.,
  timeout), otherwise is 0. If there is no transaction, it returns null.
- helps to avoid using $T_rpl(pv) in case of local replies, which returns
  null for any pv, without it is no way to detect if some pv is null value
  itself or the whole reply is not available

8 years agoacc: enable TM failure callback for missed calls when acc_prepare_flag is set
Daniel-Constantin Mierla [Fri, 23 Sep 2011 19:48:46 +0000 (21:48 +0200)]
acc: enable TM failure callback for missed calls when acc_prepare_flag is set

- allow recording missed calls even the flag for it is set first time in
  TM-specific routes
- reported by Ozren Lapcevic

8 years agoacc: documented new parameter acc_prepare_flag
Daniel-Constantin Mierla [Fri, 23 Sep 2011 10:52:10 +0000 (12:52 +0200)]
acc: documented new parameter acc_prepare_flag

8 years agoacc: added acc_prepare_flag parameter
Daniel-Constantin Mierla [Fri, 23 Sep 2011 10:42:22 +0000 (12:42 +0200)]
acc: added acc_prepare_flag parameter

- useful to tell to acc module to prepare the request for later
  accounting, in case the acc or missed call flag is not set in request
  route block at all. Otherwise there will be no accounting if the acc
  flags are set for first time in TM routes (e.g., like failure_route)
- dicovered in a discussion with Ozren Lapcevic

8 years agosiptrace: track outgoing CANCEL requests
Daniel-Constantin Mierla [Fri, 23 Sep 2011 09:46:20 +0000 (11:46 +0200)]
siptrace: track outgoing CANCEL requests

- use associated INVITE transaction to check the siptrace flag state
- reported by Timo Klecker

8 years agodoxygen: a bunch of doxygen fixes in dialog module
Henning Westerholt [Wed, 21 Sep 2011 21:54:31 +0000 (23:54 +0200)]
doxygen: a bunch of doxygen fixes in dialog module

8 years agomodules_k/presence: fix typo and improved error message
Juha Heinanen [Wed, 21 Sep 2011 18:33:58 +0000 (21:33 +0300)]
modules_k/presence:  fix typo and improved error message
- Fixed typo and improved error message on missing/unsupported event
  header field.

8 years agosrdb1: return error code when DB URL is too long
Daniel-Constantin Mierla [Tue, 20 Sep 2011 18:21:55 +0000 (20:21 +0200)]
srdb1: return error code when DB URL is too long

8 years agopv/presence/pua: add a couple of missing free_to_params
Daniel-Constantin Mierla [Tue, 20 Sep 2011 18:08:16 +0000 (20:08 +0200)]
pv/presence/pua: add a couple of missing free_to_params

- patch by Walter Doekes, closes FS#156

8 years agolib/srdb1: fix conversion of longlong to string in db_val2pv_spec()
Alex Hermann [Tue, 20 Sep 2011 15:51:33 +0000 (17:51 +0200)]
lib/srdb1: fix conversion of longlong to string in db_val2pv_spec()

The length of the buffer was not set, resulting in random failures.

8 years agomodules_k/nathelper: fix_nated_sdp("1") fix
Juha Heinanen [Tue, 20 Sep 2011 06:46:53 +0000 (09:46 +0300)]
modules_k/nathelper: fix_nated_sdp("1") fix

- Call fix_nated_sdp("1") now adds a=direction:active line after every
  m line in sdp.  Earlier it just added one a=direction:active line at
  the end of body.

8 years agopkg: name fixes and cleanups, Patch from Claudio Furrer, elcaio at gmail dot com
Henning Westerholt [Mon, 19 Sep 2011 11:47:22 +0000 (13:47 +0200)]
pkg: name fixes and cleanups, Patch from Claudio Furrer, elcaio at gmail dot com

8 years agoparser: switch pkg_free(tob) to free_to(tob) to free To header structure
Daniel-Constantin Mierla [Mon, 19 Sep 2011 11:29:44 +0000 (13:29 +0200)]
parser: switch pkg_free(tob) to free_to(tob) to free To header structure

- this takes care of freeing parameters in case of paring error of
  To-like headers
- patch by Walter Doekes, closes FS#155

8 years agocfg framework: fix the freeing of the replaced strings
Miklos Tirpak [Thu, 15 Sep 2011 15:05:36 +0000 (17:05 +0200)]
cfg framework: fix the freeing of the replaced strings

The replaced strings and the memory block of the replaced
group instances cannot be freed when the old configuration
block is freed. There might be a child process using an even older
configuration that references to the same string value or to the same
group instance that is beeing replaced. Hence, as long as there
is any child process with an older configuration, the replaced
strings cannot be freed.

The fix is to link the replaced strings to the per-child process
callback list instead of the old cfg block. When the last child process
updates its configuration, it also frees the old string values.

8 years agoFix typo in acc_cdr
Sven Knoblich [Thu, 15 Sep 2011 08:22:07 +0000 (10:22 +0200)]
Fix typo in acc_cdr

- rename dot_adress into dot_address

8 years agotm: proper data type for xavp in tm_xdata_t struct
Daniel-Constantin Mierla [Wed, 14 Sep 2011 18:59:54 +0000 (20:59 +0200)]
tm: proper data type for xavp in tm_xdata_t struct

- reported by Juha Heinanen
- no real effect on branch 3.1 as xavps not enabled, but anyhow safer

8 years agotm: backup X/AVP lists when building new T in t_uac()
Daniel-Constantin Mierla [Wed, 14 Sep 2011 16:39:37 +0000 (18:39 +0200)]
tm: backup X/AVP lists when building new T in t_uac()

- build_cell() is setting core X/AVP lists to new T structure, losing
  the lists that existed in case another T was set already. This is in
  t_uac() which is used for local generated requests, such as
  uac_req_send(), presence notifications, msilo...
- a revious patch was backing up only X/AVPs lists for
  execution of event_route[tm:local-request]
- reported by Vitaliy Aleksandrov

8 years agoFix bug which causes an error during the convertion from string to timeb
Sven Knoblich [Wed, 14 Sep 2011 12:43:32 +0000 (14:43 +0200)]
Fix bug which causes an error during the convertion from string to timeb

- add buffer in time_from_string. copy given string into buffer and finish it with '\0' to use c-string functions correctly.

8 years agorr(k): execute callbacks only for local route uri
Daniel-Constantin Mierla [Wed, 14 Sep 2011 09:19:56 +0000 (11:19 +0200)]
rr(k): execute callbacks only for local route uri

- parameters callback are executed only if there is a list with
  parameters in Route URI and for loose routing the URI has to match
  myself condition
- should fix bogus value of Route URI params in callback function when
  URI of top Route is not myself
- reported by Andreas Granig

8 years agomodules/lcr: added PROTO_OTHER case to which in order to get rid of warning
Juha Heinanen [Wed, 14 Sep 2011 07:16:01 +0000 (10:16 +0300)]
modules/lcr: added PROTO_OTHER case to which in order to get rid of warning

8 years agomodules/utils: updated xcap table version to match schema
Juha Heinanen [Wed, 14 Sep 2011 06:49:30 +0000 (09:49 +0300)]
modules/utils: updated xcap table version to match schema

8 years ago[core] Bug fixed in Via parser when \r or \n after Via transport.
Iñaki Baz Castillo [Tue, 13 Sep 2011 22:03:24 +0000 (00:03 +0200)]
[core] Bug fixed in Via parser when \r or \n after Via transport.

8 years agocore: Via parser now allows any token as Via transport field.
Iñaki Baz Castillo [Tue, 13 Sep 2011 21:59:25 +0000 (23:59 +0200)]
core: Via parser now allows any token as Via transport field.

8 years agoxcap_server: check xml document validity for db interaction
Daniel-Constantin Mierla [Tue, 13 Sep 2011 16:56:54 +0000 (18:56 +0200)]
xcap_server: check xml document validity for db interaction

- check if xcap doc is xml valid before inserting in db as well as when
  retrieving from db
- better safety check for retrieval of etag value from database record
- reported and intial patch by Laura Testi

8 years agokamctl: added mtrees tables for dbtext and berkeley db
Daniel-Constantin Mierla [Tue, 13 Sep 2011 09:54:28 +0000 (11:54 +0200)]
kamctl: added mtrees tables for dbtext and berkeley db

8 years agoutils: removed invalid lib path from Makefile
Daniel-Constantin Mierla [Tue, 13 Sep 2011 09:53:44 +0000 (11:53 +0200)]
utils: removed invalid lib path from Makefile

8 years agoutils: is_int() function moved to pv module
Daniel-Constantin Mierla [Tue, 13 Sep 2011 09:52:57 +0000 (11:52 +0200)]
utils: is_int() function moved to pv module

8 years agopv: moved in is_int() from utils module
Daniel-Constantin Mierla [Tue, 13 Sep 2011 09:48:49 +0000 (11:48 +0200)]
pv: moved in is_int() from utils module

- function added by Juha Heinanen in utils module but works on
  pseudo-variables, thus is here is a more appropriate place

8 years agotextops(k): cleanup of route types for exported functions
Daniel-Constantin Mierla [Tue, 13 Sep 2011 09:02:21 +0000 (11:02 +0200)]
textops(k): cleanup of route types for exported functions

- convert to ANY_ROUTE the long list of all route types
- removed non-existing anymore route types

8 years agodoxygen: fix a bunch of errors in parser, db_mysql and xmlrpc modules
Henning Westerholt [Mon, 12 Sep 2011 19:29:26 +0000 (21:29 +0200)]
doxygen: fix a bunch of errors in parser, db_mysql and xmlrpc modules

8 years agomodules/auth: mark credentials after verifying realm, not only after authentication...
Alex Hermann [Mon, 12 Sep 2011 09:25:26 +0000 (11:25 +0200)]
modules/auth: mark credentials after verifying realm, not only after authentication succeeded

Make $Au backwards compatible with 1.x. In 1.x $Au would be set to the credentials
username@domain for matching realm, not only for successfull authentication.

8 years agolib/srdb1: eleminate string copy in db_val2pv_spec()
Alex Hermann [Tue, 6 Sep 2011 08:18:10 +0000 (10:18 +0200)]
lib/srdb1: eleminate string copy in db_val2pv_spec()

After fixing a memory leak, i now realize pv_set_spec_value() always makes
a string copy too, so this one can be removed safely.