Browse code

sipcapture: remove workaround of correlation_id

- Compatible with Asterisk >= 10

(cherry picked from commit 6cb0bec7d2491ed3365dc237fc1d8608af246c3a)

Giacomo Vacca authored on 28/09/2016 12:49:42
Showing 1 changed files
... ...
@@ -2307,7 +2307,6 @@ int receive_logging_json_msg(char * buf, unsigned int len, struct hep_generic_re
2307 2307
 	if(correlation_id) {
2308 2308
 		corrtmp.s = correlation_id;
2309 2309
 		corrtmp.len = strlen(correlation_id);
2310
-		if(!strncmp(log_table, "rtcp_capture",12)) corrtmp.len--;
2311 2310
 	}
2312 2311
 
2313 2312
 	db_keys[0] = &date_column;
... ...
@@ -2482,7 +2481,6 @@ static int report_capture(struct sip_msg *msg, str *_table, str* _corr,  str *_d
2482 2482
 	else if(correlation_id) {
2483 2483
 		corrtmp.s = correlation_id;
2484 2484
 		corrtmp.len = strlen(correlation_id);
2485
-		if(!strncmp(_table->s, "rtcp_capture",12)) corrtmp.len--;
2486 2485
 	}
2487 2486
 
2488 2487
 	db_keys[0] = &date_column;