@ -107,6 +107,7 @@ static int redis_db = -1;
static char * b2b_url ;
static enum xmlrpc_format xmlrpc_fmt = XF_SEMS ;
static int num_threads ;
static int delete_delay = 30 ;
static void sighandler ( gpointer x ) {
@ -340,10 +341,11 @@ static void options(int *argc, char ***argv) {
{ " b2b-url " , ' b ' , 0 , G_OPTION_ARG_STRING , & b2b_url , " XMLRPC URL of B2B UA " , " STRING " } ,
{ " log-level " , ' L ' , 0 , G_OPTION_ARG_INT , ( void * ) & log_level , " Mask log priorities above this level " , " INT " } ,
{ " log-facility " , 0 , 0 , G_OPTION_ARG_STRING , & log_facility_s , " Syslog facility to use for logging " , " daemon|local0|...|local7 " } ,
{ " log-facility-cdr " , 0 , 0 , G_OPTION_ARG_STRING , & log_facility_cdr_s , " Syslog facility to use for logging CDRs " , " daemon|local0|...|local7 " } ,
{ " log-facility-cdr " , 0 , 0 , G_OPTION_ARG_STRING , & log_facility_cdr_s , " Syslog facility to use for logging CDRs " , " daemon|local0|...|local7 " } ,
{ " 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 " } ,
{ " 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 } ,
{ " dtls-passive " , 0 , 0 , G_OPTION_ARG_NONE , & dtls_passive_def , " Always prefer DTLS passive role " , NULL } ,
{ NULL , }
@ -608,6 +610,7 @@ no_kernel:
mc . port_max = port_max ;
mc . timeout = timeout ;
mc . silent_timeout = silent_timeout ;
mc . delete_delay = delete_delay ;
mc . default_tos = tos ;
mc . b2b_url = b2b_url ;
mc . fmt = xmlrpc_fmt ;