From 313647bf7236534245b035532652f566407df569 Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Tue, 20 Sep 2011 11:27:17 +0000 Subject: [PATCH 1/4] core: allow forcing send socket for replies. Cherry-picked from upstream: 9dbf735878acc87bab1a0740476f1d106f89412f --- forward.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/forward.c b/forward.c index 9f5dc17ca..9306a282e 100644 --- a/forward.c +++ b/forward.c @@ -124,6 +124,8 @@ static int sock_inet = -1; static int sock_inet6 = -1; #endif /* USE_IPV6 */ +static void apply_force_send_socket(struct dest_info* dst, struct sip_msg* msg); + struct socket_info* get_out_socket(union sockaddr_union* to, int proto) { int* temp_sock; @@ -830,6 +832,9 @@ int forward_reply(struct sip_msg* msg) } #endif + + apply_force_send_socket(&dst, msg); + if (msg_send(&dst, new_buf, new_len)<0) { STATS_RPL_FWD_DROP(); @@ -851,3 +856,10 @@ error: if (new_buf) pkg_free(new_buf); return -1; } + +static void apply_force_send_socket(struct dest_info* dst, struct sip_msg* msg) +{ + if (msg->force_send_socket != 0) { + dst->send_sock = get_send_socket(msg, &dst->to, dst->proto); + } +} From f230607e4f9599eb517c2253ac5483abb2c15127 Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Tue, 20 Sep 2011 14:44:16 +0000 Subject: [PATCH 2/4] Increased pkg mem and max branches. --- config.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config.h b/config.h index 76e69af01..2bb3be00c 100644 --- a/config.h +++ b/config.h @@ -141,7 +141,7 @@ #define SRV_MAX_PREFIX_LEN SRV_TLS_PREFIX_LEN #ifndef PKG_MEM_SIZE -#define PKG_MEM_SIZE 8 +#define PKG_MEM_SIZE 16 #endif #define PKG_MEM_POOL_SIZE PKG_MEM_SIZE*1024*1024 /*!< used only if PKG_MALLOC is defined*/ @@ -166,7 +166,7 @@ #define MAX_RECEIVED_SIZE 57 /*!< forwarding -- Via buffer dimensioning - Received header */ #define MAX_RPORT_SIZE 13 /*!< forwarding -- Via buffer dimensioning - Rport */ -#define MAX_BRANCHES 12 /*!< maximum number of branches per transaction */ +#define MAX_BRANCHES 24 /*!< maximum number of branches per transaction */ #define MAX_PRINT_TEXT 256 /*!< max length of the text of fifo 'print' command */ From d7e9c42f17ac417d71f1b9f32d01c8117c5d988e Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Tue, 20 Sep 2011 14:45:01 +0000 Subject: [PATCH 3/4] Bump version. --- pkg/kamailio/deb/squeeze/changelog | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkg/kamailio/deb/squeeze/changelog b/pkg/kamailio/deb/squeeze/changelog index ee0b976bc..cc1129314 100644 --- a/pkg/kamailio/deb/squeeze/changelog +++ b/pkg/kamailio/deb/squeeze/changelog @@ -1,3 +1,16 @@ +kamailio (3.1.3+sipwise6) unstable; urgency=low + + * Increase PKG_MEM_SIZE to 16 and MAX_BRANCHES to 24. + + -- Andreas Granig Tue, 20 Sep 2011 15:31:35 +0200 + +kamailio (3.1.3+sipwise5) unstable; urgency=low + + * Cherry-picked 9dbf735878acc87bab1a0740476f1d106f89412f from + upstream: core: allow forcing send socket for replies + + -- Andreas Granig Tue, 20 Sep 2011 13:25:00 +0200 + kamailio (3.1.3+sipwise4) unstable; urgency=low * Cherry-picked b4fae8b9eee6d893aa2591bcc9039ea53a142161 from From 6361120030267fb2a0397bfce727567b2a5f7a55 Mon Sep 17 00:00:00 2001 From: Jon Bonilla Date: Mon, 26 Sep 2011 16:31:45 +0000 Subject: [PATCH 4/4] Fix ndb_redis compilation --- Makefile | 4 ++++ pkg/kamailio/deb/squeeze/changelog | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/Makefile b/Makefile index 129c462c5..5a34edd89 100644 --- a/Makefile +++ b/Makefile @@ -274,6 +274,10 @@ module_group_kpython=app_python # K geoip module module_group_kgeoip=geoip +# k redis module +module_group_kredis=ndb_redis + + # if not set on the cmd. line, env or in the modules.lst (cfg_group_include) # exclude the below modules. ifneq ($(group_include)$(cfg_group_include),) diff --git a/pkg/kamailio/deb/squeeze/changelog b/pkg/kamailio/deb/squeeze/changelog index cc1129314..7a17688b5 100644 --- a/pkg/kamailio/deb/squeeze/changelog +++ b/pkg/kamailio/deb/squeeze/changelog @@ -1,3 +1,9 @@ +kamailio (3.1.3+sipwise7) unstable; urgency=low + + * Fix redis module package creation + + -- Jon Bonilla Mon, 26 Sep 2011 15:31:35 +0200 + kamailio (3.1.3+sipwise6) unstable; urgency=low * Increase PKG_MEM_SIZE to 16 and MAX_BRANCHES to 24.