You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

88 lines
2.3 KiB

Index: src/log.c
--- src/log.c.orig 2006-06-18 18:28:43 +0200
+++ src/log.c 2006-08-31 23:06:01 +0200
@@ -213,7 +213,7 @@
va_list ap, ap_copy;
time_t t;
struct tm *tim;
- char string[128];
+ char string[512];
if ((debug_pattern & class) == 0) return;
Index: src/plugin_shortdial.c
--- src/plugin_shortdial.c.orig 2006-05-20 13:48:53 +0200
+++ src/plugin_shortdial.c 2006-08-31 22:38:45 +0200
@@ -22,6 +22,7 @@
#include <stdio.h>
#include <string.h>
+#include <unistd.h>
#include <netinet/in.h>
#include <osipparser2/osip_parser.h>
Index: src/proxy.c
--- src/proxy.c.orig 2006-06-20 08:34:27 +0200
+++ src/proxy.c 2006-08-31 23:15:39 +0200
@@ -1033,6 +1033,7 @@
memcpy(&addr_media, &addr_sess, sizeof(addr_sess));
}
+#if 0
/*
* Am I running in front of the routing device? Then I cannot
* use the external IP to bind a listen socket to, so force
@@ -1045,6 +1046,7 @@
"in-front-of-NAT-Router");
memcpy(&map_addr, &inside_addr, sizeof (map_addr));
}
+#endif
sts = rtp_start_fwd(osip_message_get_call_id(mymsg),
client_id,
Index: src/siproxd.c
--- src/siproxd.c.orig 2006-06-18 18:28:43 +0200
+++ src/siproxd.c 2006-08-31 22:38:45 +0200
@@ -28,6 +28,7 @@
#include <signal.h>
#include <netinet/in.h>
#include <arpa/inet.h>
+#include <syslog.h>
#ifdef HAVE_GETOPT_H
#include <getopt.h>
@@ -97,6 +98,7 @@
char *pidfilename=NULL;
struct sigaction act;
+ openlog("siproxd", LOG_NDELAY, LOG_DAEMON);
log_set_stderr(1);
/*
@@ -177,11 +179,16 @@
/*
* Init stuff
*/
- INFO(PACKAGE"-"VERSION"-"BUILDSTR" "UNAME" starting up");
-
/* read the config file */
if (read_config(configfile, config_search) == STS_FAILURE) exit(1);
+ /* Don't log to stderr if daemonizing is intended. */
+ if (configuration.daemonize) {
+ log_set_stderr(0);
+ }
+
+ INFO(PACKAGE"-"VERSION"-"BUILDSTR" "UNAME" starting up");
+
/* if a debug level > 0 has been given on the commandline use its
value and not what is in the config file */
if (cmdline_debuglevel != 0) {
@@ -212,7 +219,6 @@
setsid();
if (fork()!=0) exit(0);
- log_set_stderr(0);
INFO("daemonized, pid=%i", getpid());
}