2
0
Эх сурвалжийг харах

rtpproxy: replace STR_PARAM with PARAM_STRING

Alekzander Spiridonov 11 жил өмнө
parent
commit
1556fa1137

+ 0 - 7
modules/rtpproxy/rtpproxy.c

@@ -948,13 +948,6 @@ mod_init(void)
 			pkg_free(rtpp_strings[i]);
 	}
 
-	if (timeout_socket_str.s==NULL || timeout_socket_str.s[0]==0) {
-		timeout_socket_str.len = 0;
-		timeout_socket_str.s = NULL;
-	} else {
-		timeout_socket_str.len = strlen(timeout_socket_str.s);
-	}
-
 	if (ice_candidate_priority_avp_param) {
 	    s.s = ice_candidate_priority_avp_param; s.len = strlen(s.s);
 	    if (pv_parse_spec(&s, &avp_spec) == 0 || avp_spec.type != PVT_AVP) {

+ 0 - 3
modules/rtpproxy/rtpproxy_db.c

@@ -131,9 +131,6 @@ int init_rtpproxy_db(void)
 		/* Database not configured */
 		return 0;
 
-	rtpp_db_url.len = strlen(rtpp_db_url.s);
-	rtpp_table_name.len = strlen(rtpp_table_name.s);
-
 	if (db_bind_mod(&rtpp_db_url, &rtpp_dbf) < 0)
 	{
 		LM_ERR("Unable to bind to db driver - %.*s\n", rtpp_db_url.len, rtpp_db_url.s);