Module: sip-router
Branch: kamailio_3.0
Commit: 1cae9198b490c833a44091974811caec8d8feef5
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1cae919…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Thu Mar 4 13:16:06 2010 +0100
makefile: fix modules config overwrite
A config file provided by a module was installed even if a
previous version was already installed, overwriting the old
version. Now if a file with the same name already exists, the
module config file will be installed with a .sample extension
added (so only .sample will be overwritten, never an active .cfg).
Reported-by: Klaus Darilion klaus.mailinglists pernau at
Closes FlySpray#38 .
(cherry picked from commit 6c0de64647038072ba1959ead39dcc601fd6292c)
---
Makefile.modules | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/Makefile.modules b/Makefile.modules
index 1f226ba..27cd0cd 100644
--- a/Makefile.modules
+++ b/Makefile.modules
@@ -16,6 +16,8 @@
# inside modules or libs) (andrei)
# 2009-10-01 added support for automatically installing extra utils,
# scripts and cfg files (andrei)
+# 2010-03-04 don't overwrite already installed .cfgs, save the .cfg as
+# .sample in this case (andrei)
#
#
@@ -209,10 +211,17 @@ install-cfg: $(cfg_prefix)/$(cfg_dir)
@for r in $(MOD_INSTALL_CFGS) ; do \
if [ -n "$$r" ]; then \
if [ -f "$$r" ]; then \
+ n=`basename "$$r"` ; \
$(call try_err, $(INSTALL_TOUCH) \
- $(cfg_prefix)/$(cfg_dir)/`basename "$$r"` ); \
+ "$(cfg_prefix)/$(cfg_dir)/$$n.sample" ); \
$(call try_err,\
- $(INSTALL_CFG) "$$r" $(cfg_prefix)/$(cfg_dir) ); \
+ $(INSTALL_CFG) "$$r" \
+ "$(cfg_prefix)/$(cfg_dir)/$$n.sample"); \
+ if [ -z "${skip_cfg_install}" -a \
+ ! -f "$(cfg_prefix)/$(cfg_dir)$$n" ]; then \
+ mv -f $(cfg_prefix)/$(cfg_dir)$$n.sample \
+ $(cfg_prefix)/$(cfg_dir)$$n; \
+ fi ; \
else \
echo "ERROR: $$r not found" ; \
if [ ${err_fail} = 1 ] ; then \
Module: sip-router
Branch: sr_3.0
Commit: e0c8ec8642eb683f06455f0b516754f1465aa2db
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e0c8ec8…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Thu Mar 4 13:16:06 2010 +0100
makefile: fix modules config overwrite
A config file provided by a module was installed even if a
previous version was already installed, overwriting the old
version. Now if a file with the same name already exists, the
module config file will be installed with a .sample extension
added (so only .sample will be overwritten, never an active .cfg).
Reported-by: Klaus Darilion klaus.mailinglists pernau at
Closes FlySpray#38 .
(cherry picked from commit 6c0de64647038072ba1959ead39dcc601fd6292c)
---
Makefile.modules | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/Makefile.modules b/Makefile.modules
index 1f226ba..27cd0cd 100644
--- a/Makefile.modules
+++ b/Makefile.modules
@@ -16,6 +16,8 @@
# inside modules or libs) (andrei)
# 2009-10-01 added support for automatically installing extra utils,
# scripts and cfg files (andrei)
+# 2010-03-04 don't overwrite already installed .cfgs, save the .cfg as
+# .sample in this case (andrei)
#
#
@@ -209,10 +211,17 @@ install-cfg: $(cfg_prefix)/$(cfg_dir)
@for r in $(MOD_INSTALL_CFGS) ; do \
if [ -n "$$r" ]; then \
if [ -f "$$r" ]; then \
+ n=`basename "$$r"` ; \
$(call try_err, $(INSTALL_TOUCH) \
- $(cfg_prefix)/$(cfg_dir)/`basename "$$r"` ); \
+ "$(cfg_prefix)/$(cfg_dir)/$$n.sample" ); \
$(call try_err,\
- $(INSTALL_CFG) "$$r" $(cfg_prefix)/$(cfg_dir) ); \
+ $(INSTALL_CFG) "$$r" \
+ "$(cfg_prefix)/$(cfg_dir)/$$n.sample"); \
+ if [ -z "${skip_cfg_install}" -a \
+ ! -f "$(cfg_prefix)/$(cfg_dir)$$n" ]; then \
+ mv -f $(cfg_prefix)/$(cfg_dir)$$n.sample \
+ $(cfg_prefix)/$(cfg_dir)$$n; \
+ fi ; \
else \
echo "ERROR: $$r not found" ; \
if [ ${err_fail} = 1 ] ; then \
Module: sip-router
Branch: master
Commit: 6c0de64647038072ba1959ead39dcc601fd6292c
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6c0de64…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Thu Mar 4 13:16:06 2010 +0100
makefile: fix modules config overwrite
A config file provided by a module was installed even if a
previous version was already installed, overwriting the old
version. Now if a file with the same name already exists, the
module config file will be installed with a .sample extension
added (so only .sample will be overwritten, never an active .cfg).
Reported-by: Klaus Darilion klaus.mailinglists pernau at
Closes FlySpray#38 .
---
Makefile.modules | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/Makefile.modules b/Makefile.modules
index 1f226ba..27cd0cd 100644
--- a/Makefile.modules
+++ b/Makefile.modules
@@ -16,6 +16,8 @@
# inside modules or libs) (andrei)
# 2009-10-01 added support for automatically installing extra utils,
# scripts and cfg files (andrei)
+# 2010-03-04 don't overwrite already installed .cfgs, save the .cfg as
+# .sample in this case (andrei)
#
#
@@ -209,10 +211,17 @@ install-cfg: $(cfg_prefix)/$(cfg_dir)
@for r in $(MOD_INSTALL_CFGS) ; do \
if [ -n "$$r" ]; then \
if [ -f "$$r" ]; then \
+ n=`basename "$$r"` ; \
$(call try_err, $(INSTALL_TOUCH) \
- $(cfg_prefix)/$(cfg_dir)/`basename "$$r"` ); \
+ "$(cfg_prefix)/$(cfg_dir)/$$n.sample" ); \
$(call try_err,\
- $(INSTALL_CFG) "$$r" $(cfg_prefix)/$(cfg_dir) ); \
+ $(INSTALL_CFG) "$$r" \
+ "$(cfg_prefix)/$(cfg_dir)/$$n.sample"); \
+ if [ -z "${skip_cfg_install}" -a \
+ ! -f "$(cfg_prefix)/$(cfg_dir)$$n" ]; then \
+ mv -f $(cfg_prefix)/$(cfg_dir)$$n.sample \
+ $(cfg_prefix)/$(cfg_dir)$$n; \
+ fi ; \
else \
echo "ERROR: $$r not found" ; \
if [ ${err_fail} = 1 ] ; then \
Hello,
I am pleased to announce a dedicated event in London, Tuesday, March 9
afternoon, where to present the version 3.0 and latest developments in
Kamailio and SIP Router projects. The event includes as well
presentations from various players in the VoIP and SIP market, more
details at:
http://www.kamailio.org/mos/view/Present-and-Future-of-SIP-Routing-2010-Lon…
It is a free event, the number of seats is limited, room being available
courtesy of Sun Microsystems (address 55 King William St, London EC4),
therefore the first come first serve policy is applied. You can also
enroll for a presentation, just send a short description about the topic
in the registration email.
Hope to see many of you in London next week,
Daniel
--
Daniel-Constantin Mierla
Kamailio SIP Router Masterclass, Berlin, March 22-26, 2010
* http://www.asipto.com/index.php/sip-router-masterclass/
Module: sip-router
Branch: kamailio_3.0
Commit: 462dbe484d6f8d796092b1ab634caf954112d3d5
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=462dbe4…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Fri Feb 26 13:39:55 2010 +0100
tls: TLS_MALLOC_DBG can now be set on make cfg
Enabling tls extra malloc debugging info, does not require anymore
editing tls_init.c. It can be enabled at cfg time
(make cfg extra_defs=-DTLS_MALLOC_DBG) or at compile/re-compile
time ( make -C modules/tls clean;
make -C modules/tls extra_defs=-DTLS_MALLOC_DBG).
When TLS_MALLOC_DBG is enabled, an extra warning will be printed
at compile time. NO_TLS_MALLOC_DBG takes precedence over
TLS_MALLOC_DBG.
(cherry picked from commit 9bc19d4994f20aa354092aba9ae784de91547fc6)
---
modules/tls/tls_init.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/modules/tls/tls_init.c b/modules/tls/tls_init.c
index b0f07f9..5c8e832 100644
--- a/modules/tls/tls_init.c
+++ b/modules/tls/tls_init.c
@@ -115,12 +115,16 @@ int tls_force_run = 0; /* ignore some start-up sanity checks, use it
const SSL_METHOD* ssl_methods[TLS_USE_SSLv23 + 1];
+#ifdef NO_TLS_MALLOC_DBG
#undef TLS_MALLOC_DBG /* extra malloc debug info from openssl */
+#endif /* NO_TLS_MALLOC_DBG */
+
/*
* Wrappers around SER shared memory functions
* (which can be macros)
*/
#ifdef TLS_MALLOC_DBG
+#warning "tls module compiled with malloc debugging info (extra overhead)"
#include <execinfo.h>
/*
Module: sip-router
Branch: kamailio_3.0
Commit: 95ed848096c03dee4f9d0cf458a1d8e15e836dee
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=95ed848…
Author: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei(a)iptel.org>
Date: Mon Feb 22 18:01:26 2010 +0100
tm: onreply_route: fix cleanup after DROP
After a DROP in the onreply_route the avp lists where not restored
to their original values and the possible msg flags changes in the
script were dropped.
(cherry picked from commit ba15378ef66a11d3cbd6862aa2bfb060d099ca03)
---
modules/tm/t_reply.c | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)
diff --git a/modules/tm/t_reply.c b/modules/tm/t_reply.c
index 7c5c78e..69d22a2 100644
--- a/modules/tm/t_reply.c
+++ b/modules/tm/t_reply.c
@@ -2038,13 +2038,6 @@ int reply_received( struct sip_msg *p_msg )
LOCK_REPLIES( t );
replies_locked=1;
run_top_route(onreply_rt.rlist[t->on_reply], p_msg, &ctx);
- if ((ctx.run_flags&DROP_R_F) && (msg_status<200)) {
- if (unlikely(replies_locked)) {
- replies_locked = 0;
- UNLOCK_REPLIES( t );
- }
- goto done;
- }
/* transfer current message context back to t */
if (t->uas.request) t->uas.request->flags=p_msg->flags;
getbflagsval(0, &uac->branch_flags);
@@ -2059,6 +2052,16 @@ int reply_received( struct sip_msg *p_msg )
#ifdef WITH_XAVP
xavp_set_list(backup_xavps);
#endif
+ /* handle a possible DROP in the script, but only if this
+ is not a final reply (final replies already stop the timers
+ and droping them might leave a transaction living forever) */
+ if ((ctx.run_flags&DROP_R_F) && (msg_status<200)) {
+ if (unlikely(replies_locked)) {
+ replies_locked = 0;
+ UNLOCK_REPLIES( t );
+ }
+ goto done;
+ }
}
#ifdef USE_DST_BLACKLIST
/* add temporary to the blacklist the source of a 503 reply */