diff --git a/daemon/call.h b/daemon/call.h index d1c7d0738..f26d91724 100644 --- a/daemon/call.h +++ b/daemon/call.h @@ -111,6 +111,7 @@ struct callmaster { int port_max; unsigned int timeout; unsigned int silent_timeout; + char *b2b_url; unsigned char tos; }; diff --git a/daemon/main.c b/daemon/main.c index 64bbb66ca..1df2fb5ec 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -49,12 +49,14 @@ static u_int32_t redis_ip; static u_int16_t redis_port; static int redis_db = -1; #endif +static char *b2b_url; static void signals(void) { signal(SIGPIPE, SIG_IGN); + signal(SIGCHLD, SIG_IGN); } static int rlim(int res, rlim_t val) { @@ -174,6 +176,7 @@ static void options(int *argc, char ***argv) { { "redis", 'r', 0, G_OPTION_ARG_STRING, &redisps, "Connect to Redis database", "IP:PORT" }, { "redis-db", 'R', 0, G_OPTION_ARG_INT, &redis_db, "Which Redis DB to use", "INT" }, #endif + { "b2b-url", 'b', 0, G_OPTION_ARG_STRING, &b2b_url, "XMLRPC URL of B2B UA" , "STRING" }, { NULL, } }; @@ -313,6 +316,7 @@ int main(int argc, char **argv) { m->timeout = timeout; m->silent_timeout = silent_timeout; m->tos = tos; + m->b2b_url = b2b_url; c = NULL; if (listenport) {