13 years agoModifying the return value of cfg_set* functions, in order to make
Miklos Tirpak [Wed, 5 Dec 2007 16:30:57 +0000 (16:30 +0000)]
Modifying the return value of cfg_set* functions, in order to make
a difference between variable not found and error cases.

13 years ago- cfg_core.c and cfg_core.h are added to the repository as a placeholder
Miklos Tirpak [Wed, 5 Dec 2007 16:21:36 +0000 (16:21 +0000)]
- cfg_core.c and cfg_core.h are added to the repository as a placeholder
of the core configuration.

- debug level is switched to the new config variable type. From now,
it is changeble runtime.

13 years agoInitialize and destory the configuration framework in main.c,
Miklos Tirpak [Wed, 5 Dec 2007 15:51:24 +0000 (15:51 +0000)]
Initialize and destory the configuration framework in main.c,
and update the local config within the child processes at the
beginning of each loop.

TODO: The local config must be updated in all the modules that
fork a new process implementing an endless loop.

13 years agoLet the config framework compiled together with SER core
Miklos Tirpak [Wed, 5 Dec 2007 15:32:55 +0000 (15:32 +0000)]
Let the config framework compiled together with SER core

13 years agoImplementing a configuration framework, that can be used by SER core,
Miklos Tirpak [Wed, 5 Dec 2007 15:22:01 +0000 (15:22 +0000)]
Implementing a configuration framework, that can be used by SER core,
and by the modules, to get and set internal variables on-the-fly, and
eliminate SER restarts whenever it is possible.

The core and the modules can declare configuration variables, and can
retrieve the value of the variables at any time without performance
overhead. The framework makes sure that the variables do not change
during the SIP message processing, the child processes see a snapshot
of the variables with constant values. The variable, that is changed by
a cfg driver module, will be automatically replaced by the framework
the next time a SIP message is started to be processed.

The drivers can change the value of all the variables by names with or
without the need of commit. That means a kind of transaction support,
the framework can keep track of the changes (per driver) until they
are committed or rolled-back.

13 years ago- tcp support for queueing writes: if some data cannot be written immediately
Andrei Pelinescu-Onciul [Tue, 4 Dec 2007 20:25:29 +0000 (20:25 +0000)]
- tcp support for queueing writes: if some data cannot be written immediately
 on the socket (socket buffers full or still connecting), the data will be
 queued and written at a latter time (max. queue size per socket is controlled
 by tcp_conn_wq_max, timeout by tcp_send_timeout and total queued bytes / max.
 mem. used by tcp_wq_max). By default disabled (experimental), to enable it
  use tcp_buf_write=yes in ser.cfg. To compile without queueing support

13 years ago- io_wait support for write
Andrei Pelinescu-Onciul [Thu, 29 Nov 2007 21:01:45 +0000 (21:01 +0000)]
- io_wait support for write
- io_wait: added io_watch_chg(..)
- updated tcp code to the io_wait api changes

13 years ago- set default tcp options
Andrei Pelinescu-Onciul [Wed, 28 Nov 2007 21:24:32 +0000 (21:24 +0000)]
- set default tcp options

13 years ago- advanced tcp options support:
Andrei Pelinescu-Onciul [Wed, 28 Nov 2007 19:20:47 +0000 (19:20 +0000)]
- advanced tcp options support:
    - support for defering tcp accepts until some data is received
    (linux & freebsd), default off. See NEWS: tcp_defer_accept.
    - support for delaying the final ACK from the 3-way handshake until some
    data is sent (the ACK will come with the 1st data segment). Default on
     when supported (linux only). See NEWS: tcp_delayed_ack.
    - support for limiting the number of retransmitted SYNs (linux only,
     see NEW: tcp_syncnt)
    - support for limiting the lifetime of orphaned sockets in FIN_WAIT2
      (linux only, see NEWS: tcp_linger2)
    - keepalive support, see NEWS: tcp_keepalive (default on), tcp_keepidle,
      tcp_keepintvl and tcp_keepcnt

- the FD cache can now be turned off from ser.cfg (see NEW: tcp_fd_cache)

13 years ago- fix: don't extend the timeout on tcp_send() if the connection is handled
Andrei Pelinescu-Onciul [Wed, 28 Nov 2007 13:39:55 +0000 (13:39 +0000)]
- fix: don't extend the timeout on tcp_send() if the connection is handled
 by a tcp_reader process

13 years ago- for tcp read processes, reuse the read fd for sending
Andrei Pelinescu-Onciul [Tue, 27 Nov 2007 21:05:32 +0000 (21:05 +0000)]
- for tcp read processes, reuse the read fd for sending
- keep a tcp send fd cache (experimental)
(performance improvement)

13 years ago- switched to much better tcp timers (performance increase especially
Andrei Pelinescu-Onciul [Tue, 27 Nov 2007 07:23:27 +0000 (07:23 +0000)]
- switched to much better tcp timers (performance increase especially
with tesn of thousands of active tcp connections)

13 years ago- indentation changed only
Michal Matyska [Mon, 26 Nov 2007 17:28:54 +0000 (17:28 +0000)]
- indentation changed only

13 years agoadding db_ops module to db url modparam line in debian package postinstall script
Pavel Kasparek [Mon, 26 Nov 2007 14:24:15 +0000 (14:24 +0000)]
adding db_ops module to db url modparam line in debian package postinstall script

13 years agoadded starting of ser in default runlevels to debian package post-install script
Pavel Kasparek [Mon, 26 Nov 2007 13:23:33 +0000 (13:23 +0000)]
added starting of ser in default runlevels to debian package post-install script

13 years agoadding ntp to Suggests: dependencies of ser-oob package
Pavel Kasparek [Mon, 26 Nov 2007 09:17:47 +0000 (09:17 +0000)]
adding ntp to Suggests: dependencies of ser-oob package

13 years agoadding forgotten templates file for ser-oob package
Pavel Kasparek [Fri, 23 Nov 2007 14:08:50 +0000 (14:08 +0000)]
adding forgotten templates file for ser-oob package

13 years ago- io_wait.h: when calling handle_io() in a loop (e.g. io_watch_add() &
Andrei Pelinescu-Onciul [Thu, 22 Nov 2007 19:32:35 +0000 (19:32 +0000)]
- io_wait.h: when calling handle_io() in a loop (e.g. io_watch_add() &
 SIGIO_RT or EPOLL_ET or io_wait_loop_* and repeat mode) always check & stop if
 the fd was removed inside the handle_io() call

- tcp_main.c: always add the connection & clear the coresponding flags before
 io_watch_add-ing its fd, to avoid the possibility of the handle_* being
 called without fully init. parameters

13 years ago- local per process timer support (optimized "main" timer version that works
Andrei Pelinescu-Onciul [Thu, 22 Nov 2007 13:43:09 +0000 (13:43 +0000)]
- local per process timer support (optimized "main" timer version that works
only inside one process). Several independent timers can be run in the
 same time (if intialized with different handles). They'll be used for the
 tcp connection timeout handling (near future).

13 years agolog level increased for other messages on server failure
Jiri Kuthan [Wed, 21 Nov 2007 17:46:58 +0000 (17:46 +0000)]
log level increased for other messages on server failure

13 years agoestehtic change: put applicability check in front of a route block to
Jiri Kuthan [Tue, 20 Nov 2007 00:11:19 +0000 (00:11 +0000)]
estehtic change: put applicability check in front of a route block to
avoid one level of if-nesting

13 years agoadded `-L' option
Ondrej Martinek [Mon, 19 Nov 2007 17:31:24 +0000 (17:31 +0000)]
added `-L' option

13 years agoenabling db_ops module packaging
Pavel Kasparek [Fri, 16 Nov 2007 12:57:47 +0000 (12:57 +0000)]
enabling db_ops module packaging

13 years ago- proper query declaration for db_ops
Jan Janak [Thu, 15 Nov 2007 17:45:02 +0000 (17:45 +0000)]
- proper query declaration for db_ops
- uncomented options for 2.1

13 years agoadding speeddial module to deb package again
Pavel Kasparek [Thu, 15 Nov 2007 12:59:57 +0000 (12:59 +0000)]
adding speeddial module to deb package again

13 years agoFixing improper blacklisting of destinations because of non-INVITE timeouts.
Miklos Tirpak [Wed, 14 Nov 2007 15:30:21 +0000 (15:30 +0000)]
Fixing improper blacklisting of destinations because of non-INVITE timeouts.
Two new module parameters are introduced:

- blst_methods_add:
  bitmap of method types that can trigger blacklisting
  (only INVITE by default)

- blst_methods_lookup:
  bitmap of method types that are looked up in the blacklist
  (everything except BYE by default)

closes SER-331

13 years agotimer modparam must be named
Miklos Tirpak [Wed, 14 Nov 2007 09:08:53 +0000 (09:08 +0000)]
timer modparam must be named

13 years agotypo fixed, courtesy of Aldred E. H.
Jiri Kuthan [Tue, 13 Nov 2007 16:01:38 +0000 (16:01 +0000)]
typo fixed, courtesy of Aldred E. H.

13 years agocore dump reported on lowr log level, small warning buffer size on
Jiri Kuthan [Tue, 13 Nov 2007 15:56:31 +0000 (15:56 +0000)]
core dump reported on lowr log level, small warning buffer size on

13 years ago- expreimental e2eack retransmission callback (called each time a retrans.
Andrei Pelinescu-Onciul [Mon, 12 Nov 2007 15:58:49 +0000 (15:58 +0000)]
- expreimental e2eack retransmission callback (called each time a retrans.
 of an ACK to a 2xx is received, however like TMCB_E2EACK_IN it will work
  only as long as the transaction still exists)

13 years agoupdating Debian specification - adding debconf configuration for ser package, adding...
Pavel Kasparek [Mon, 5 Nov 2007 15:33:12 +0000 (15:33 +0000)]
updating Debian specification - adding debconf configuration for ser package, adding ser-nth package, adding more options to default/ser file and init script

13 years agocorrecting syntax error
Miklos Tirpak [Mon, 5 Nov 2007 10:11:50 +0000 (10:11 +0000)]
correcting syntax error

13 years agoupdating Debian specification and adding oob cfg file
Pavel Kasparek [Fri, 2 Nov 2007 16:43:28 +0000 (16:43 +0000)]
updating Debian specification and adding oob cfg file

13 years ago- support for db_getopt
Jan Janak [Wed, 31 Oct 2007 16:10:11 +0000 (16:10 +0000)]
- support for db_getopt

13 years ago- avoid using multicast sockets as send defaults
Andrei Pelinescu-Onciul [Thu, 18 Oct 2007 21:14:43 +0000 (21:14 +0000)]
- avoid using multicast sockets as send defaults

13 years ago* fixed memory leak in fix_param()
Ondrej Martinek [Thu, 18 Oct 2007 16:42:54 +0000 (16:42 +0000)]
* fixed memory leak in fix_param()

13 years ago - removed bkl_hit_cnt stat from dst_blacklist_add_to function
Vladimir Marek [Thu, 18 Oct 2007 12:43:03 +0000 (12:43 +0000)]
 - removed bkl_hit_cnt stat from dst_blacklist_add_to function

13 years agoIdentity-info and Identity header parser does not insist on BNF specified
Gergely Kovacs [Mon, 15 Oct 2007 14:32:19 +0000 (14:32 +0000)]
Identity-info and Identity header parser does not insist on BNF specified
in RFC.

Memory allocator part of Identity-info, Identity and Date header moved out
from get_hdr_field()@parser/msg_parser.c

13 years agoIdentity, Identity-info, Date headers would be parsed only if they were
Gergely Kovacs [Mon, 15 Oct 2007 14:21:01 +0000 (14:21 +0000)]
Identity, Identity-info, Date headers would be parsed only if they were

13 years agofixes SER-322:
Miklos Tirpak [Mon, 15 Oct 2007 07:55:41 +0000 (07:55 +0000)]
fixes SER-322:
 - parser sticks in an endless loop when the terminating
   quote mark is missing in a substring: @hf_value["Contact].uri
 - quote mark can be escaped: @hf_value[\"Contact\"].uri

13 years agofixes SER-321 patch reflecting comments applied
Michal Matyska [Fri, 12 Oct 2007 22:25:40 +0000 (22:25 +0000)]
fixes SER-321   patch reflecting comments applied

Change to DNS subsystem: if search list used (not recomended) and name
was resolved using the search list, the link between the short name (query)
and the long name (answer) is stored in DNS cache as fake CNAME record.

New config script setting available (dns_search_full_match) which controls,
whether SER will check if the extension of the name is present in search list
(defualt) or blindly accepted (faster, but little bit risky for spoofed
DNS replies)

13 years ago- don't include expired entries in DNS cache view output
Vladimir Marek [Thu, 11 Oct 2007 06:07:02 +0000 (06:07 +0000)]
- don't include expired entries in DNS cache view output

13 years ago- support for db_setopt
Jan Janak [Wed, 10 Oct 2007 13:25:52 +0000 (13:25 +0000)]
- support for db_setopt
- fixed minor problems in memory deallocation on error

13 years ago - don't include expired entries in IP blacklist view command
Vladimir Marek [Wed, 10 Oct 2007 10:56:41 +0000 (10:56 +0000)]
 - don't include expired entries in IP blacklist view command

13 years agoadding indexes to table credentials and domain
Karel Kozlik [Wed, 10 Oct 2007 09:31:37 +0000 (09:31 +0000)]
adding indexes to table credentials and domain

13 years ago- fix: when dns or blacklist are disabled, reply with an error from
Andrei Pelinescu-Onciul [Tue, 9 Oct 2007 20:35:50 +0000 (20:35 +0000)]
- fix: when dns or blacklist are disabled, reply with an error from
  the corresponding rpc function (way better then crashing)

- un-nested the stat_sum function

13 years ago- coding style (mainly identations) & some comments / spelling
Andrei Pelinescu-Onciul [Tue, 9 Oct 2007 19:56:08 +0000 (19:56 +0000)]
- coding style (mainly identations) & some comments / spelling

13 years ago- mcast fixes: avoid trying to send from multicast listening sockets
Andrei Pelinescu-Onciul [Mon, 8 Oct 2007 13:29:41 +0000 (13:29 +0000)]
- mcast fixes: avoid trying to send from multicast listening sockets
 (the kernel will fix it, but in a non-ser deterministic way, e.g. the
  sent packet might have as source ip and address on which we don't listen):
         - get_send_socket() will ignore a forced mcast socket
         - msg_send() will ignore a mcast source socket and it will
           automatically choose another one

13 years ago- fix: get_send_socket bug in some unlikely circumstances$
Andrei Pelinescu-Onciul [Fri, 5 Oct 2007 08:27:13 +0000 (08:27 +0000)]
- fix: get_send_socket bug in some unlikely circumstances$
 (a socket of a diff. proto is forced and find_si cannot fix it to$
   a corresp. socket of the correct proto

13 years agonew attribute type introduced 'sw_highest_alias_number'
Karel Kozlik [Thu, 4 Oct 2007 20:30:33 +0000 (20:30 +0000)]
new attribute type introduced 'sw_highest_alias_number'

13 years agoMakefile.defs:
Ondrej Martinek [Thu, 4 Oct 2007 18:09:24 +0000 (18:09 +0000)]
  * added MODS_DIR macro

  * added mods_dir variable

  * added `-L dir' option

  * fixed Usage message which referred to the non-existent
    `-p port' option

  * fixed parsing of command-line options - options with missing
    arguments were incorrectly reported as unknown options

  * load_module() - added possibilty to load modules by name,
    the path to the module file is <mods_dir>/<name>.so
    (if EXTRA_DEBUG macro is defined <mods_dir>/<name>/<name>.so
    is tried too) where <mods_dir> can be specified using `-L dir'
    option on the command-line, otherwise the default value MODS_DIR
    is used

13 years agoLevel of the select call is moved to a global variable form the structure
Miklos Tirpak [Wed, 3 Oct 2007 14:56:32 +0000 (14:56 +0000)]
Level of the select call is moved to a global variable form the structure
in order to make the select calls shared memory-safe.
Fixes SER-318

13 years agoFixes SER-317:
Miklos Tirpak [Wed, 3 Oct 2007 08:11:35 +0000 (08:11 +0000)]
Fixes SER-317:
Under heavy load some transactions time out after
fr_timer expires even though 180 response
was received and forwarded to the caller.

13 years ago- fix: build_uac_req() now will add a Content-Length header even if the$
Andrei Pelinescu-Onciul [Tue, 2 Oct 2007 20:49:27 +0000 (20:49 +0000)]
- fix: build_uac_req() now will add  a Content-Length header even if the$
 request has no body. This fixes tcp problems with t_uac() constructed$
  requests with no body (e.g. via fifo or nathelper stateful natpings)$

13 years ago- fix: ser generated ACKs and CANCELs via is built in the same way as the$
Andrei Pelinescu-Onciul [Mon, 1 Oct 2007 12:42:54 +0000 (12:42 +0000)]
- fix: ser generated ACKs and CANCELs via is built in the same way as the$
 INVITE via (when forwarding on tcp, the ACK/CANCEL Via did miss the i=$
   param which is added to the INVITE via)
 Note that by default 2.1 reparses the sent INVITE so this fix is needed only
  in a non-default config.

13 years agonew attr_types introduced:
Karel Kozlik [Wed, 26 Sep 2007 12:52:56 +0000 (12:52 +0000)]
new attr_types introduced:
  * fwd_busy_target
  * fwd_noanswer_target
  * fwd_always_target
  * domain_data_version

13 years agointroduced new attr type 'sw_uname_assign_mode' required by serweb
Karel Kozlik [Fri, 21 Sep 2007 14:10:04 +0000 (14:10 +0000)]
introduced new attr type 'sw_uname_assign_mode' required by serweb

13 years agoexpires value is missing in the output of dst blacklist view rpc command
Miklos Tirpak [Fri, 14 Sep 2007 14:50:41 +0000 (14:50 +0000)]
expires value is missing in the output of dst blacklist view rpc command

13 years ago- warning fix
Michal Matyska [Tue, 11 Sep 2007 15:20:02 +0000 (15:20 +0000)]
- warning fix

13 years agoon behalf of Jiri, patch adopted from 2.0 branch
Michal Matyska [Mon, 10 Sep 2007 22:26:59 +0000 (22:26 +0000)]
on behalf of Jiri, patch adopted from 2.0 branch

 *  2007-09-10  introduced phone2uri option which allows NOT to consider
 *              user=phone URIs as TEL URIs

13 years ago- case insensitive for GMT (although rfc3261 explicitely specifies that the
Andrei Pelinescu-Onciul [Mon, 10 Sep 2007 19:55:39 +0000 (19:55 +0000)]
- case insensitive for GMT (although rfc3261 explicitely specifies that the
 date is canse sensitive in practice there are some UAs that use lower case
  GMT, e.g.: "MSSGW(B)" )

13 years agoAllow to compare the snd_ip and to_ip with the AVP value. (Was allowed for ports...
Michal Matyska [Mon, 10 Sep 2007 19:29:44 +0000 (19:29 +0000)]
Allow to compare the snd_ip and to_ip with the AVP value. (Was allowed for ports, not ips.)
For performance purist: I did not measure which code is faster; whether finding the AVP in the list or using DNS name resolution. Using AVP (track and) domain prefix makes the search faster, when AVP is in fallback domains, e.g. for global AVP.

Following code now allowed:
  if (isflagset(GATEWAY)) {
    if (to_ip!=$g.gw_ip) {
  log(1,"Bad gateway IP");

13 years agoeval module:
Tomas Mandys [Mon, 10 Sep 2007 19:02:58 +0000 (19:02 +0000)]
eval module:
- removing dependency on uuid lib
- removing from excluded modules
- fixing SER-298, SER-293 reported by Enrico

13 years ago- fix recently introduced bug
Andrei Pelinescu-Onciul [Fri, 7 Sep 2007 14:39:07 +0000 (14:39 +0000)]
- fix recently introduced bug

13 years agoReplaced rpc->struct_add by rpc->printf for view functions.
Vladimir Marek [Thu, 6 Sep 2007 15:11:09 +0000 (15:11 +0000)]
Replaced rpc->struct_add by rpc->printf for view functions.
If the cache/blacklist contained many entries then SER had problem with
number of chunks. The solution with printf is working for 8000 entries in
the blacklist without any problem.

13 years agofixes SER-304
Michal Matyska [Thu, 6 Sep 2007 12:46:21 +0000 (12:46 +0000)]
fixes SER-304

allow use AVPs and SELECTs as the parameter for realm, e.g.
@authorization["$fd.digest_realm"].uri or

13 years ago- tcp add alias policy changes (experimental): now new aliases are added even
Andrei Pelinescu-Onciul [Wed, 5 Sep 2007 17:20:35 +0000 (17:20 +0000)]
- tcp add alias policy changes (experimental): now new aliases are added even
 if matching aliases for different connections exists. Until now an existing
  alias pointing to some other connection would trigger an error, the reason
  being that someone could try to "steal" a connection. However this turned out
  to affect also normal usage, like UAs behind nats that change the ip, or
  rebooted UAs (that didn't have a chance to close the tcp connection).

13 years ago- fixed bug in list handling (del)
Andrei Pelinescu-Onciul [Tue, 4 Sep 2007 10:01:27 +0000 (10:01 +0000)]
- fixed bug in list handling (del)

13 years ago- fixing bug when writing zero terminator at len+1 instead to len
Tomas Mandys [Fri, 31 Aug 2007 08:18:36 +0000 (08:18 +0000)]
- fixing bug when writing zero terminator at len+1 instead to len

13 years ago- duplicate definition of USE_DST_BLACKLIST is removed
Miklos Tirpak [Fri, 31 Aug 2007 08:12:08 +0000 (08:12 +0000)]
- duplicate definition of USE_DST_BLACKLIST is removed
- typos in USE_DST_BLACKLIST_STATS are corrected

13 years agointegers values were fixed-up as short by mistake
Miklos Tirpak [Fri, 31 Aug 2007 08:07:40 +0000 (08:07 +0000)]
integers values were fixed-up as short by mistake

13 years ago- disable by default path MTU discovery on linux (unfortunately on linux path
Andrei Pelinescu-Onciul [Mon, 27 Aug 2007 23:05:59 +0000 (23:05 +0000)]
- disable by default path MTU discovery on linux (unfortunately on linux path
  MTU discovery is enabled by default even for udp, which produces packets
   with the DF flag set). It can be re-enabled using  the new pmtu_discovery
   config option.
  Patch from Hendrik Scholz (hscholz).
  Closes SER-275.

13 years ago- split init_sock_opt into init_sock_opt, called for new sockets
Andrei Pelinescu-Onciul [Mon, 27 Aug 2007 21:48:56 +0000 (21:48 +0000)]
- split init_sock_opt into init_sock_opt, called for new sockets
 (e.g. on connect) and init_sock_opt_accept() called only for sockets
 created as a result of an accept and which inherit the options from
  the "parent" listening socket (which the O_NONBLOCK exception for
  which no behaviour is specified and which is seems to be inherithed on
   BSDs and solaris, but not on linux).
- init_sock_opt sets also SO_REUSEADDR

13 years agoadded index to make usrloc expires fast
Jiri Kuthan [Mon, 27 Aug 2007 17:30:46 +0000 (17:30 +0000)]
added index to make usrloc expires fast

13 years agoput ifdef reports unreported before
Jiri Kuthan [Sun, 26 Aug 2007 08:19:54 +0000 (08:19 +0000)]
put ifdef reports unreported before

13 years agois_2rr moved into rr parser to allow its usage from other modules
Vaclav Kubart [Fri, 24 Aug 2007 08:29:04 +0000 (08:29 +0000)]
is_2rr moved into rr parser to allow its usage from other modules

13 years ago- detect INADDR_ANY ( or ::) listen addresses
Andrei Pelinescu-Onciul [Thu, 23 Aug 2007 20:43:58 +0000 (20:43 +0000)]
- detect INADDR_ANY  ( or ::) listen addresses
- basic tcp support for INADDR_ANY

13 years agodns_get_server_state() implemented which returns the state of the DNS servers
Miklos Tirpak [Wed, 22 Aug 2007 15:10:13 +0000 (15:10 +0000)]
dns_get_server_state() implemented which returns the state of the DNS servers

13 years agodns_cache_del_nonexp configuration option is introduced: it allows deletion of non...
Miklos Tirpak [Tue, 21 Aug 2007 11:08:15 +0000 (11:08 +0000)]
dns_cache_del_nonexp configuration option is introduced: it allows deletion of non-expired records from the DNS cache
when the cache becomes full. Disabled by default.

13 years ago- improved chances to catch doubles frees on joined fragments
Andrei Pelinescu-Onciul [Mon, 20 Aug 2007 11:09:13 +0000 (11:09 +0000)]
- improved chances to catch doubles frees on joined fragments
 (QM_JOIN_FREE and QM_DEBUG have to be defined).
 Patch from Michal Matyska <>.
Closes SER-296.

13 years ago- applied Michal Matyska <> patch: fixes sercmd/libbinrpc
Andrei Pelinescu-Onciul [Mon, 20 Aug 2007 10:36:37 +0000 (10:36 +0000)]
- applied Michal Matyska <> patch: fixes sercmd/libbinrpc
getting stuck in infinite loop on EOF (ser shutdown).
Closes SER-295.

13 years agoFIX - if hooks are defined then increment hit counter only when a destination is...
Vladimir Marek [Sat, 18 Aug 2007 19:40:59 +0000 (19:40 +0000)]
FIX - if hooks are defined then increment hit counter only when a destination is added into blacklist

13 years ago- write detailed description before lists of all functions and structures
Jan Janak [Tue, 14 Aug 2007 12:24:10 +0000 (12:24 +0000)]
- write detailed description before lists of all functions and structures

13 years agomemset() was sometimes bypassed for some reason in dns_cache_clone_entry()
Miklos Tirpak [Mon, 13 Aug 2007 14:33:57 +0000 (14:33 +0000)]
memset() was sometimes bypassed for some reason in dns_cache_clone_entry()

13 years ago- sip_msg_t and hdr_field_t types defined
Jan Janak [Mon, 13 Aug 2007 12:57:40 +0000 (12:57 +0000)]
- sip_msg_t and hdr_field_t types defined

13 years ago- doxygen configuration updated to the latest doxygen version
Jan Janak [Mon, 13 Aug 2007 12:37:39 +0000 (12:37 +0000)]
- doxygen configuration updated to the latest doxygen version

13 years ago- make doxygen and clean_doxygen targets available in module Makefiles
Jan Janak [Mon, 13 Aug 2007 12:37:02 +0000 (12:37 +0000)]
- make doxygen and clean_doxygen targets available in module Makefiles

13 years ago- support for setting the source address in tcp_send() and tcpconn_get()
Andrei Pelinescu-Onciul [Wed, 1 Aug 2007 00:05:40 +0000 (00:05 +0000)]
- support for setting the source address in tcp_send() and tcpconn_get()
  (should allow for a better tcp force_send_socket() in the future)
- add multiple aliases for each connection, to cover all the search
 possiblities: (dst_ip, dst_port), (local_ip, dst_ip, dst_port),
  (local_ip, local_port, dst_ip, dst_port).
- improved connection hash function

13 years ago- dst blacklist measurements added
Gergely Kovacs [Tue, 31 Jul 2007 13:27:55 +0000 (13:27 +0000)]
- dst blacklist measurements added

13 years ago- DNS cache measurements added
Gergely Kovacs [Tue, 31 Jul 2007 13:27:09 +0000 (13:27 +0000)]
- DNS cache measurements added

13 years ago- dst blacklist and DNS cache measurements added
Gergely Kovacs [Tue, 31 Jul 2007 13:26:05 +0000 (13:26 +0000)]
- dst blacklist and DNS cache measurements added

13 years agoMissing function prototype
Michal Matyska [Tue, 31 Jul 2007 10:21:25 +0000 (10:21 +0000)]
Missing function prototype

13 years ago- iptrtpproxy added to experimental group and excluded from compilation
Tomas Mandys [Mon, 30 Jul 2007 21:42:21 +0000 (21:42 +0000)]
- iptrtpproxy added to experimental group and excluded from compilation

13 years ago- by default do not blacklist 503 replies with no Retry-After, to be
Andrei Pelinescu-Onciul [Mon, 30 Jul 2007 20:38:44 +0000 (20:38 +0000)]
- by default do not blacklist 503 replies with no Retry-After, to be
 rfc conformant (blst_503_def_timeout is now 0 by default)
 (thanks to  Miklos Tirpak <> for the hint)

13 years ago- Retry-After parser missing files (from older commit)
Andrei Pelinescu-Onciul [Mon, 30 Jul 2007 20:19:31 +0000 (20:19 +0000)]
- Retry-After parser missing files (from older commit)

13 years ago- new modules implementing script callable blacklist functions:
Andrei Pelinescu-Onciul [Mon, 30 Jul 2007 20:04:12 +0000 (20:04 +0000)]
- new modules implementing script callable blacklist functions:
   blst_add([timeout]) - adds the message source to the blacklist
   blst_add_retry_after(min, max) - adds the message source to the blacklist
                         using the Retry-After header value as the timeout
                         value (if not present it returns false)
   blst_del() - deletes the message source from the blacklist
   blst_is_blacklisted() - returns true if the message source is in the
   (for more info see the module docs)

13 years ago- added support for automatically blacklist 503 replies sources in tm, using
Andrei Pelinescu-Onciul [Mon, 30 Jul 2007 19:57:39 +0000 (19:57 +0000)]
- added support for automatically blacklist 503 replies sources in tm, using
 the Retry-After header value if present (off by default)
- new tm params: blst_503 - turns 503 source blacklisting support on/off
                 blst_503_def_timeout - default timeout used when now
                                        Retry-After header is found
                 blst_503_min_timeout - minimum allowed timeout
                 blst_503_max_timeout - maximum allowed timeout
   (see tm docs for more info)

13 years ago- added support for parsing the Retry-After header
Andrei Pelinescu-Onciul [Mon, 30 Jul 2007 19:49:09 +0000 (19:49 +0000)]
- added support for parsing the Retry-After header

13 years ago- added MAX_unsigned()
Andrei Pelinescu-Onciul [Mon, 30 Jul 2007 19:43:08 +0000 (19:43 +0000)]
- added MAX_unsigned()

13 years ago- added support for deleting an entry from the blacklist (dst_blacklist_del())
Andrei Pelinescu-Onciul [Mon, 30 Jul 2007 19:42:03 +0000 (19:42 +0000)]
- added support for deleting an entry from the blacklist (dst_blacklist_del())
- added support for adding an entry to the blacklist with a specific timeout
- fixed missing hash stats for _dst_blacklist_lst_find
- added a special flag for 503 replies