@ -62,6 +62,7 @@ static unsigned int timeout;
static unsigned int silent_timeout ;
static unsigned int silent_timeout ;
static unsigned int final_timeout ;
static unsigned int final_timeout ;
static unsigned int redis_expires = 86400 ;
static unsigned int redis_expires = 86400 ;
static unsigned int redis_multikey = 0 ;
static int port_min = 30000 ;
static int port_min = 30000 ;
static int port_max = 40000 ;
static int port_max = 40000 ;
static int max_sessions = - 1 ;
static int max_sessions = - 1 ;
@ -298,6 +299,7 @@ static void options(int *argc, char ***argv) {
{ " redis-write " , ' w ' , 0 , G_OPTION_ARG_STRING , & redisps_write , " Connect to Redis write database " , " [PW@]IP:PORT/INT " } ,
{ " redis-write " , ' w ' , 0 , G_OPTION_ARG_STRING , & redisps_write , " Connect to Redis write database " , " [PW@]IP:PORT/INT " } ,
{ " redis-num-threads " , 0 , 0 , G_OPTION_ARG_INT , & redis_num_threads , " Number of Redis restore threads " , " INT " } ,
{ " redis-num-threads " , 0 , 0 , G_OPTION_ARG_INT , & redis_num_threads , " Number of Redis restore threads " , " INT " } ,
{ " redis-expires " , 0 , 0 , G_OPTION_ARG_INT , & redis_expires , " Expire time in seconds for redis keys " , " INT " } ,
{ " redis-expires " , 0 , 0 , G_OPTION_ARG_INT , & redis_expires , " Expire time in seconds for redis keys " , " INT " } ,
{ " redis-multikey " , 0 , 0 , G_OPTION_ARG_INT , & redis_multikey , " Use multiple redis keys for storing the call (old behaviour) DEPRECATED " , " INT " } ,
{ " no-redis-required " , ' q ' , 0 , G_OPTION_ARG_NONE , & no_redis_required , " Start no matter of redis connection state " , NULL } ,
{ " no-redis-required " , ' q ' , 0 , G_OPTION_ARG_NONE , & no_redis_required , " Start no matter of redis connection state " , NULL } ,
{ " b2b-url " , ' b ' , 0 , G_OPTION_ARG_STRING , & b2b_url , " XMLRPC URL of B2B UA " , " STRING " } ,
{ " b2b-url " , ' b ' , 0 , G_OPTION_ARG_STRING , & b2b_url , " XMLRPC URL of B2B UA " , " STRING " } ,
{ " log-facility " , 0 , 0 , G_OPTION_ARG_STRING , & log_facility_s , " Syslog facility to use for logging " , " daemon|local0|...|local7 " } ,
{ " log-facility " , 0 , 0 , G_OPTION_ARG_STRING , & log_facility_s , " Syslog facility to use for logging " , " daemon|local0|...|local7 " } ,
@ -621,6 +623,7 @@ no_kernel:
}
}
mc . redis_expires_secs = redis_expires ;
mc . redis_expires_secs = redis_expires ;
mc . redis_multikey = redis_multikey ;
ctx - > m - > conf = mc ;
ctx - > m - > conf = mc ;