Skip to content

Commit

Permalink
[proto_wss] allocate trace on; fix route name
Browse files Browse the repository at this point in the history
  • Loading branch information
ionutrazvanionita committed Mar 21, 2017
1 parent 8c47d77 commit 432dfb1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions modules/proto_wss/proto_wss.c
Expand Up @@ -215,6 +215,19 @@ static int mod_init(void)
t_dst = tprot.get_trace_dest_by_name( &trace_destination_name );
}

/* fix route name */
if ( !(trace_is_on = shm_malloc(sizeof(int))) ) {
LM_ERR("no more shared memory!\n");
return -1;
}

*trace_is_on = trace_is_on_tmp;
if ( trace_filter_route ) {
trace_filter_route_id =
get_script_route_ID_by_name( trace_filter_route, rlist, RT_NO);
}



return 0;
}
Expand Down

0 comments on commit 432dfb1

Please sign in to comment.