sip-router
9 years agogeoip: also include URL in docs
Henning Westerholt [Mon, 16 May 2011 16:21:09 +0000 (18:21 +0200)]
geoip: also include URL in docs

9 years agogeoip: extend docs after discussion with Francesco Castellano
Henning Westerholt [Mon, 16 May 2011 13:48:53 +0000 (15:48 +0200)]
geoip: extend docs after discussion with Francesco Castellano

9 years agotm: add warning about t_newtran behaviour (pointed out from Iñaki
Henning Westerholt [Mon, 16 May 2011 13:22:15 +0000 (15:22 +0200)]
tm: add warning about t_newtran behaviour (pointed out from Iñaki

9 years agoxcap_client: removed invalid 'include' in lib path
Daniel-Constantin Mierla [Sat, 14 May 2011 08:45:35 +0000 (10:45 +0200)]
xcap_client: removed invalid 'include' in lib path

9 years agoxcap_server: added oma user-profile and pres-content (avatar) support
Daniel-Constantin Mierla [Sat, 14 May 2011 08:44:05 +0000 (10:44 +0200)]
xcap_server: added oma user-profile and pres-content (avatar) support

- patch by Peter Dunkley

9 years agoxcap_client: defined internal types for USER_PROFILE and PRES_CONTENT
Daniel-Constantin Mierla [Sat, 14 May 2011 08:42:40 +0000 (10:42 +0200)]
xcap_client: defined internal types for USER_PROFILE and PRES_CONTENT

- part of patch by Peter Dunkley

9 years agolib/srdb1/schema/lcr_gw.xml: updated table index
Juha Heinanen [Sat, 14 May 2011 08:24:11 +0000 (11:24 +0300)]
lib/srdb1/schema/lcr_gw.xml:  updated table index
- lcr gw lcr_id, ip_addr, port, hostname do not need to be unique

9 years agomodules/carrieroute: fixed a bug in carrieroute
Marius Bucur [Wed, 11 May 2011 10:43:08 +0000 (13:43 +0300)]
modules/carrieroute: fixed a bug in carrieroute

the bug caused carrieroute to crash when an invalid SIP message is received (e.g. with no callid)

9 years agomodules_k/siputils: added set_uri_host script function
Juha Heinanen [Tue, 10 May 2011 06:50:14 +0000 (09:50 +0300)]
modules_k/siputils: added set_uri_host script function

9 years agopkg: deb lib dir name is set by variable LIBDIR
Daniel-Constantin Mierla [Fri, 6 May 2011 04:42:51 +0000 (06:42 +0200)]
pkg: deb lib dir name is set by variable LIBDIR

- fixes the check for duplicate libs to variants of deb distros
- reported in FS#130 and FS#128

9 years agopkg: lib dir name is set by variable LIBDIR
Daniel-Constantin Mierla [Fri, 6 May 2011 03:42:21 +0000 (05:42 +0200)]
pkg: lib dir name is set by variable LIBDIR

- fixes the check for duplicate libs
- reported in FS#130 and FS#128

9 years agotcp: fix send2child() error case
Andrei Pelinescu-Onciul [Wed, 4 May 2011 22:43:48 +0000 (00:43 +0200)]
tcp: fix send2child() error case

If send2child() fails don't decrement the refcnt if the connection
was already removed from the hash due to some other previous
error (very unlikely, but possible).

9 years agotcp: fix tcp_*_destroy() bug case
Andrei Pelinescu-Onciul [Wed, 4 May 2011 22:35:31 +0000 (00:35 +0200)]
tcp: fix tcp_*_destroy() bug case

Mark unhashed connections in the "bug" code path to avoid
attempting to remove them twice.

9 years agotcp: fix multiple hash removal attempts
Andrei Pelinescu-Onciul [Wed, 4 May 2011 22:13:36 +0000 (00:13 +0200)]
tcp: fix multiple hash removal attempts

In some corner cases (pending new tcp connection created in async
mode, other processes try to append data to it but fail and the
initial send fails after that) it was possible to attempt removing
the connection from the hash and the local timer multiple times.

9 years agotm: allow t_on_reply() in branch_route
Daniel-Constantin Mierla [Wed, 4 May 2011 17:25:36 +0000 (19:25 +0200)]
tm: allow t_on_reply() in branch_route

- same for t_on_failure()
- reported by Sebastian Damm

9 years agosdpops: added sdpops_remove_codecs_by_name(list)
Daniel-Constantin Mierla [Sun, 1 May 2011 15:36:38 +0000 (17:36 +0200)]
sdpops: added sdpops_remove_codecs_by_name(list)

- it takes as parameter a csv list with codec names
- works for now with codecs that have ID assigned by IANA, the rest will
  follow

9 years agohtable: readme was regenerated
Daniel-Constantin Mierla [Sun, 1 May 2011 13:11:34 +0000 (15:11 +0200)]
htable: readme was regenerated

9 years agohtable: added missing PVs to short listing in the docs
Daniel-Constantin Mierla [Sat, 30 Apr 2011 17:54:46 +0000 (19:54 +0200)]
htable: added missing PVs to short listing in the docs

9 years agohtable: added two new PVs
Daniel-Constantin Mierla [Sat, 30 Apr 2011 17:50:32 +0000 (19:50 +0200)]
htable: added two new PVs

- $shtinc(htable=>key) - add atomically 1 to the value of the item
- $shtdec(htable=>key) - decrement atomically 1 to the value of the item
- both return the new value of the item
- they work only with items having iteger values

9 years agohtable: documented the new 'initval' attribute for htable parameter
Daniel-Constantin Mierla [Sat, 30 Apr 2011 17:13:09 +0000 (19:13 +0200)]
htable: documented the new 'initval' attribute for htable parameter

9 years agohtable: new attribute 'initval' to hash table definition
Daniel-Constantin Mierla [Sat, 30 Apr 2011 17:06:21 +0000 (19:06 +0200)]
htable: new attribute 'initval' to hash table definition

- initval can set init integer value for hash table keys, meaning that
  if the key is not set, the init value is returned by $sht(htable=>key)
- useful for hash tables holding counters - the value can default to 0,
  avoiding extra check for $null value

9 years agohtable: init tables directly in shm
Daniel-Constantin Mierla [Sat, 30 Apr 2011 10:10:14 +0000 (12:10 +0200)]
htable: init tables directly in shm

- initial developed version didn't have access to shared memory during
  parameter setting, starting with 3.0 shm is initialized before module
  parameter section, thus code was simplified getting rid of the
  temporary clone in pkg
- helper structure and functions to store and parse 'key=>value' strings
  added
- parsing of 'htable' parameter format was simplified reusing the
  parse_params() function

9 years agop_usrloc: casted parameter to int to get rid of compile warning
Daniel-Constantin Mierla [Sat, 30 Apr 2011 08:22:04 +0000 (10:22 +0200)]
p_usrloc: casted parameter to int to get rid of compile warning

9 years agoratelimit: set macro to cast pointers diff to int
Daniel-Constantin Mierla [Sat, 30 Apr 2011 08:21:07 +0000 (10:21 +0200)]
ratelimit: set macro to cast pointers diff to int

9 years agocore: fixed compile warnings on mac os x
Daniel-Constantin Mierla [Sat, 30 Apr 2011 08:20:42 +0000 (10:20 +0200)]
core: fixed compile warnings on mac os x

9 years agop_usrloc: include <time.h> to make compiler happy on mac os x
Daniel-Constantin Mierla [Sat, 30 Apr 2011 07:57:44 +0000 (09:57 +0200)]
p_usrloc: include <time.h> to make compiler happy on mac os x

9 years agopv: fixed compile warning
Daniel-Constantin Mierla [Sat, 30 Apr 2011 07:55:22 +0000 (09:55 +0200)]
pv: fixed compile warning

- solve: dereferencing type-punned pointer will break strict-aliasing rules

9 years ago- ipops module: fix in documentation.
Iñaki Baz Castillo [Sat, 30 Apr 2011 14:15:56 +0000 (16:15 +0200)]
- ipops module: fix in documentation.

9 years agoMakefile: fix gcc 4.5 support for all archs
Andrei Pelinescu-Onciul [Fri, 29 Apr 2011 22:48:12 +0000 (00:48 +0200)]
Makefile: fix gcc 4.5 support for all archs

Commit c925278 split gcc 4.5 support from the generic 4.2+ support,
but it handled gcc 4.5 only for x86_64 (trying to compile on other
architectures with gcc 4.5 resulted in warnings and common gcc
optimization options).

9 years agostun: fix attribute padded length outside the packet case
Andrei Pelinescu-Onciul [Fri, 29 Apr 2011 22:11:02 +0000 (00:11 +0200)]
stun: fix attribute padded length outside the packet case

- check if the attribute padded length points still inside the
  packet (only the un-padded value was checked before)
-  use an integer and not an UINT for the remainder part of the
   packet
- fix padded length computation in copy_str_to_buffer()

Closes: FS#129
Reported-by: Francesco Castellano
9 years agostun: fix padd macros
Andrei Pelinescu-Onciul [Fri, 29 Apr 2011 22:08:11 +0000 (00:08 +0200)]
stun: fix padd macros

The PADDED_TO_* macros did not work when the length was a multiple
of the pad value.
(FS#129)

Reported-by: Francesco Castellano
9 years agotm: recursive hash locks
Andrei Pelinescu-Onciul [Fri, 29 Apr 2011 17:40:36 +0000 (19:40 +0200)]
tm: recursive hash locks

The hash locks are now recursive/re-entrant.
This removes some of the TMCB_REQUEST_IN and TMCB_LOCAL_REQUEST_IN
callback restrictions (like do not create new transactions,
do not  call t_lookup_*()) solving problems like the one
described in
http://lists.sip-router.org/pipermail/sr-users/2011-April/068331.html

9 years agodebian(k): set version to devel 3.2.0
Daniel-Constantin Mierla [Fri, 29 Apr 2011 15:53:34 +0000 (17:53 +0200)]
debian(k): set version to devel 3.2.0

9 years agoMakefile.defs: moved setting of dirs after target ARCH detection
Daniel-Constantin Mierla [Fri, 29 Apr 2011 15:38:29 +0000 (17:38 +0200)]
Makefile.defs: moved setting of dirs after target ARCH detection

- should fix FS#128 - error building deb packages on chroot systems
  reported by Ali Onur Uyar

9 years agosdpops: added mapping table with codecs names and ids
Daniel-Constantin Mierla [Fri, 29 Apr 2011 10:14:42 +0000 (12:14 +0200)]
sdpops: added mapping table with codecs names and ids

9 years agoxmlops: use xml2-config to detect compile flags and libs
Daniel-Constantin Mierla [Fri, 29 Apr 2011 10:01:24 +0000 (12:01 +0200)]
xmlops: use xml2-config to detect compile flags and libs

9 years agoxmlops: removed invalid lib path
Daniel-Constantin Mierla [Fri, 29 Apr 2011 08:23:01 +0000 (10:23 +0200)]
xmlops: removed invalid lib path

9 years ago- new module 'ipops' for operations with IPv4 and IPv6.
Iñaki Baz Castillo [Thu, 28 Apr 2011 14:42:26 +0000 (16:42 +0200)]
- new module 'ipops' for operations with IPv4 and IPv6.

9 years agomodule_k/pv Changed the nameaddr transformation by relaxing the requirements on the...
Marius Zbihlei [Thu, 28 Apr 2011 07:30:55 +0000 (10:30 +0300)]
module_k/pv Changed the nameaddr transformation by relaxing the requirements on the input.

As some headers might be either uri or nameaddr form, using a single transformation for parsing them was
impossible, as nameaddr.uri returns "" on an uri input(e.g. sip:12345@example.com). With this change, the
nameaddr transformation succedes and the resulting transformation places the whole string in the .uri field,
.name field being empty. A transformation chaning like the one below will work as expected on both SIP URIs and
SIP Nameaddr
$(val(test){nameaddr.uri}{uri.domain})

9 years agomodules_k/sqlops Passed by value variable modified in function causes no effects...
Marius Zbihlei [Wed, 27 Apr 2011 13:24:42 +0000 (16:24 +0300)]
modules_k/sqlops Passed by value variable modified in function causes no effects in calling code

Modify instead the value pointed by the pointer.

9 years agomodules_k/htable $shtex(htable=>key) caused a segfault when reading (null pointer...
Marius Zbihlei [Wed, 27 Apr 2011 12:32:18 +0000 (15:32 +0300)]
modules_k/htable $shtex(htable=>key) caused a segfault when reading (null pointer deref)
(cherry picked from commit e506dae55f1c5011fe3b7f05e94ba9f02a13dc8b)

9 years agopresence_conference: changed include order to fix comilation on mac os x
Daniel-Constantin Mierla [Wed, 27 Apr 2011 10:44:16 +0000 (12:44 +0200)]
presence_conference: changed include order to fix comilation on mac os x

9 years agoFixed definitions for presence related tables. Size of callid and contact should...
Marius Zbihlei [Wed, 27 Apr 2011 10:26:13 +0000 (13:26 +0300)]
Fixed definitions for presence related tables. Size of callid and contact should be larger than 64.

9 years agopresence modules: removed invalid lib path
Daniel-Constantin Mierla [Wed, 27 Apr 2011 09:34:48 +0000 (11:34 +0200)]
presence modules: removed invalid lib path

- invalid /usr/include/lib was removed from lib path
- cleaned commented headers

9 years agomodules_k/presence : Fixed a bug caused by an incorrect Macro
Marius Zbihlei [Wed, 27 Apr 2011 09:21:11 +0000 (12:21 +0300)]
modules_k/presence : Fixed a bug caused by an incorrect Macro

the macro expanded to incorrect results when called in statements like
if(cond) COND_COPY(...);

9 years agoutils/kamctl/presence-create.sql Increased size of contact and callid in presence...
Marius Zbihlei [Wed, 27 Apr 2011 08:48:46 +0000 (11:48 +0300)]
utils/kamctl/presence-create.sql Increased size of contact and callid in presence tables

Some CPE (e.g. FritzBox,Samsung) issue larger contacts that 64 chars, thus resulting in a truncation in the
DB backend
(cherry picked from commit ac679cf5093f99931da6aeea4b40c1215e295a4b)

9 years agomodules_k/kex: renamed \91get_stat_val_long\92 to \91get_stat_val\92
Juha Heinanen [Wed, 27 Apr 2011 07:11:44 +0000 (10:11 +0300)]
modules_k/kex: renamed \91get_stat_val_long\92 to \91get_stat_val\92
- I don't know if this is correct fix, but I need to get master that
  starts up.

9 years agorls(k): removed invalid lib path
Daniel-Constantin Mierla [Mon, 25 Apr 2011 11:05:03 +0000 (13:05 +0200)]
rls(k): removed invalid lib path

9 years agokex: added mi cmd clear_statistics
Daniel-Constantin Mierla [Mon, 25 Apr 2011 10:23:46 +0000 (12:23 +0200)]
kex: added mi cmd clear_statistics

- return the values and rested the counters for statistics
- patch by Paul Pankhurst

9 years agorls(k): few fixes
Daniel-Constantin Mierla [Mon, 25 Apr 2011 09:45:12 +0000 (11:45 +0200)]
rls(k): few fixes

- string comparison that fails because sometimes one of the strings
  is '\0' terminated and the other never is.
- fix for when some non-RLS SUBSCRIBEs are not identified as such.
- fix for a small typo in an error diagnostic.
- patch by Peter Dunkley

9 years agomodules_k/pv: Add s.replace transformation.
Alex Hermann [Thu, 24 Mar 2011 13:12:05 +0000 (14:12 +0100)]
modules_k/pv: Add s.replace transformation.

Syntax: {s.replace,<search>,<replace>}
Replaces every occurance of <search> with <replace>. Both parameters may
contain pvars.

9 years agomodules_k/pv: Add s.ftime transformation. Will format the epoch in the pv by the...
Alex Hermann [Fri, 11 Mar 2011 15:52:18 +0000 (16:52 +0100)]
modules_k/pv: Add s.ftime transformation. Will format the epoch in the pv by the format in the parameter. Uses standard strftime formatting.

example: $(TS{s.ftime,%Y-%m-%d %H:%M:%S})

9 years agomodules_k/pv: allow spaces in transformation parameters
Alex Hermann [Fri, 11 Mar 2011 15:51:41 +0000 (16:51 +0100)]
modules_k/pv: allow spaces in transformation parameters

9 years agomodules_k/pv: remove useless loop from transformation parameter parsing.
Alex Hermann [Fri, 11 Mar 2011 15:50:30 +0000 (16:50 +0100)]
modules_k/pv: remove useless loop from transformation parameter parsing.

The while loop at the beginning of the macro already skips over whitespace.

9 years agocore/xavp: Consolidate duplicate code. No changes to public interfaces.
Alex Hermann [Fri, 25 Mar 2011 11:17:46 +0000 (12:17 +0100)]
core/xavp: Consolidate duplicate code. No changes to public interfaces.

9 years agocore/xavps: Fix assignment to indexed subname.
Alex Hermann [Thu, 24 Mar 2011 17:50:23 +0000 (18:50 +0100)]
core/xavps: Fix assignment to indexed subname.

$xavp(name1[idx1]=>name2[idx2])

When idx2 is used, the current value is now replaced instead of ignored.

9 years agomodules_k/sqlops: Add BIGINT support to sql_query()
Alex Hermann [Mon, 14 Mar 2011 13:48:28 +0000 (14:48 +0100)]
modules_k/sqlops: Add BIGINT support to sql_query()

As sqlresult has no support for longlongs, convert the BIGINT to a string value.

9 years agomodules_k/sqlops: Add BIGINT support for sql_xquery()
Alex Hermann [Mon, 14 Mar 2011 13:47:25 +0000 (14:47 +0100)]
modules_k/sqlops: Add BIGINT support for sql_xquery()

xavp's have native support for longlongs so there's no reason not to use it.

9 years agomodules_k/sqlops: sql_query(): make result parameter optional
Alex Hermann [Thu, 10 Mar 2011 14:21:06 +0000 (15:21 +0100)]
modules_k/sqlops: sql_query(): make result parameter optional

No need to specify a result parameter for SQL statements that do not return
a resultset, so make it optional.

9 years agomodules_k/siputils: allow tel2sip call also in branch route
Juha Heinanen [Fri, 22 Apr 2011 10:59:09 +0000 (13:59 +0300)]
modules_k/siputils: allow tel2sip call also in branch route

9 years agomodules_k/siputils: added failure route to wrong function
Juha Heinanen [Fri, 22 Apr 2011 10:09:44 +0000 (13:09 +0300)]
modules_k/siputils: added failure route to wrong function

- Credits to Alex Hermann.

9 years agomodules_k/siputils: allow tel2sip call also in failure route.
Juha Heinanen [Fri, 22 Apr 2011 09:25:26 +0000 (12:25 +0300)]
modules_k/siputils:  allow tel2sip call also in failure route.

9 years agomodules_k/siputils: tel2sip() replaced by tel2sip(uri, hostpart, result)
Juha Heinanen [Fri, 22 Apr 2011 09:18:09 +0000 (12:18 +0300)]
modules_k/siputils: tel2sip() replaced by tel2sip(uri, hostpart, result)

9 years agodomain(k): use server error code for RPC fault reply
Daniel-Constantin Mierla [Mon, 18 Apr 2011 21:26:36 +0000 (23:26 +0200)]
domain(k): use server error code for RPC fault reply

9 years agodispatcher(k): documented the RPC commands
Daniel-Constantin Mierla [Mon, 18 Apr 2011 21:21:49 +0000 (23:21 +0200)]
dispatcher(k): documented the RPC commands

9 years agodispatcher(k): added RPC commands
Daniel-Constantin Mierla [Mon, 18 Apr 2011 21:20:44 +0000 (23:20 +0200)]
dispatcher(k): added RPC commands

- new RPC commands to replace the MI ones

9 years agoMakefile: disable '-mtune' parameter for gcc 4.5 x86_64
Daniel-Constantin Mierla [Mon, 18 Apr 2011 09:40:20 +0000 (11:40 +0200)]
Makefile: disable '-mtune' parameter for gcc 4.5 x86_64

- gcc 4.5 gives error when it has parameter -mtune=x86_64 (this should
  be the default value anyhow) - tested on opensuse 11.4

9 years agodialplan: rpc commands documented
Daniel-Constantin Mierla [Sun, 17 Apr 2011 12:28:00 +0000 (14:28 +0200)]
dialplan: rpc commands documented

9 years agodialplan: added rpc commands
Daniel-Constantin Mierla [Sun, 17 Apr 2011 12:22:31 +0000 (14:22 +0200)]
dialplan: added rpc commands

- dialplan.reload - to reload the records from database
- dialplan.translate - to translate a string using a specific dialplan
  id

9 years agodialplan: cfg functions can be used in ANY_ROUTE
Daniel-Constantin Mierla [Sun, 17 Apr 2011 11:48:14 +0000 (13:48 +0200)]
dialplan: cfg functions can be used in ANY_ROUTE

9 years agodomain(k): readme updated with rpc commands
Daniel-Constantin Mierla [Sat, 16 Apr 2011 21:05:07 +0000 (23:05 +0200)]
domain(k): readme updated with rpc commands

9 years agodomain(k): added rpc commands to reload and dump domains
Daniel-Constantin Mierla [Sat, 16 Apr 2011 21:00:17 +0000 (23:00 +0200)]
domain(k): added rpc commands to reload and dump domains

9 years agohtable: safety check for null db values
Daniel-Constantin Mierla [Sat, 16 Apr 2011 13:21:32 +0000 (15:21 +0200)]
htable: safety check for null db values

- with some db engines the non-null condition might not be enforced,
  resulting in working with null values
- reported by Eric Hiller

9 years agomodules_k/uac: fix from/to restore for small original URI
Timo Teräs [Wed, 6 Apr 2011 06:33:10 +0000 (09:33 +0300)]
modules_k/uac: fix from/to restore for small original URI

Seems that the URI length check is superfluous and fails under
certain conditions. It does not make sense for the URI to have
zero bytes, so just use the first seen zero byte as end marker.

I have a reproducible test case where the restore inserts URI
with multiple zero-bytes to wire. This happens if the original
URI is smaller than the one we rewrote it to using uac_replace_from.

9 years agocore: pkg mem size configurable form the cmd line
Andrei Pelinescu-Onciul [Tue, 12 Apr 2011 19:54:07 +0000 (21:54 +0200)]
core: pkg mem size configurable form the cmd line

The pkg mem size used can be configured by using the "-M"
parameter on the command line, e.g.:
ser -M 8  -f test.cfg # start ser with 8mb of pkg memory
The default remains 4Mb.

9 years agoacc_radius(k): usage flags for acc_rad_request() set to ANY_ROUTE
Daniel-Constantin Mierla [Tue, 12 Apr 2011 08:22:15 +0000 (10:22 +0200)]
acc_radius(k): usage flags for acc_rad_request() set to ANY_ROUTE

- they were forgotten as the main acc module has this type of flags for
  acc request functions

9 years agoacc(k): safety check for empty db_url
Daniel-Constantin Mierla [Tue, 12 Apr 2011 08:19:38 +0000 (10:19 +0200)]
acc(k): safety check for empty db_url

- if db_url is provided as empty string, disable db accounting
- if db_url is not provided, db acc flags are set to -1 instead
  of 0 to avoid conflict with usage in config of flag 0
- reported by Francesco Castellano

9 years agosrdb1: reset prev_token for safer free on error
Daniel-Constantin Mierla [Mon, 11 Apr 2011 21:52:38 +0000 (23:52 +0200)]
srdb1: reset prev_token for safer free on error

- if parse_db_url() fails internally, prev_token can point to same
  memory chunk as one of the db id attributes, causing a double-free

9 years agohandle all cases after auth_api.pre_auth call
Michal Matyska [Mon, 11 Apr 2011 15:20:43 +0000 (10:20 -0500)]
handle all cases after auth_api.pre_auth call

Added cases NO_CREDENTIALS, STALE_NONCE and NONCE_REUSED to the switch.
This prevents segfault after uninitialized var is used in gen_ha1 when
the code continues to check the credentials if there were none.

9 years agomodules/ratelimit Timer was ran at a 1.5 s interval instead of timer_interval, thus...
Marius Zbihlei [Mon, 11 Apr 2011 10:45:10 +0000 (13:45 +0300)]
modules/ratelimit Timer was ran at a 1.5 s interval instead of timer_interval, thus rendering TAILDROP alg unusable

9 years agoxcap_server: use ETag header instead of SIP-ETag
Daniel-Constantin Mierla [Mon, 11 Apr 2011 10:02:23 +0000 (12:02 +0200)]
xcap_server: use ETag header instead of SIP-ETag

- over http the name of header carrying entity tag is ETag
- patch by Peter Dunkley

9 years agoseas(k): enable cfg framework for module's extra process
Daniel-Constantin Mierla [Sun, 10 Apr 2011 10:47:55 +0000 (12:47 +0200)]
seas(k): enable cfg framework for module's extra process

9 years agosnmpstats(k): enable cfg framework for module's extra process
Daniel-Constantin Mierla [Sun, 10 Apr 2011 10:41:11 +0000 (12:41 +0200)]
snmpstats(k): enable cfg framework for module's extra process

9 years agopurple(k): enable cfg framework for module's extra process
Daniel-Constantin Mierla [Sun, 10 Apr 2011 10:34:53 +0000 (12:34 +0200)]
purple(k): enable cfg framework for module's extra process

9 years agoxmpp(k): enable cfg framework for module's extra process
Daniel-Constantin Mierla [Sun, 10 Apr 2011 10:18:44 +0000 (12:18 +0200)]
xmpp(k): enable cfg framework for module's extra process

9 years agouac(k): enable cfg framework for module's extra process
Daniel-Constantin Mierla [Sun, 10 Apr 2011 10:11:07 +0000 (12:11 +0200)]
uac(k): enable cfg framework for module's extra process

9 years agomodule_k/auth_radius: update due to auth api enhancements
Juha Heinanen [Sat, 9 Apr 2011 16:17:52 +0000 (19:17 +0300)]
module_k/auth_radius: update due to auth api enhancements
- Updated script function negative result codes due to recent auth api
  enhancements. See README for new and changed codes.

9 years agomodules_k:siputils Fixed the fixup for ring_insert_callid
Marius Zbihlei [Fri, 8 Apr 2011 13:48:37 +0000 (16:48 +0300)]
modules_k:siputils Fixed the fixup for ring_insert_callid

9 years agonat_traversal: use register_dummy_timers() to handle cfg framework updates
Daniel-Constantin Mierla [Thu, 7 Apr 2011 20:56:46 +0000 (22:56 +0200)]
nat_traversal: use register_dummy_timers() to handle cfg framework updates

9 years agonathelper(k): use register_dummy_timers() to handle cfg framework updates
Daniel-Constantin Mierla [Thu, 7 Apr 2011 20:55:46 +0000 (22:55 +0200)]
nathelper(k): use register_dummy_timers() to handle cfg framework updates

9 years agop_usrloc: use register_dummy_timers() to handle cfg framework updates
Daniel-Constantin Mierla [Thu, 7 Apr 2011 20:54:55 +0000 (22:54 +0200)]
p_usrloc: use register_dummy_timers() to handle cfg framework updates

- the dummy timer is now created in child_init with rank==PROC_INIT

9 years agortimer: use register_dymmy_timers() to handle cfg framework updates
Daniel-Constantin Mierla [Thu, 7 Apr 2011 20:54:15 +0000 (22:54 +0200)]
rtimer: use register_dymmy_timers() to handle cfg framework updates

9 years agocore: wrapper to pre-register new dummy timers
Daniel-Constantin Mierla [Thu, 7 Apr 2011 18:34:18 +0000 (20:34 +0200)]
core: wrapper to pre-register new dummy timers

- register_dummy_timers(no) adds the number of new processes in the
  process table and initializes as well the number of new childres
  to the cfg framework
- fork_dummy_timer() handles now the updates in cfg framework

9 years agomi_xmlrpc: update cfg framework structures in extra MI processes
Daniel-Constantin Mierla [Thu, 7 Apr 2011 17:29:36 +0000 (19:29 +0200)]
mi_xmlrpc: update cfg framework structures in extra MI processes

9 years agomi_datagram: update cfg framework structures in extra MI processes
Daniel-Constantin Mierla [Thu, 7 Apr 2011 17:17:57 +0000 (19:17 +0200)]
mi_datagram: update cfg framework structures in extra MI processes

9 years agomi_fifo: update the config framework structures in fifo process
Daniel-Constantin Mierla [Thu, 7 Apr 2011 17:02:15 +0000 (19:02 +0200)]
mi_fifo: update the config framework structures in fifo process

- the extra process created by mi_fifo to listen on fifo file was not
  registered for updating the config framework structures
- reported by Klaus Darilion
- credits to Miklos Tirpak for hints to do it

9 years agorls(k): safer build of chunked body
Daniel-Constantin Mierla [Thu, 7 Apr 2011 11:32:45 +0000 (13:32 +0200)]
rls(k): safer build of chunked body

- the check for the size of alloc'ed buffer was using static estimation,
  not it is cmputed based on values and makes sure the ending '\0' is
  safe as well. When handling bodies with long values, could have caused
  overflow
- reported by Peter Dunkley
(cherry picked from commit a1b10bff76e1a88c647612c30b12eb5e9e51c90e)

9 years agorls(k): send 200ok for NOTIFY with subscription state termintated
Daniel-Constantin Mierla [Thu, 7 Apr 2011 10:03:32 +0000 (12:03 +0200)]
rls(k): send 200ok for NOTIFY with subscription state termintated

- when rls module sends an un-SUBSCRIBE (expires=0), then the dialog
  structure is removed and the NOTIFY arriving later to confirm the
  termination of subscription does not find any record, resulting in no
  reply
- the patch detects the subscribe-state terminated in NOTIFY requests
  and sends back 200ok
- reported by Peter Dunkley
(cherry picked from commit cdee458b2ec4296cb847dd6e531285c0ac64dd80)

9 years agoMerged the extension of the dialog- and rr-modules from my carstenbock/ims branch...
Carsten Bock [Mon, 4 Apr 2011 15:01:22 +0000 (17:01 +0200)]
Merged the extension of the dialog- and rr-modules from my carstenbock/ims branch into master

9 years agomodules/carrierroute fixed permission checking in mod_init
Marius Zbihlei [Fri, 1 Apr 2011 14:14:01 +0000 (17:14 +0300)]
modules/carrierroute fixed permission checking in mod_init

Check the permission of the cfg file based on the user settings passed to the daemon, it it applies