Module: sip-router Branch: master Commit: 843c3bf661cc64a5640f8a3aa9d7aab21115d5ff URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=843c3bf6...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Fri Jan 6 11:50:43 2012 +0100
textopsx: set the tcp clone rcvbuf on in mod init
---
modules/textopsx/textopsx.c | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/modules/textopsx/textopsx.c b/modules/textopsx/textopsx.c index 7dddf8b..8a97a5c 100644 --- a/modules/textopsx/textopsx.c +++ b/modules/textopsx/textopsx.c @@ -33,6 +33,7 @@ #include "../../dprint.h" #include "../../data_lump.h" #include "../../msg_translator.h" +#include "../../tcp_options.h" #include "../../mod_fix.h"
#include "api.h" @@ -53,6 +54,8 @@ static int fixup_fnmatch(void** param, int param_no); static int w_remove_body_f(struct sip_msg*, char*, char *); static int bind_textopsx(textopsx_api_t *tob);
+static int mod_init(void); + /* cfg functions */ static cmd_export_t cmds[] = { {"msg_apply_changes", (cmd_function)msg_apply_changes_f, 0, @@ -80,7 +83,7 @@ struct module_exports exports= { cmds, /* cfg functions */ 0, /* RPC methods */ 0, /* cfg parameters */ - 0, /* initialization function */ + mod_init, /* initialization function */ 0, /* response function */ 0, /* destroy function */ 0, /* on_cancel function */ @@ -89,6 +92,17 @@ struct module_exports exports= {
/** + * init module function + */ +static int mod_init(void) +{ +#ifdef USE_TCP + tcp_set_clone_rcvbuf(1); +#endif + return 0; +} + +/** * */ static int msg_apply_changes_f(sip_msg_t *msg, char *str1, char *str2)