siptrace: remove unused trace flag
authoriionita <ionut-razvan.ionita@1and1.ro>
Tue, 19 Mar 2019 16:36:22 +0000 (18:36 +0200)
committerHenning Westerholt <henningw@users.noreply.github.com>
Tue, 9 Apr 2019 19:25:53 +0000 (21:25 +0200)
src/modules/siptrace/siptrace.c

index fb6d418..2f8f32a 100644 (file)
@@ -132,7 +132,6 @@ static str siptrace_info_avp_str = str_init("$avp(__siptrace_info_avp__)");
 #define NR_KEYS 12
 #define SIP_TRACE_TABLE_VERSION 4
 
-int trace_flag = 0;
 int trace_on = 0;
 int trace_sl_acks = 1;
 
@@ -214,7 +213,6 @@ static param_export_t params[] = {
        {"fromtag_column", PARAM_STR, &fromtag_column},
        {"totag_column", PARAM_STR, &totag_column},
        {"direction_column", PARAM_STR, &direction_column},
-       {"trace_flag", INT_PARAM, &trace_flag},
        {"trace_on", INT_PARAM, &trace_on},
        {"traced_user_avp", PARAM_STR, &traced_user_avp_str},
        {"trace_table_avp", PARAM_STR, &trace_table_avp_str},
@@ -276,12 +274,6 @@ static int mod_init(void)
                return -1;
        }
 
-       if(trace_flag < 0 || trace_flag > (int)MAX_FLAG) {
-               LM_ERR("invalid trace flag %d\n", trace_flag);
-               return -1;
-       }
-       trace_flag = 1 << trace_flag;
-
        trace_to_database_flag = (int *)shm_malloc(sizeof(int));
        if(trace_to_database_flag == NULL) {
                LM_ERR("no more shm memory left\n");