@ -107,6 +107,7 @@ static int redis_db = -1;
static char * b2b_url ;
static char * b2b_url ;
static enum xmlrpc_format xmlrpc_fmt = XF_SEMS ;
static enum xmlrpc_format xmlrpc_fmt = XF_SEMS ;
static int num_threads ;
static int num_threads ;
static int delete_delay = 30 ;
static void sighandler ( gpointer x ) {
static void sighandler ( gpointer x ) {
@ -344,6 +345,7 @@ static void options(int *argc, char ***argv) {
{ " log-stderr " , ' E ' , 0 , G_OPTION_ARG_NONE , & _log_stderr , " Log on stderr instead of syslog " , NULL } ,
{ " log-stderr " , ' E ' , 0 , G_OPTION_ARG_NONE , & _log_stderr , " Log on stderr instead of syslog " , NULL } ,
{ " xmlrpc-format " , ' x ' , 0 , G_OPTION_ARG_INT , & xmlrpc_fmt , " XMLRPC timeout request format to use. 0: SEMS DI, 1: call-id only " , " INT " } ,
{ " xmlrpc-format " , ' x ' , 0 , G_OPTION_ARG_INT , & xmlrpc_fmt , " XMLRPC timeout request format to use. 0: SEMS DI, 1: call-id only " , " INT " } ,
{ " num-threads " , 0 , 0 , G_OPTION_ARG_INT , & num_threads , " Number of worker threads to create " , " INT " } ,
{ " num-threads " , 0 , 0 , G_OPTION_ARG_INT , & num_threads , " Number of worker threads to create " , " INT " } ,
{ " delete-delay " , ' d ' , 0 , G_OPTION_ARG_INT , & delete_delay , " Delay for deleting a session from memory. " , " INT " } ,
{ " sip-source " , 0 , 0 , G_OPTION_ARG_NONE , & sip_source , " Use SIP source address by default " , NULL } ,
{ " sip-source " , 0 , 0 , G_OPTION_ARG_NONE , & sip_source , " Use SIP source address by default " , NULL } ,
{ " dtls-passive " , 0 , 0 , G_OPTION_ARG_NONE , & dtls_passive_def , " Always prefer DTLS passive role " , NULL } ,
{ " dtls-passive " , 0 , 0 , G_OPTION_ARG_NONE , & dtls_passive_def , " Always prefer DTLS passive role " , NULL } ,
{ NULL , }
{ NULL , }
@ -608,6 +610,7 @@ no_kernel:
mc . port_max = port_max ;
mc . port_max = port_max ;
mc . timeout = timeout ;
mc . timeout = timeout ;
mc . silent_timeout = silent_timeout ;
mc . silent_timeout = silent_timeout ;
mc . delete_delay = delete_delay ;
mc . default_tos = tos ;
mc . default_tos = tos ;
mc . b2b_url = b2b_url ;
mc . b2b_url = b2b_url ;
mc . fmt = xmlrpc_fmt ;
mc . fmt = xmlrpc_fmt ;