sip-router
10 years agoIncrease failed_dlgs when a non-2xx final response has been
Timo Reimann [Mon, 5 Jul 2010 15:52:12 +0000 (17:52 +0200)]
Increase failed_dlgs when a non-2xx final response has been
received only.

10 years agoFix minor typo
Timo Reimann [Tue, 13 Jul 2010 12:46:54 +0000 (14:46 +0200)]
Fix minor typo

10 years agomodules/dialog: Do not send BYE request for non-confirmed dialogs
Timo Reimann [Tue, 13 Jul 2010 11:21:40 +0000 (13:21 +0200)]
modules/dialog: Do not send BYE request for non-confirmed dialogs
  (not supported).

10 years agomodules/dialplan: added check that database string value is not null
Juha Heinanen [Fri, 9 Jul 2010 09:54:01 +0000 (12:54 +0300)]
modules/dialplan: added check that database string value is not null
- Added NULL check to GET_STR_VALUE macro.
- Credits to Bogdan-Andrei Iancu.

10 years agotmx: use TM api function to get tm table
Daniel-Constantin Mierla [Thu, 8 Jul 2010 10:34:40 +0000 (12:34 +0200)]
tmx: use TM api function to get tm table

- fix missing symbol for mode=debug, reported by Santiago Gimeno

10 years agotm: export function to get access to tm table
Daniel-Constantin Mierla [Thu, 8 Jul 2010 10:32:45 +0000 (12:32 +0200)]
tm: export function to get access to tm table

- to fix missing symbol in tmx for mode=debug, reported by Santiago Gimeno

10 years agomodules/carrierroute Improved pkg memory usage
Marius Zbihlei [Wed, 7 Jul 2010 10:37:18 +0000 (13:37 +0300)]
modules/carrierroute Improved pkg memory usage

Remove a unnecessary pkg_malloc/pkg_free done for every cr_route() module export.
This will decrease pkg memory fragmentation

10 years agoFixed a memory leak on shm memory, caused by the dtrie implementation.
Marius Zbihlei [Wed, 7 Jul 2010 09:39:58 +0000 (12:39 +0300)]
Fixed a memory leak on shm memory, caused by the dtrie implementation.

 dtrie_destroy and dtrie_clear could leak 10 * sizeof(void*) for each node in the trie.
Mainly affected carrierroute and userblacklist modules
(cherry picked from commit 5c5cc3df5301e86ee78d79f52aa917e0f67f37e8)

10 years agodebugger: work on nicer output
Daniel-Constantin Mierla [Mon, 5 Jul 2010 08:37:22 +0000 (10:37 +0200)]
debugger: work on nicer output

- output of dbg command to print action name along with type, making it
  more user friendly and easy to understand

10 years agocore: typos in comments
Daniel-Constantin Mierla [Mon, 5 Jul 2010 08:36:58 +0000 (10:36 +0200)]
core: typos in comments

10 years agomodules_k: dialog - update README with RPC functions
Ovidiu Sas [Sat, 3 Jul 2010 04:38:22 +0000 (00:38 -0400)]
modules_k: dialog - update README with RPC functions

10 years agomodules_k: ratelimit - README file updated to reflect rl_drop() removal
Ovidiu Sas [Sat, 3 Jul 2010 02:38:55 +0000 (22:38 -0400)]
modules_k: ratelimit - README file updated to reflect rl_drop() removal

10 years agomodules_k: ratelimit - rl_check(): strict pipe boundary checking
Ovidiu Sas [Fri, 2 Jul 2010 23:11:40 +0000 (19:11 -0400)]
modules_k: ratelimit - rl_check(): strict pipe boundary checking

10 years agomodules_k: ratelimit - removing rl_drop functionality
Ovidiu Sas [Fri, 2 Jul 2010 22:45:22 +0000 (18:45 -0400)]
modules_k: ratelimit - removing rl_drop functionality

 - rl_drop is now obsolete: same functionality can be
   achieved by invoking:
      append_to_reply("Retry-After: 5\r\n");
      sl_send_reply("503","Limiting");
 - sl dependency was also removed and therefore the
   module can be used in both s and k configurations.

10 years agomodules_k: ratelimit - removing MI interface from README doc file
Ovidiu Sas [Fri, 2 Jul 2010 21:41:05 +0000 (17:41 -0400)]
modules_k: ratelimit - removing MI interface from README doc file

10 years agomodules_k/auth_radius: fixed header name in README
Juha Heinanen [Fri, 2 Jul 2010 16:42:18 +0000 (19:42 +0300)]
modules_k/auth_radius: fixed header name in README

10 years agotm: TMCB_RESPONSE_READY executes by its own
Daniel-Constantin Mierla [Fri, 2 Jul 2010 16:21:10 +0000 (18:21 +0200)]
tm: TMCB_RESPONSE_READY executes by its own

- removed the define of it to TMCB_RESPONSE_OUT
- now this callback is executed before writing reply to network

10 years agomodules_k/auth_radius: module is now using api from modules_s/auth
Juha Heinanen [Fri, 2 Jul 2010 13:53:33 +0000 (16:53 +0300)]
modules_k/auth_radius: module is now using api from modules_s/auth

10 years agomodules_s/auth: cleaned up readme
Juha Heinanen [Fri, 2 Jul 2010 12:00:45 +0000 (15:00 +0300)]
modules_s/auth: cleaned up readme

- Removed nonexistent stuff from README, but didn't add anything.  Some
  module params are still undocumented.

10 years agomsilo(k): updated readme file
Daniel-Constantin Mierla [Thu, 1 Jul 2010 19:03:36 +0000 (21:03 +0200)]
msilo(k): updated readme file

- documented the new parameter add_contact
- readme file regenerated

10 years agomsilo(k): parameter to control contact header
Daniel-Constantin Mierla [Thu, 1 Jul 2010 18:56:23 +0000 (20:56 +0200)]
msilo(k): parameter to control contact header

- add_contact parameter controls whether contact header is added to
  msilo generated messages
- default is off (no contact added, as per RFC3428), reported by Juha
  Heinanen

10 years agopdb: avoid child re-init
Daniel-Constantin Mierla [Thu, 1 Jul 2010 17:19:17 +0000 (19:19 +0200)]
pdb: avoid child re-init

- for mi cmd when used over xmlrpc module

10 years agomtree: avoid re-init of db handler
Daniel-Constantin Mierla [Thu, 1 Jul 2010 17:13:46 +0000 (19:13 +0200)]
mtree: avoid re-init of db handler

- applies for mi cmd usage with xmlrpc module

10 years agopresence_xml: avoid re-init of db handler
Daniel-Constantin Mierla [Thu, 1 Jul 2010 17:08:04 +0000 (19:08 +0200)]
presence_xml: avoid re-init of db handler

- safety check for usage of xmlrpc module for mi cmds

10 years agopresence: avoid re-init of db handler
Daniel-Constantin Mierla [Thu, 1 Jul 2010 17:07:18 +0000 (19:07 +0200)]
presence: avoid re-init of db handler

- safety check for usage of xmlrpc for mi cmds

10 years agokex: check if uptime value was initialized
Daniel-Constantin Mierla [Thu, 1 Jul 2010 17:00:51 +0000 (19:00 +0200)]
kex: check if uptime value was initialized

10 years agouserblacklist: avoid double child initialization
Daniel-Constantin Mierla [Thu, 1 Jul 2010 16:57:09 +0000 (18:57 +0200)]
userblacklist: avoid double child initialization

- safety check for cases when xmlrpc module is used to run mi commands

10 years agousrloc(k): avoid re-initialization of db handler
Daniel-Constantin Mierla [Thu, 1 Jul 2010 16:43:54 +0000 (18:43 +0200)]
usrloc(k): avoid re-initialization of db handler

- can happen if mi commands are used over rpc interface via xmlrpc
  module

10 years agodomain(k): safety check for db handler initialization
Daniel-Constantin Mierla [Thu, 1 Jul 2010 16:35:27 +0000 (18:35 +0200)]
domain(k): safety check for db handler initialization

- avoid double initialization of db handler when using xmlrpc module for
  mi commands

10 years agodrouting: check if db connection is initialized
Daniel-Constantin Mierla [Thu, 1 Jul 2010 16:31:14 +0000 (18:31 +0200)]
drouting: check if db connection is initialized

- applied for the case of mi reload command

10 years agohtable: close db connection in case of mi cmd errors
Daniel-Constantin Mierla [Thu, 1 Jul 2010 16:22:15 +0000 (18:22 +0200)]
htable: close db connection in case of mi cmd errors

- in some error cases while processing mi reload command, db connection
  was left open

10 years agopdt(k): safety check for db handler initialization
Daniel-Constantin Mierla [Thu, 1 Jul 2010 16:15:33 +0000 (18:15 +0200)]
pdt(k): safety check for db handler initialization

- there can be two attepts to initialize if xmlrpc module is loaded

10 years agomi_rpc: initialize mi cmds for sip workers
Daniel-Constantin Mierla [Thu, 1 Jul 2010 16:13:54 +0000 (18:13 +0200)]
mi_rpc: initialize mi cmds for sip workers

- xmlrpc module re-uses sip workers to process xmlrpc request which can
  execute mi commands, therefore is need to initialize mi cmds as for a
  mi process
- initialization is done only when xmlrpc module is loaded

10 years agopermissions(k): safety check for db_handle
Daniel-Constantin Mierla [Thu, 1 Jul 2010 15:40:20 +0000 (17:40 +0200)]
permissions(k): safety check for db_handle

- avoid double initialization of trusted ops db handler

10 years agoDo not consider in-early-dialog BYE requests to be bogus.
Timo Reimann [Wed, 30 Jun 2010 16:25:55 +0000 (18:25 +0200)]
Do not consider in-early-dialog BYE requests to be bogus.

10 years agopermissions(k): reverted incomplete fix for mi cmd
Daniel-Constantin Mierla [Thu, 1 Jul 2010 10:10:34 +0000 (12:10 +0200)]
permissions(k): reverted incomplete fix for mi cmd

- the mi command execution via rpc is fixed by initialization of mi commands
  done now by mi_rpc module

10 years agomi_rpc: call MI init child functions
Daniel-Constantin Mierla [Thu, 1 Jul 2010 10:08:42 +0000 (12:08 +0200)]
mi_rpc: call MI init child functions

- MI init child functions called for RPC processes
- fix for several MI commands that can be executed now via RPC and they
  needed to do specific initialization for each process
- reported by Juha Heinanen

10 years agokmi: allow multiple initializations of mi child
Daniel-Constantin Mierla [Thu, 1 Jul 2010 10:04:52 +0000 (12:04 +0200)]
kmi: allow multiple initializations of mi child

- safety check to detect if mi child was initialized
- protect against multiple initializations that can occure due to
  usage from MI or RPC processes

10 years agomodules_k: ratelimit - removing the old mi interface
Ovidiu Sas [Wed, 30 Jun 2010 15:51:56 +0000 (11:51 -0400)]
modules_k: ratelimit - removing the old mi interface

10 years agomodules_k/msilo: do not include Contact header in msilo generated messages
Juha Heinanen [Wed, 30 Jun 2010 14:15:37 +0000 (17:15 +0300)]
modules_k/msilo: do not include Contact header in msilo generated messages

10 years agomodules_s/xlog: range specification added
Miklos Tirpak [Wed, 30 Jun 2010 12:39:42 +0000 (14:39 +0200)]
modules_s/xlog: range specification added

The xl-formatted string can contain the range of the expression
the following way:
 - %[<num>]<expression>
 - %[<from>-<to>]<expression>
 - %[<from>-]<expression>
 - %[-<to>]<expression>

For example "%[-3]@ruri.user" prints the first 4 characters of @ruri.user.
The index numbers start from 0.

10 years agodns cache: fix dns_cache_delete_single_record()
Miklos Tirpak [Wed, 30 Jun 2010 08:21:24 +0000 (10:21 +0200)]
dns cache: fix dns_cache_delete_single_record()

Binary comparison is needed to check the flags.

10 years agocore: safety check for free contact
Daniel-Constantin Mierla [Tue, 29 Jun 2010 17:48:59 +0000 (19:48 +0200)]
core: safety check for free contact

- patch by Sebastian Z., checking if the content is null before freeing
  it

10 years agomakefile: added radius modules in excluded list
Daniel-Constantin Mierla [Tue, 29 Jun 2010 17:47:50 +0000 (19:47 +0200)]
makefile: added radius modules in excluded list

10 years agodb_postgres(old API) FS#77: fix BLOBs with postgres
Henning Westerholt [Tue, 29 Jun 2010 16:11:58 +0000 (18:11 +0200)]
db_postgres(old API) FS#77: fix BLOBs with postgres

fix BLOBs with postgres, also add a null-termination as the other
SQL databases in order to be able to work with the presence modules

10 years agomodules_k: dialog and qos - add context info to dlg rpc commands
Ovidiu Sas [Tue, 29 Jun 2010 15:28:26 +0000 (11:28 -0400)]
modules_k: dialog and qos - add context info to dlg rpc commands

 - context info for dialog rpc commands is now implemented

10 years agoMerge branch 'master' of ssh://osas@git.sip-router.org/sip-router
Ovidiu Sas [Tue, 29 Jun 2010 14:09:27 +0000 (10:09 -0400)]
Merge branch 'master' of ssh://osas@git.sip-router.org/sip-router

* 'master' of ssh://osas@git.sip-router.org/sip-router:
  auc(k): fix error in authentification: Digest should be compared case insensitive

10 years agocore: rpc - adding rpc_cb_ctx_t
Ovidiu Sas [Tue, 29 Jun 2010 13:53:05 +0000 (09:53 -0400)]
core: rpc - adding rpc_cb_ctx_t

 - rpc_cb_ctx_t is a convenient way of packing an rpc
    callback (rpc_function_t) parameters and it's not
    used/needed by the rpc api/interface.

10 years agoauc(k): fix error in authentification: Digest should be compared case insensitive
Henning Westerholt [Tue, 29 Jun 2010 10:26:30 +0000 (12:26 +0200)]
auc(k): fix error in authentification: Digest should be compared case insensitive

10 years agocore: sdp parser - fix the extraction of connection stream IP
Ovidiu Sas [Mon, 28 Jun 2010 23:05:31 +0000 (19:05 -0400)]
core: sdp parser - fix the extraction of connection stream IP

10 years agocore: sdp parser - the log verbosity of sdp print helpers is now configurable
Ovidiu Sas [Mon, 28 Jun 2010 16:17:07 +0000 (12:17 -0400)]
core: sdp parser - the log verbosity of sdp print helpers is now configurable

10 years agocore: sdp parser - add rtp flag identifier for sdp streams
Ovidiu Sas [Mon, 28 Jun 2010 16:04:26 +0000 (12:04 -0400)]
core: sdp parser - add rtp flag identifier for sdp streams

10 years agocore: sdp parser - log reformating
Ovidiu Sas [Mon, 28 Jun 2010 13:59:47 +0000 (09:59 -0400)]
core: sdp parser - log reformating

 - cosmetic change of a log while printing the parsed sdp stream

10 years agomodules_k:qos align qos module to the new sdp layout
Ovidiu Sas [Mon, 28 Jun 2010 13:57:42 +0000 (09:57 -0400)]
modules_k:qos align qos module to the new sdp layout

 - 'sendrecv_mode' and 'ptime' are session attributes now

10 years agocore: sdp parser: making 'sendrecv_mode' and 'ptime' session attributes
Ovidiu Sas [Mon, 28 Jun 2010 13:54:01 +0000 (09:54 -0400)]
core: sdp parser: making 'sendrecv_mode' and 'ptime' session attributes

10 years agocore: sdp parser - adding two new getters
Ovidiu Sas [Sun, 27 Jun 2010 21:00:28 +0000 (17:00 -0400)]
core: sdp parser - adding two new getters

 - get_sdp_session_num: get the total number of sessions
 - get_sdp_stream_num: get the total number of streams

10 years agomodules_k:dialog: new dialog callback: DLGCB_RPC_CONTEXT
Ovidiu Sas [Sun, 27 Jun 2010 18:22:10 +0000 (14:22 -0400)]
modules_k:dialog: new dialog callback: DLGCB_RPC_CONTEXT

 - implementing a new dialog callback for rpc qos context interogation

10 years agocore: sdp parser
Ovidiu Sas [Fri, 25 Jun 2010 17:59:15 +0000 (13:59 -0400)]
core: sdp parser

 - added support for session common IP and session origin IP

10 years agocore: sdp parser
Ovidiu Sas [Fri, 25 Jun 2010 17:06:12 +0000 (13:06 -0400)]
core: sdp parser

 - added support for rtcp attribute (RFC3605)

10 years agocore: sdp parser fixes
Ovidiu Sas [Fri, 25 Jun 2010 16:14:14 +0000 (12:14 -0400)]
core: sdp parser fixes

 - fix sdp session and stream getters

10 years agomodules_k/dialog: Fix timer reset and improve timeout value logging
Timo Reimann [Thu, 24 Jun 2010 16:39:49 +0000 (18:39 +0200)]
modules_k/dialog: Fix timer reset and improve timeout value logging

- Fix a bug that caused dialog timeout values to be refreshed only
  when a custom timeout was provided by the user via AVP.
- Do not log failure to get timeout from AVP when in fact no AVP
  was used.
- Add missing newline character.

10 years agomodules_k/dialog: rpc interface fixes
Ovidiu Sas [Thu, 24 Jun 2010 14:28:52 +0000 (10:28 -0400)]
modules_k/dialog: rpc interface fixes

 - force to string all rpc parameters
 - enable optianal parameters for profile specific rpc commands

10 years agoCorrect typo in comment referring to other file.
Timo Reimann [Thu, 24 Jun 2010 13:50:52 +0000 (15:50 +0200)]
Correct typo in comment referring to other file.

10 years agomodules_k/dialog: Reduce log verbosity for list traversal of
Timo Reimann [Thu, 24 Jun 2010 13:01:13 +0000 (15:01 +0200)]
modules_k/dialog: Reduce log verbosity for list traversal of
expired dialogs.

- Change logging of start/previous/next pointers from WARN to DBG
  when traversing the list of expired dialogs.

10 years agomodules_k/dialog: rpc support
Ovidiu Sas [Wed, 23 Jun 2010 22:26:09 +0000 (18:26 -0400)]
modules_k/dialog: rpc support

 - mi fifo commands ported to rpc (serctl)

10 years agodns cache: dns_cache_rec_pref without #define CACHE_RELEVANT_RECS_ONLY
Miklos Tirpak [Wed, 23 Jun 2010 15:27:41 +0000 (17:27 +0200)]
dns cache: dns_cache_rec_pref without #define CACHE_RELEVANT_RECS_ONLY

Added support for the dns_cache_rec_pref config variable
when CACHE_RELEVANT_RECS_ONLY is not defined.

10 years agodns cache: dns_cache_rec_pref config var added
Miklos Tirpak [Wed, 23 Jun 2010 14:34:56 +0000 (16:34 +0200)]
dns cache: dns_cache_rec_pref config var added

The config variable, dns_cache_rec_pref, can be used
to set the DNS cache preference as follows:

0 - do not check duplicates (default)
1 - prefer old records
2 - prefer new records
3 - prefer records with longer lifetime

This variable is checked when a duplicated record is
tried to be inserted into the cache. For instance the
SRV query answer contains also an A record which is
already in the cache.
If the config var is not 0, then permanent entries
are always preferred.

Note: works only with #define CACHE_RELEVANT_RECS_ONLY
at the moment.

10 years agodns_cache: dns.view RPC command fix
Miklos Tirpak [Thu, 17 Jun 2010 09:01:31 +0000 (11:01 +0200)]
dns_cache: dns.view RPC command fix

Do not print out the expiration time of the resource
records in a permanent cache entry, they never expire.

10 years agoDo not consider in-early-dialog requests to be bogus.
Timo Reimann [Wed, 23 Jun 2010 13:39:21 +0000 (15:39 +0200)]
Do not consider in-early-dialog requests to be bogus.

10 years agomodules/mediaproxy: Fix SDP mangling for unsupported streams.
Juha Heinanen [Sun, 20 Jun 2010 13:21:12 +0000 (16:21 +0300)]
modules/mediaproxy: Fix SDP mangling for unsupported streams.
- Credits to Saul Ibarra.

10 years agocore: MATCH op fix for ip comparisons with RVEs
Andrei Pelinescu-Onciul [Fri, 18 Jun 2010 21:04:24 +0000 (23:04 +0200)]
core: MATCH op fix for ip comparisons with RVEs

Commit e085834 broke regular expression support in ip comparisons
with rval expressions (e.g. $re="127\..*"; if (src_ip=~$re) ...).

10 years agocore: fix selects in optimized rvalue expressions
Andrei Pelinescu-Onciul [Fri, 18 Jun 2010 20:22:59 +0000 (22:22 +0200)]
core: fix selects in optimized rvalue expressions

- do not attempt to resolve_select() twice the same select. This
  happened when a rve containing only a select was optimized,
  the select moved out of the rve and fix_expr() tried to "fix"
  the already resolved select later.
- changed BUG() messages for failed resolve_select() into ERR().

10 years agocore: network addresses in ip rve comparisons
Andrei Pelinescu-Onciul [Fri, 18 Jun 2010 20:13:01 +0000 (22:13 +0200)]
core: network addresses in ip rve comparisons

ip address comparison with rvalue expressions support now
 network type addresses (ip/mask).
 E.g.:
    $net = "10.0.0.0"
    $mask = "255.0.0.0"
    if (src_ip == $net+"/"+$mask)
        ....

10 years agocore: functions for parsing a network address
Andrei Pelinescu-Onciul [Fri, 18 Jun 2010 20:03:46 +0000 (22:03 +0200)]
core: functions for parsing a network address

- added mk_net_str(): initialize a struct net from a string of the
  form ip/mask, ip/bitlen or ip
- renamed mk_net() and mk_net_bitlen() to  mk_new_net() and
  mk_new_net_bitlen()

10 years agomodules/lcr: fixed bsearch argument plus doc improvements
Juha Heinanen [Thu, 17 Jun 2010 10:03:35 +0000 (13:03 +0300)]
modules/lcr: fixed bsearch argument plus doc improvements

- First bsearch argument must be of type struct gw_info.
- README improvements.

10 years agodns_cache: reply the rpc command only once
Miklos Tirpak [Wed, 16 Jun 2010 14:52:04 +0000 (16:52 +0200)]
dns_cache: reply the rpc command only once

10 years agodns_cache: remove unused err_flags variable
Miklos Tirpak [Wed, 16 Jun 2010 14:09:31 +0000 (16:09 +0200)]
dns_cache: remove unused err_flags variable

err_flags is deleted from the dns_rr structure.
This flag was checked sometimes, but its value was never
set. Anyway, this flag contained duplicated information
because the parent structure, dns_hash_entry, has a similar
flag (ent_flags & DNS_FLAG_BAD_NAME). And a single hash
entry cannot contain both positive and negative resource
records at the same time.

10 years agodns_cache: minor fix, goto instead of break
Miklos Tirpak [Wed, 16 Jun 2010 14:04:16 +0000 (16:04 +0200)]
dns_cache: minor fix, goto instead of break

Exit from the main look when no number of entries
has already been processed in dns_cache_clean()

10 years agodns_cache: added support for permanent entries
Miklos Tirpak [Wed, 16 Jun 2010 13:49:24 +0000 (15:49 +0200)]
dns_cache: added support for permanent entries

Permanent entries are intended to be used for management
purposes, i.e. they are useful if there is no DNS server
available for instance. Such entries never expire, and overwrite
any existing entry that was added by the resolver.
They can be added to the cache from modules or over the RPC calls
dns.add_a, dns.add_aaaa and dns.add_srv with the flag value of 2.
(or 3 in case of negative permanent entry)

- err_flags in struct dns_hash_entry is changed to be a general
purpose flag, and renamed to ent_flag.
- DNS_BAD_NAME is renamed to DNS_FLAG_BAD_NAME
- DNS_FLAG_PERMANENT value is added.
- new rpc call to force deleting the permanent entries from the
cache: dns.delete_all_force. (dns.delete_all deletes only
the non-permanent entries.)

10 years agodns_cache: dns_cache_delete_single_record() added
Miklos Tirpak [Tue, 15 Jun 2010 08:15:46 +0000 (10:15 +0200)]
dns_cache: dns_cache_delete_single_record() added

The function deletes a single resource record
of an existing DNS entry. If the entry has only one
record then the entire entry is deleted.

The resource record is identified by its name, type,
and value, i.e. ip addres in case of A/AAAA record,
target name in case of SRV record.

Only A, AAAA, and SRV records are supported.

10 years agoAlways set data payload to NULL, thus avoiding problems when root node had data assoc...
Marius Zbihlei [Wed, 16 Jun 2010 11:11:48 +0000 (14:11 +0300)]
Always set data payload to NULL, thus avoiding problems when root node had data associated with it
Credits for the patch go to Henning Westerholt.

10 years agomakefile: quiet output by default
Andrei Pelinescu-Onciul [Tue, 15 Jun 2010 15:26:07 +0000 (17:26 +0200)]
makefile: quiet output by default

Quiet output is used now by default. For verbose output one can
either add Q=0 /Q=no/ Q=verbose to the make command line
(e.g. make Q=verbose all) or for a more permanent solution one can
run make config with Q set (e.g. make config Q=0).

10 years agocfg parsing: disable non constant rval in ip comparison warning
Andrei Pelinescu-Onciul [Tue, 15 Jun 2010 15:00:51 +0000 (17:00 +0200)]
cfg parsing: disable non constant rval  in ip comparison warning

Reported-by: Steven C. Blair blairs isc upenn edu
10 years agocore: futexlock compilation workaround for OpenSuse 10.2
Andrei Pelinescu-Onciul [Mon, 14 Jun 2010 17:11:59 +0000 (19:11 +0200)]
core: futexlock compilation workaround for OpenSuse 10.2

In some older linux distributions /usr/include/futex.h uses a __user
attribute, which is defined in linux/compiler.h.
However linux/compiler.h is not part of the kernel headers package in most
recent distributions. Instead they ship a modified linux/futex.h that
 does not include <linux/compile.h> and does not use __user.
"__user" is used only for checking  pointer address space in the kernel
(using the sparse tool and make C=1 or make C=2) so it's safe to define
it as null/empty.

Reported-by: Alexandr Dubovikov shurik start4 info
10 years agodbg(s): remove module, as its functionality is also provided from cfgutils
Henning Westerholt [Tue, 15 Jun 2010 10:30:32 +0000 (12:30 +0200)]
dbg(s): remove module, as its functionality is also provided from cfgutils

remove the dbg module, its functionality can be provided from cfgutils:
  - dbg_msleep(n) -> usleep(n*1000)
  - dbg_abort() -> abort()
  - dbg_pkg_status() -> pkg_status()
  - dbg_shm_status() -> shm_status()

10 years ago*_radius(s): doc: update to the new doc makefile format
Andrei Pelinescu-Onciul [Mon, 14 Jun 2010 15:30:26 +0000 (17:30 +0200)]
*_radius(s): doc: update to the new doc makefile format

Update the doc makefiles for auth_radius, avp_radius and
uri_radius.

10 years agoauth_*(s): updated auth_api and header file name
Andrei Pelinescu-Onciul [Mon, 14 Jun 2010 15:25:05 +0000 (17:25 +0200)]
auth_*(s): updated auth_api and header file name

Changed auth_api_t to auth_api_s_t and bind_auth to bind_auth_s in
all the auth(s) using modules.
Updated also the auth/api.h path to contain modules_s (safer if
the modules will be moved).

10 years agoauth_*(k): updated auth_api and header file name
Andrei Pelinescu-Onciul [Mon, 14 Jun 2010 15:22:01 +0000 (17:22 +0200)]
auth_*(k): updated auth_api and header file name

Changed auth_api_t to auth_api_k_t and bind_auth to bind_auth_k in
 all the auth(k) using modules.
Updated also the auth/api.h path to contain modules_k (safer if
the modules will be moved).

10 years agoauth(k): s/auth_api/auth_api_k & s/bind_auth/bind_auth_k
Andrei Pelinescu-Onciul [Mon, 14 Jun 2010 15:15:50 +0000 (17:15 +0200)]
auth(k): s/auth_api/auth_api_k & s/bind_auth/bind_auth_k

Rename auth_api_t and bind_auth (add _k), to avoid possible
runtime problems when mixing ser and kamailio auth_api using
modules.

10 years agoauth(s): s/auth_api/auth_api_s & s/bind_auth/bind_auth_s
Andrei Pelinescu-Onciul [Mon, 14 Jun 2010 15:13:19 +0000 (17:13 +0200)]
auth(s): s/auth_api/auth_api_s & s/bind_auth/bind_auth_s

Rename auth_api_t  and bind_auth (add _s), to avoid possible runtime
problems when mixing ser and kamailio auth_api using modules.

10 years agoauth_radius(s), avp_radius(s), uri_radius(s): revived
Andrei Pelinescu-Onciul [Mon, 14 Jun 2010 14:32:21 +0000 (16:32 +0200)]
auth_radius(s), avp_radius(s), uri_radius(s): revived

Revive modules_/{auth_radius,avp_radius,uri_radius}.
Needed to be able to use radius auth.  with ser auth_api/module
(the ser and kamailio auth apis are not compatible and so one
cannot use a kamailio radius auth with the ser auth module).

Reverts 456c3c137e9abcf687413f9675fe0f1761ce820d.

10 years agoauth_radius,misc_radius: mv back to modules_k
Andrei Pelinescu-Onciul [Mon, 14 Jun 2010 14:26:48 +0000 (16:26 +0200)]
auth_radius,misc_radius: mv back to modules_k

Partially revert 456c3c137e9abcf687413f9675fe0f1761ce820d:
move modules/{auth_radius,misc_radius} back to modules_k to allow
having 2 sets of radius modules (ser & kamailio).
This is needed because the ser and kamailio auth apis (exported by
modules*/auth) are incompatible and hence auth api using modules
cannot be mixed.

10 years agomodules_k/siputils: added is_e164(pv) function
Juha Heinanen [Mon, 14 Jun 2010 12:27:48 +0000 (15:27 +0300)]
modules_k/siputils:  added is_e164(pv) function

- More generic version of is_uri_user_e164(pv) that avoids parsing of
  URI if user is already in a pseudo variable.

10 years agoshm_regex lib: locks added around the regular expression
Miklos Tirpak [Mon, 14 Jun 2010 13:40:20 +0000 (15:40 +0200)]
shm_regex lib: locks added around the regular expression

The libc locks moved to shared memory did not work on
multi-cpu machines.
Credit goes to Stefan Keller (stefan.keller at isaco.de) for
identifying the problem and for the patch.

"The code hangs in regexec() when trying to acquire the lock.
... It turns out this only happens if
the machine has more than one physical CPU core.
Reproducable on x86_64 with two CPU cores, glibc 2.3.6 (from Debian
Etch) and glibc 2.11.1 (from Ubuntu Lucid)."

10 years agolib/srdb1/schema: replaced lcr schema files
Juha Heinanen [Thu, 10 Jun 2010 10:32:35 +0000 (13:32 +0300)]
lib/srdb1/schema: replaced lcr schema files
- Replaced lcr and gw schema files with lcr_rule, lcr_rule_target and
  lcr_gw schema files.

10 years agomodules/lcr: major rewrite
Juha Heinanen [Thu, 10 Jun 2010 10:05:05 +0000 (13:05 +0300)]
modules/lcr: major rewrite
- For easier management, information is now kept in three tables:
  lcr_rule, lcr_rule_target, and lcr_gw.
- For simplicity, gateway groups are not anymore supported.
- Added possibility to stop trying to match shorter prefixes, when a
  matching prefix is found.
- Stripping and tagging can be controlled by a flag.
- New database schema and upgrade script will be provided
  later today.

10 years agomodules/mediaproxy: ICE fixes
Juha Heinanen [Wed, 9 Jun 2010 09:27:42 +0000 (12:27 +0300)]
modules/mediaproxy: ICE fixes
- ICE attributes may appear at the session level.
- Insert our RTCP component if we found another component: some clients
  may not use a=rtcp line but then insert a RTCP candidate component.
- Credits to Saul Ibarra Corretge.

10 years agoPKG Debian
Jon Bonilla [Mon, 7 Jun 2010 21:38:59 +0000 (23:38 +0200)]
PKG Debian

- Merge from kamailio_3.0 branch of debian packaging folders

10 years agopresence_xml: fixed log message
Daniel-Constantin Mierla [Tue, 1 Jun 2010 21:02:14 +0000 (23:02 +0200)]
presence_xml: fixed log message

10 years agomodules_k/textops: fixed typo in starts_with() example
Juha Heinanen [Tue, 1 Jun 2010 13:15:13 +0000 (16:15 +0300)]
modules_k/textops: fixed typo in starts_with() example

- Thanks to Inaki for pointing out.