Browse Source

sipcapture: remove workaround of correlation_id

- Compatible with Asterisk >= 10
Giacomo Vacca 9 năm trước cách đây
mục cha
commit
6cb0bec7d2
1 tập tin đã thay đổi với 0 bổ sung2 xóa
  1. 0 2
      modules/sipcapture/sipcapture.c

+ 0 - 2
modules/sipcapture/sipcapture.c

@@ -2348,7 +2348,6 @@ int receive_logging_json_msg(char * buf, unsigned int len, struct hep_generic_re
 	if(correlation_id) {
 		corrtmp.s = correlation_id;
 		corrtmp.len = strlen(correlation_id);
-		if(!strncmp(log_table, "rtcp_capture",12)) corrtmp.len--;
 	}
 
 	db_keys[0] = &date_column;
@@ -2523,7 +2522,6 @@ static int report_capture(struct sip_msg *msg, str *_table, str* _corr,  str *_d
 	else if(correlation_id) {
 		corrtmp.s = correlation_id;
 		corrtmp.len = strlen(correlation_id);
-		if(!strncmp(_table->s, "rtcp_capture",12)) corrtmp.len--;
 	}
 
 	db_keys[0] = &date_column;