Module: sip-router
Branch: master
Commit: 47945782e1459935b1f327abb92fbc1a3ffcd86f
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4794578…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Wed May 6 14:47:14 2009 +0200
core: Consolidate append_str macro usage
The definition of append_str macro was scattered across the source tree,
there were multiple definition of the macro, some of them with different
parameters.
This patch brings the definition of append_str macro into ut.h header
file and removes all other definitions from core and modules.
We chose the version with three parameters where the pointer and the
length of the source string are passed separately to the macro. This is
more flexible than passing both of them within one parameter as str
structure.
All references to append_mem_block have been removed because the same
operation can now be achieved with append_str. In addition to that we
updated parameters passed to append_str where needed, converting one
str parameter to <pointer,len> pair of parameters.
Some modules had yet another version of append_str defined, there we
renamed the macro to some other name to make sure that the local
definition does not conflict with the definition on ut.h
---
lib/kcore/km_ut.h | 11 ----
modules/tm/t_fifo.c | 8 ++--
modules/tm/t_funcs.h | 16 ------
modules/tm/t_msgbuilder.c | 96 ++++++++++++++++++------------------
modules/tm/t_serial.c | 8 ++--
modules_s/acc_syslog/acc_syslog.c | 8 ++--
modules_s/sms/sms_funcs.c | 4 --
msg_translator.c | 6 --
ut.h | 12 +++++
9 files changed, 72 insertions(+), 97 deletions(-)
Diff: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=479…
Module: sip-router
Branch: master
Commit: 00f54c06f2f6d4e4c8a5a004eb07367c93b82329
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=00f54c0…
Author: Jan Janak <jan(a)iptel.org>
Committer: Jan Janak <jan(a)iptel.org>
Date: Wed May 6 11:17:17 2009 +0200
Serial forking functions.
This patch adds two new functions to tm module, t_load_contacts and
t_next_contacts which can be used to implement serial forking.
There are also two new parameters, fr_inv_timer_next and contacts_avp.
Parameter fr_inv_timer_next is similar to fr_inv_timer, the value
of this parameter is used for subsequent branches during serial forking.
The value of contacts_avp is the identifier of the AVP which contains
the list of contacts to be used for serial forking.
The serial forking functions originate from Kamailio where they were
implemented by Juha Heinanen.
---
modules/tm/README | 636 +++++++++++++++++++++--------------------
modules/tm/config.c | 3 +
modules/tm/config.h | 5 +
modules/tm/doc/functions.xml | 79 ++++++
modules/tm/doc/params.xml | 51 ++++
modules/tm/doc/tm.xml | 9 +
modules/tm/t_fifo.c | 22 +--
modules/tm/t_funcs.c | 25 ++-
modules/tm/t_funcs.h | 24 ++-
modules/tm/t_msgbuilder.c | 14 +-
modules/tm/t_serial.c | 519 ++++++++++++++++++++++++++++++++++
modules/tm/t_serial.h | 35 +++
modules/tm/tm.c | 15 +-
13 files changed, 1090 insertions(+), 347 deletions(-)
Diff: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commitdiff;h=00f…