12 years agoErrors are treated as false during the expression evaluation
Miklos Tirpak [Wed, 23 Apr 2008 09:31:44 +0000 (09:31 +0000)]
Errors are treated as false during the expression evaluation
unless the operator is DIFF_OP.

12 years agoremoved ser-oob.cfg from ser Debian package, because it is in ser-oob package
Pavel Kasparek [Tue, 22 Apr 2008 14:57:36 +0000 (14:57 +0000)]
removed ser-oob.cfg from ser Debian package, because it is in ser-oob package

12 years agouse release number in RPM spec file
Alfred E. Heggestad [Mon, 21 Apr 2008 10:54:29 +0000 (10:54 +0000)]
use release number in RPM spec file

12 years agoremove serctl and serunix from RPM spec file
Alfred E. Heggestad [Mon, 21 Apr 2008 10:49:34 +0000 (10:49 +0000)]
remove serctl and serunix from RPM spec file

12 years agochanging all default ip addresses in ser-oob.cfg and debian templates to localhost
Pavel Kasparek [Fri, 18 Apr 2008 09:15:57 +0000 (09:15 +0000)]
changing all default ip addresses in ser-oob.cfg and debian templates to localhost

12 years agoadded functions to allow myself check ony based on port numbers
Nils Ohlmeier [Thu, 17 Apr 2008 20:52:47 +0000 (20:52 +0000)]
added functions to allow myself check ony based on port numbers

12 years ago- install also ser-oob.cfg, in addition to ser.cfg
Jan Janak [Thu, 17 Apr 2008 18:35:21 +0000 (18:35 +0000)]
- install also ser-oob.cfg, in addition to ser.cfg

12 years ago- RURI is not parsed again if parsed_uri_ok=1
Miklos Tirpak [Thu, 17 Apr 2008 16:22:18 +0000 (16:22 +0000)]
- RURI is not parsed again if parsed_uri_ok=1

- new action type, SET_HOSTPORTTRANS_T, and the corresponding
script actions are introduced: sethostporttrans() and

This action accepts an optional transport parameter, and clears the
previous transport param if there was any. It is safer to use this action
instead of SET_HOSTPORT_T in some cases, even if the transport param is
omitted, because the latter can leave the parameter in the RURI
causing troubles.

12 years agofixing debconf templates - debconf does not know integers
Pavel Kasparek [Thu, 17 Apr 2008 12:45:29 +0000 (12:45 +0000)]
fixing debconf templates - debconf does not know integers

12 years ago- set default server_id value to 0
Jan Janak [Wed, 16 Apr 2008 16:08:04 +0000 (16:08 +0000)]
- set default server_id value to 0

12 years agofixed check for min-se (which has to be smaller or equal)
Nils Ohlmeier [Wed, 16 Apr 2008 14:19:59 +0000 (14:19 +0000)]
fixed check for min-se (which has to be smaller or equal)

12 years ago- fixed typo in a flag name
Jan Janak [Wed, 16 Apr 2008 12:31:40 +0000 (12:31 +0000)]
- fixed typo in a flag name
- use loadpath to load modules
- added comment about removing internal headers from messages received from
  utrusted sources
- extract server_id from SER-Server-ID header in registrar

12 years ago- FLAG_PEER_REPLICATE renamed to FLAG_REPL_ENABLED which is what this
Jan Janak [Wed, 16 Apr 2008 11:25:02 +0000 (11:25 +0000)]
- FLAG_PEER_REPLICATE renamed to FLAG_REPL_ENABLED which is what this
  flag really means
- added debconf-configurable server_id option to the configuration file
- the replication source appends SER-Server-ID to the request with its
  own server id

12 years ago- added @sys.server_id select, this select will obtain the ID of the SER
Jan Janak [Wed, 16 Apr 2008 11:19:05 +0000 (11:19 +0000)]
- added @sys.server_id select, this select will obtain the ID of the SER

12 years ago- server_id is configurable through debconf
Jan Janak [Wed, 16 Apr 2008 11:18:15 +0000 (11:18 +0000)]
- server_id is configurable through debconf

12 years ago- added server_id columns to acc, missed_calls, location, and aliases
Jan Janak [Wed, 16 Apr 2008 11:15:06 +0000 (11:15 +0000)]
- added server_id columns to acc, missed_calls, location, and aliases
  tables. These columns will contain the unique ID of the SER server
  that generated or is responsible for the record. This columns makes
  it possible to merge the contents of the tables within a cluster or
  share tables among the SER servers within a cluster.

12 years ago- SER-Server-ID RADIUS attribute
Jan Janak [Tue, 15 Apr 2008 21:23:59 +0000 (21:23 +0000)]
- SER-Server-ID RADIUS attribute

12 years ago- fixes: missing extern for variables declared in *.h files (can cause
Andrei Pelinescu-Onciul [Tue, 15 Apr 2008 17:38:33 +0000 (17:38 +0000)]
- fixes: missing extern for variables declared in *.h files (can cause
  different symbols with the same name => unexpected bugs)

12 years ago- darwin link fix
Andrei Pelinescu-Onciul [Mon, 14 Apr 2008 04:47:34 +0000 (04:47 +0000)]
- darwin link fix

12 years ago- new configuration option server_id added, this option can be used to
Jan Janak [Mon, 14 Apr 2008 01:46:03 +0000 (01:46 +0000)]
- new configuration option server_id added, this option can be used to
  discriminate servers within a cluster, to be used by modules like
  acc_db and usrloc

12 years agoFixed typo in the flags
Nils Ohlmeier [Sun, 13 Apr 2008 14:48:16 +0000 (14:48 +0000)]
Fixed typo in the flags

12 years agofixed linker error because of undefined symbols on Mac OS X/darwin
Nils Ohlmeier [Sun, 13 Apr 2008 14:39:01 +0000 (14:39 +0000)]
fixed linker error because of undefined symbols on Mac OS X/darwin

12 years ago(expr1 != expr2) is evaluated true if at least one of
Miklos Tirpak [Sun, 13 Apr 2008 05:12:55 +0000 (05:12 +0000)]
(expr1 != expr2) is evaluated true if at least one of
the expressions does not exist, which can be a missing AVP
or select. (expr1 != expr2) and !(expr1 == expr2) mean the same
from now in this case.

12 years agofixed one-way RTP proxy in case of failure route
Nils Ohlmeier [Thu, 10 Apr 2008 13:48:35 +0000 (13:48 +0000)]
fixed one-way RTP proxy in case of failure route

12 years agot_reply() must be used insted of sl_reply() if the transaction
Miklos Tirpak [Thu, 10 Apr 2008 13:24:25 +0000 (13:24 +0000)]
t_reply() must be used insted of sl_reply() if the transaction
already exists.

12 years agoThe call is rejected if @from.uri cannot be looked up during
Miklos Tirpak [Thu, 10 Apr 2008 10:41:54 +0000 (10:41 +0000)]
The call is rejected if @from.uri cannot be looked up during
non-register authentication.

It is not enough to check whether $fu.uid != $fr.uid, because
the expression is true only if both AVPs exist, and their values
are not equal. If one (or both) of the AVPs is missing, the expression
is false. (strange behaviour of not equal operator with AVPs)

12 years ago- make bin will take prefix into account, e.g.: make prefix=/foo bin
Andrei Pelinescu-Onciul [Tue, 8 Apr 2008 16:26:49 +0000 (16:26 +0000)]
- make bin will take prefix into account, e.g.: make prefix=/foo bin
(it's not hardwired anymore to /usr/local)

12 years agoverify the return value of append_branch()
Miklos Tirpak [Mon, 7 Apr 2008 13:31:24 +0000 (13:31 +0000)]
verify the return value of append_branch()

12 years ago[Port from 2.0] Fixed authentication issue for non-REGISTER requests
Nils Ohlmeier [Fri, 4 Apr 2008 15:56:15 +0000 (15:56 +0000)]
[Port from 2.0] Fixed authentication issue for non-REGISTER requests
Thanks to Stefan Sayer for this out!

12 years agoTwo configuration variables are introduced that can help
Miklos Tirpak [Fri, 4 Apr 2008 08:40:53 +0000 (08:40 +0000)]
Two configuration variables are introduced that can help
troubleshooting memory leaks: mem_dump_pkg, and mem_dump_shm

sercmd cfg.set_now_int mem_dump_pkg <pid_number>
  Dumps the pkg memory status of the given processs

sercmd cfg.set_now_int mem_dump_shm 1
  Dumps the shm memory status

12 years agoinclude cfg_rpc module in the standard module list
Miklos Tirpak [Tue, 1 Apr 2008 14:20:50 +0000 (14:20 +0000)]
include cfg_rpc module in the standard module list

12 years agoadded missing '{'
Vaclav Kubart [Tue, 1 Apr 2008 13:14:59 +0000 (13:14 +0000)]
added missing '{'

12 years agomissing include statement is fixed
Miklos Tirpak [Tue, 1 Apr 2008 13:05:23 +0000 (13:05 +0000)]
missing include statement is fixed

12 years agoadding sems to dependencies of ser-ai1 package
Pavel Kasparek [Tue, 1 Apr 2008 12:50:28 +0000 (12:50 +0000)]
adding sems to dependencies of ser-ai1 package

12 years agoadded registrar module modparam to limit maximum number of contacts
Pavel Kasparek [Tue, 1 Apr 2008 09:37:21 +0000 (09:37 +0000)]
added registrar module modparam to limit maximum number of contacts

12 years agoVarious warnings fixed (mostly appearing with 64b compiles).
Bogdan Pintea [Mon, 31 Mar 2008 18:57:54 +0000 (18:57 +0000)]
Various warnings fixed (mostly appearing with 64b compiles).

Closes issue SER-343.

12 years agoNew selects exported, allowing to dissecting the content of an attribute by
Bogdan Pintea [Mon, 31 Mar 2008 18:41:48 +0000 (18:41 +0000)]
New selects exported, allowing to dissecting the content of an attribute by
interpreting it as a "name-addr" value.

$loaded_uri = "\"display name\" <UserName@HostName;param>"
$user = @avp["$loaded_uri"].nameaddr.uri.user

'$user' will contain "UserName".

Closes issue #SER-365.

12 years agoNew TM export - cancel_all_uacs() - to allow canceling all branches of a
Bogdan Pintea [Mon, 31 Mar 2008 18:19:49 +0000 (18:19 +0000)]
New TM export - cancel_all_uacs() - to allow canceling all branches of a
transaction. (Closes issue #SER-253).

Some error messages are corrected to reflect new function name.

(Bits of code for the AS support also added; issue #SER-346 in the works.)

12 years agoMessage flags are updated in shared memory even if they are modified
Miklos Tirpak [Mon, 31 Mar 2008 16:26:08 +0000 (16:26 +0000)]
Message flags are updated in shared memory even if they are modified
after the first t_newtran() function call.
Fixes SER-297

12 years agoNew script directive to allow specifying the modules' path. This is equivalent
Bogdan Pintea [Mon, 31 Mar 2008 06:35:57 +0000 (06:35 +0000)]
New script directive to allow specifying the modules' path. This is equivalent
to the command line parameter -L.


loadpath "/usr/lib/ser/modules/"
loadmodule "maxfwd"

Closes issue #SER-364.

12 years agoDo not print out "no more records" ERROR message when use_dns_failover
Miklos Tirpak [Wed, 26 Mar 2008 13:22:36 +0000 (13:22 +0000)]
Do not print out "no more records" ERROR message when use_dns_failover
is enabled, it is not an error, simply there is no more destination
in the SRV or A record.

12 years agoMessage lumps are saved to shared memory when t_relay() is called
Miklos Tirpak [Wed, 26 Mar 2008 11:06:03 +0000 (11:06 +0000)]
Message lumps are saved to shared memory when t_relay() is called
the first time, instead of saving them by t_newtran(). The advantage is
that the SIP msg modifications that are made after t_newtran() are saved
as well, and they are propagated to failure route.
t_save_lumps() function is introduced, it can be used to force saving
the lumps before t_relay(), check the doc for details.
Fixes SER-303

The change can be reverted by uncommenting #define POSTPONE_MSG_CLONING
in sip_msg.h.

12 years agoselect_list() function must not return the global class when the global
Miklos Tirpak [Wed, 26 Mar 2008 09:47:18 +0000 (09:47 +0000)]
select_list() function must not return the global class when the global
flag is not set.
Fixes SER-368

12 years ago- added support for extra authentication checks along with comments explaining
Jan Janak [Fri, 21 Mar 2008 13:14:16 +0000 (13:14 +0000)]
- added support for extra authentication checks along with comments explaining
  what is checked when and why. Disabled by default.

12 years ago- Session Timer proxy support is introduced (RFC 4028)
Miklos Tirpak [Tue, 18 Mar 2008 17:04:16 +0000 (17:04 +0000)]
- Session Timer proxy support is introduced (RFC 4028)
- custom config parameters are added to the script
- t_relay_cancel() is enabled to bypass the routing logic if possible
- NAT fixes (patch from Nils Ohlmeier)
- Record routing and loose routing is split into two parts to support
encoding of AVPs that are lately set in the script (patch from
Nils Ohlmeier)

12 years agoon_sl_reply module parameter is introduced:
Miklos Tirpak [Mon, 17 Mar 2008 11:16:19 +0000 (11:16 +0000)]
on_sl_reply module parameter is introduced:
It defines the route block that is called if a reply with no associated
transaction is received.
Closes SER-330

12 years agot_drop_replies() script function is introduced.
Miklos Tirpak [Mon, 17 Mar 2008 10:39:51 +0000 (10:39 +0000)]
t_drop_replies() script function is introduced.
It can be used to drop the received replies in failure_route block,
and disable all the previous replies to be selected again.
Closes SER-301

12 years agofixing function name in the error message
Miklos Tirpak [Mon, 17 Mar 2008 09:45:22 +0000 (09:45 +0000)]
fixing function name in the error message

12 years agotypo fixed
Pavel Kasparek [Thu, 13 Mar 2008 14:17:39 +0000 (14:17 +0000)]
typo fixed

12 years agofixing nathelper module parameter name to natping_crlf
Pavel Kasparek [Thu, 13 Mar 2008 11:12:51 +0000 (11:12 +0000)]
fixing nathelper module parameter name to natping_crlf

12 years ago- fix: sip_msg_cloner wrongly translated parsed_uri when the message had
Andrei Pelinescu-Onciul [Wed, 12 Mar 2008 20:42:30 +0000 (20:42 +0000)]
- fix: sip_msg_cloner wrongly translated parsed_uri when the message had
 new_uri set (probably not seen until now because we set parsed_uri_ok to 0
  on failure route and we didn't have non-failure callbacks causing the uri to
  be reparsed)

12 years ago- use cancel_b_method also when CANCEL-ing due to received 6xx
Andrei Pelinescu-Onciul [Tue, 11 Mar 2008 23:59:27 +0000 (23:59 +0000)]
- use cancel_b_method also when CANCEL-ing due to received 6xx

12 years ago- cancel_b_method is now 1 by default => changes default cancel unreplied
Andrei Pelinescu-Onciul [Tue, 11 Mar 2008 22:05:44 +0000 (22:05 +0000)]
- cancel_b_method is now 1 by default => changes default cancel unreplied
 branch behaviour: keep retransmitting the INVITE until a response is received
 or the timeout kicks in (if the received response is provisional a CANCEL
 will be automatically sent back). To revert to the old behaviour (stop
 retransmissions and send back fake 487s) use
 modparam("tm", "cancel_b_method", 0).

12 years agouncommented disabling crlf natping
Jiri Kuthan [Mon, 10 Mar 2008 20:58:19 +0000 (20:58 +0000)]
uncommented disabling crlf natping

12 years agoreparse_on_dns_failover module parameter is introduced
Miklos Tirpak [Mon, 10 Mar 2008 14:14:10 +0000 (14:14 +0000)]
reparse_on_dns_failover module parameter is introduced
(I forgot the commint the config files)

12 years ago- Requests after a DNS failover are constructed from the outgoing
Miklos Tirpak [Mon, 10 Mar 2008 14:09:01 +0000 (14:09 +0000)]
- Requests after a DNS failover are constructed from the outgoing
message buffer of the failed branch instead of from the incomming
- reparse_on_dns_failover module parameter is introduced.
Closes SER-300

12 years agolog message is changed to debug level in cfg_lookup_var(),
Miklos Tirpak [Mon, 10 Mar 2008 10:37:24 +0000 (10:37 +0000)]
log message is changed to debug level in cfg_lookup_var(),
the message does not indicate an error in the framework

12 years agodebian debconf - forgotten +++ removed
Pavel Kasparek [Mon, 10 Mar 2008 10:12:28 +0000 (10:12 +0000)]
debian debconf - forgotten +++ removed

12 years ago- missing docs for the cancel_b_method tm parameter
Andrei Pelinescu-Onciul [Mon, 10 Mar 2008 09:58:15 +0000 (09:58 +0000)]
- missing docs for the cancel_b_method tm parameter

12 years agodebian debconf configuration - new separate question for ip address used for sending...
Pavel Kasparek [Mon, 10 Mar 2008 09:54:34 +0000 (09:54 +0000)]
debian debconf configuration - new separate question for ip address used for sending REGISTER replication

12 years ago- added a new tm parameter (cancel_b_method) that selects between 3 different
Andrei Pelinescu-Onciul [Sat, 8 Mar 2008 00:20:36 +0000 (00:20 +0000)]
- added a new tm parameter (cancel_b_method) that selects between 3 different
behaviours when attempting to cancel a branch where no reply was received:
 0 (default) - stop request retransmission and send back a fake 487 (old ser
 behaviour) ;
 1 - keep retransmitting the request until a reply is received or the final
  reply timeout kicks in ;
 2 - stop request retransmission and send and retransmit a cancel on the
  branch (this is not rfc conformant, but IMHO it wouldn't hurt) .

12 years agoadded improved and modified make_and_install wrapper script to simplify...
Greger V. Teigre [Fri, 7 Mar 2008 08:54:18 +0000 (08:54 +0000)]
added improved and modified make_and_install wrapper script to simplify compile and installation. Run ./make_and_install to see docs. NOTE! Currently only tested for bash, patches to improve compatibility are welcome!

12 years ago- base64 functions from rr module moved to libcds to make them accessible from
Jan Janak [Thu, 6 Mar 2008 12:14:10 +0000 (12:14 +0000)]
- base64 functions from rr module moved to libcds to make them accessible from
  other modules.

12 years agovarious patches from Alfred, anti-relay-to-private-address-space
Jiri Kuthan [Wed, 5 Mar 2008 05:17:20 +0000 (05:17 +0000)]
various patches from Alfred, anti-relay-to-private-address-space
protection added

12 years ago- fixed latest changes: restored @ (don't show .d creation commands), restored
Andrei Pelinescu-Onciul [Mon, 3 Mar 2008 19:01:18 +0000 (19:01 +0000)]
- fixed latest changes: restored @ (don't show .d creation commands), restored
  set -e, replaced {} with () (more portable)

12 years agoFixed %.d:%.c rule to fail if the target file was not created or is empty
Ondrej Martinek [Mon, 3 Mar 2008 16:35:44 +0000 (16:35 +0000)]
Fixed %.d:%.c rule to fail if the target file was not created or is empty

12 years ago- warning fix
Andrei Pelinescu-Onciul [Sun, 2 Mar 2008 15:30:52 +0000 (15:30 +0000)]
- warning fix

12 years ago- replaced strndup() in get_abs_pathname() since strndup is a GNU extensions
Andrei Pelinescu-Onciul [Sun, 2 Mar 2008 15:11:59 +0000 (15:11 +0000)]
- replaced strndup() in get_abs_pathname() since strndup is a GNU extensions
  not present in non glibc based OSes

12 years ago- .d generation fix: sed with POSIX.1 re (e.g. Darwin, Solaris) does not
Andrei Pelinescu-Onciul [Sun, 2 Mar 2008 15:04:16 +0000 (15:04 +0000)]
- .d generation fix: sed with POSIX.1 re (e.g. Darwin, Solaris) does not
  support '\?' (or '\+' or '\|')

12 years ago- store all the module response_f callbacks in an array (small performance
Andrei Pelinescu-Onciul [Fri, 29 Feb 2008 20:21:58 +0000 (20:21 +0000)]
- store all the module response_f callbacks in an array (small performance
 improvement when lots of modules are loaded)

12 years agolog_facility config parameter is declared in the cfg framework
Miklos Tirpak [Fri, 29 Feb 2008 10:04:49 +0000 (10:04 +0000)]
log_facility config parameter is declared in the cfg framework

12 years ago- new script function: t_grep_status("code") -- returns true if any branch received...
Andrei Pelinescu-Onciul [Thu, 28 Feb 2008 23:32:10 +0000 (23:32 +0000)]
- new script function: t_grep_status("code") -- returns true if any branch received code as the final reply (or if no final reply was yet received, but a
 "code" provisional reply).  [old patch]

12 years ago- slight optimization of the pre-RFC3261 matching
Andrei Pelinescu-Onciul [Thu, 28 Feb 2008 23:23:45 +0000 (23:23 +0000)]
- slight optimization of the pre-RFC3261 matching

12 years ago- try matching e2e acks in t_lookup() only for transactions which are
Andrei Pelinescu-Onciul [Thu, 28 Feb 2008 23:12:53 +0000 (23:12 +0000)]
- try matching e2e acks in t_lookup() only for transactions which are
interested in them (have the TMCB_E2EACK_IN or TMCB_E2EACK_RETR_IN callbacks
 registered). This should improve performance a little in the common case
 when no E2EACK callbacks are registered.
- e2e ack fix: when matching e2e acks use the saved totag list => no more
  problems with possible wrong transaction matching when a downstream forked
  INVITE arrives and more then one branch is replied with 2xx.

12 years ago- e2e ack related fixes: - atomically mark seen e2e ack for a specific
Andrei Pelinescu-Onciul [Thu, 28 Feb 2008 23:07:00 +0000 (23:07 +0000)]
- e2e ack related fixes: - atomically mark seen e2e ack for a specific
                           branch/totag (the TMCB_E2EACK_IN callbacks should
                           now be called only once)
                         - for local transaction remember totags only if
                           the TMCB_LOCAL_COMPLETED callback is registered
                           (we use totags to avoid calling this callback
                            multiple times for the same retrans. final reply)

12 years ago- fix: try to match acks first to negative replied transaction and only if
Andrei Pelinescu-Onciul [Thu, 28 Feb 2008 01:31:47 +0000 (01:31 +0000)]
- fix: try to match acks first to negative replied transaction and only if
this fails take into account possible e2e proxied transaction matching (
matching to transactions replied w/ 2xx). This bug will appear if we have
several forked invites arriving at the proxy and one of them gets a negative
reply while another one gets a 2xx => the 2xx replied one might steal the
negative ack. Note: this doesn't fix the same problem when all the invites are
replied with 2xx (in this case all the e2e acks will be matched to the last
invite, but this would be a problem only for properly accounting e2e acks).
Thanks to Bogdan Pintea for spotting it.
Related to SER-346.

12 years ago- cleanup: e2e_cancel() sets the cancel transaction label to be the same as the invit...
Andrei Pelinescu-Onciul [Wed, 27 Feb 2008 22:21:25 +0000 (22:21 +0000)]
- cleanup: e2e_cancel() sets the cancel transaction label to be the same as the invite one only if E2E_CANCEL_HOP_BY_HOP is not defined. This is not a bugfix, because even if the labels are the same and the cancel is sent hop by hop there won't be any problem: the upstream cancel replies will match only the invite transaction and not the cancel, because the cancel transaction always has 0 branches in this case (it's used only for sending a reply back downstream).
Related to SER-346.

12 years ago- t_check_status() fix: in some error case a noninit pointer could be used
Andrei Pelinescu-Onciul [Tue, 26 Feb 2008 18:12:46 +0000 (18:12 +0000)]
- t_check_status() fix: in some error case a noninit pointer could be used
 (patch from Bogdan Pintea <>, part of SER-346)

12 years ago- stop retransmissions even if a final reply is received before we have
Andrei Pelinescu-Onciul [Tue, 26 Feb 2008 17:37:59 +0000 (17:37 +0000)]
- stop retransmissions even if a final reply is received before we have
 got a chance to start the retransmission timers.
Closes SER-362.

12 years agoSelect fixup is postponed until the config is shmized, if the fixup
Miklos Tirpak [Tue, 26 Feb 2008 17:07:35 +0000 (17:07 +0000)]
Select fixup is postponed until the config is shmized, if the fixup
fails at parsing time. It can happen that the config group is not ready
at parsing time (dynamic group), but a module tries to parse a @cfg_get
select call in mod_init, or when the modparams are parsed.

12 years agoadded depenedency to serweb to ser-ai1 meta-package
Pavel Kasparek [Tue, 26 Feb 2008 15:34:54 +0000 (15:34 +0000)]
added depenedency to serweb to ser-ai1 meta-package

12 years agoCall set_final_timer() only if the reply is really going to be
Miklos Tirpak [Tue, 26 Feb 2008 09:53:06 +0000 (09:53 +0000)]
Call set_final_timer() only if the reply is really going to be
sent out.
Closes SER-302

12 years agoDo not check uac->request.t_active when performing DNS failover
Miklos Tirpak [Tue, 26 Feb 2008 08:43:45 +0000 (08:43 +0000)]
Do not check uac->request.t_active when performing DNS failover
upon receiving a 503 response, t_active is always 0 in this case.
Closes SER-361

12 years agot_reset_fr(), t_reset_retr(), and t_reset_max_lifetime() are added,
Miklos Tirpak [Mon, 25 Feb 2008 08:57:42 +0000 (08:57 +0000)]
t_reset_fr(), t_reset_retr(), and t_reset_max_lifetime() are added,
they can be used to reset the timer values to the default setting.
Closes SER-360

12 years ago- make config parse error stick out
Andrei Pelinescu-Onciul [Sat, 23 Feb 2008 13:35:04 +0000 (13:35 +0000)]
- make config parse error stick out
 Patch from Bogdan Pintea <>.
Closes: SER-337

12 years ago- fix/improvement: the cmd line option '-c' returns -1, no matter if config is
Andrei Pelinescu-Onciul [Sat, 23 Feb 2008 13:21:53 +0000 (13:21 +0000)]
- fix/improvement: the cmd line option '-c' returns -1, no matter if config is
 OK or not, making it difficult to use from start scripts that want to check
 the config first. Now it returns 0 if the config is ok.i
 Patch from Bogdan Pintea <>.
Closes SER-336.

12 years ago- fix: return status not checked when converting a string into a number in
Andrei Pelinescu-Onciul [Sat, 23 Feb 2008 13:10:19 +0000 (13:10 +0000)]
- fix: return status not checked when converting a string into a number in
comp_str(...) (used when comparing string to numbers in ser.cfg). Patch from
  Bogdan Pintea <>.
Closes SER-338.

12 years ago- CFG_ATOMIC flag is introduced: indicates that the variable can
Miklos Tirpak [Thu, 21 Feb 2008 11:09:23 +0000 (11:09 +0000)]
- CFG_ATOMIC flag is introduced: indicates that the variable can
be changed at any time, there is no need to wait for the SIP
message processing to finish

- debug config parameter is changed to CFG_ATOMIC type

12 years agoNULL child callback value was not checked, when a cfg driver called
Miklos Tirpak [Wed, 20 Feb 2008 14:52:23 +0000 (14:52 +0000)]
NULL child callback value was not checked, when a cfg driver called
cfg_set_now() before forking.

12 years ago- tcp flags cleanup (preparation for bigger tls related changes)
Andrei Pelinescu-Onciul [Wed, 20 Feb 2008 14:37:29 +0000 (14:37 +0000)]
- tcp flags cleanup (preparation for bigger tls related changes)

12 years agocfg_get_handle() is introduced, the function can be used to get the handle
Miklos Tirpak [Wed, 20 Feb 2008 12:37:42 +0000 (12:37 +0000)]
cfg_get_handle() is introduced, the function can be used to get the handle
of a module config group. Modules can read each other's configuration
if neccessary this way.

12 years ago- fix: compile problems in io_watch_add if ser is compiled on linux with
Andrei Pelinescu-Onciul [Tue, 19 Feb 2008 15:42:17 +0000 (15:42 +0000)]
- fix: compile problems in io_watch_add if ser is compiled on linux with
NO_SIGIO=1 (patch from  Ondrej Martinek <>)

12 years agofixing wrong placement of cfg_update() (thanks to Ondrej Martinek)
Miklos Tirpak [Mon, 18 Feb 2008 13:47:51 +0000 (13:47 +0000)]
fixing wrong placement of cfg_update() (thanks to Ondrej Martinek)

12 years agominor simplification: some memcpy()s are replaced with assignment
Miklos Tirpak [Mon, 18 Feb 2008 10:40:21 +0000 (10:40 +0000)]
minor simplification: some memcpy()s are replaced with assignment

12 years ago- adding any_uri.transport select
Michal Matyska [Fri, 15 Feb 2008 17:37:24 +0000 (17:37 +0000)]
- adding any_uri.transport select
NOTE: if there is no transport parameter in the uri, it returns the default transport based on the uri type (sip/sips).

12 years ago- fix e2e ACK with maddr in request-uri
Michal Matyska [Fri, 15 Feb 2008 13:58:30 +0000 (13:58 +0000)]
- fix e2e ACK with maddr in request-uri

12 years agotm module parameters are changed to use the configuration framework,
Miklos Tirpak [Fri, 15 Feb 2008 12:11:46 +0000 (12:11 +0000)]
tm module parameters are changed to use the configuration framework,
that means the parameters are changeable on-the-fly.
("fr_timer_avp", "fr_inv_timer_avp", and "tw_append" are left untouched)

12 years agoCFG_UNREF is moved outside of the lock in cfg_install_global function
Miklos Tirpak [Fri, 15 Feb 2008 09:13:39 +0000 (09:13 +0000)]
CFG_UNREF is moved outside of the lock in cfg_install_global function
(shm_free()s might take longer)
Patch from Andrei

12 years agofixing the parameter of the per-child process callback, it did not
Miklos Tirpak [Wed, 13 Feb 2008 16:14:21 +0000 (16:14 +0000)]
fixing the parameter of the per-child process callback, it did not
alway contain the variable name properly

12 years agodo not allow dns_servers_no to be set higher than the number of
Miklos Tirpak [Wed, 13 Feb 2008 15:25:13 +0000 (15:25 +0000)]
do not allow dns_servers_no to be set higher than the number of
DNS servers defined in /etc/resolv.conf