Browse Source

unix_send_timeout -> unix_tx_timeout -- aligned to the core config variable

Jan Janak 21 years ago
parent
commit
e59332633e
3 changed files with 4 additions and 4 deletions
  1. 2 2
      modules/tm/t_fifo.c
  2. 1 1
      modules/tm/t_fifo.h
  3. 1 1
      modules/tm/tm.c

+ 2 - 2
modules/tm/t_fifo.c

@@ -56,7 +56,7 @@
 #include "t_fwd.h"
 #include "../../tsend.h"
 
-int unix_send_timeout = 2; /* Default is 2 seconds */
+int tm_unix_tx_timeout = 2; /* Default is 2 seconds */
 
 #define TWRITE_PARAMS          21
 #define TWRITE_VERSION_S       "0.2"
@@ -480,7 +480,7 @@ static int write_to_unixsock(char* sockname, int cnt)
 		return -1;
 	}
 	
-	if (tsend_dgram_ev(sock, (struct iovec*)lines_eol, 2 * cnt, unix_send_timeout * 1000) < 0) {
+	if (tsend_dgram_ev(sock, (struct iovec*)lines_eol, 2 * cnt, tm_unix_tx_timeout * 1000) < 0) {
 		LOG(L_ERR, "write_to_unixsock: writev failed: %s\n", strerror(errno));
 		return -1;
 	}

+ 1 - 1
modules/tm/t_fifo.h

@@ -36,7 +36,7 @@
 
 #include "../../parser/msg_parser.h"
 
-extern int unix_send_timeout;
+extern int tm_unix_tx_timeout;
 
 int init_twrite_lines();
 

+ 1 - 1
modules/tm/tm.c

@@ -264,7 +264,7 @@ static param_export_t params[]={
 	{"retr_timer2",           INT_PARAM, &(timer_id2timeout[RT_T2])             },
 	{"noisy_ctimer",          INT_PARAM, &noisy_ctimer                          },
 	{"uac_from",              STR_PARAM, &uac_from                              },
-	{"unix_send_timeout",     INT_PARAM, &unix_send_timeout                     },
+	{"unix_tx_timeout",       INT_PARAM, &tm_unix_tx_timeout                    },
 	{0,0,0}
 };