LINE_CALL: add detection of LINE voip calls (#1761)
These flows are classifed as `LINE_CALL`; another option was `RTP/LINE_CALL`. No sure about the best solution... Extend LINE domains list. Remove RTP dead code.
This commit is contained in:
@@ -47,6 +47,7 @@ extern int processClientServerHello(struct ndpi_detection_module_struct *ndpi_st
|
||||
extern int http_process_user_agent(struct ndpi_detection_module_struct *ndpi_struct,
|
||||
struct ndpi_flow_struct *flow,
|
||||
const u_int8_t *ua_ptr, u_int16_t ua_ptr_len);
|
||||
extern int is_valid_rtp_payload_type(uint8_t type);
|
||||
|
||||
/* Versions */
|
||||
#define V_1 0x00000001
|
||||
@@ -1609,12 +1610,6 @@ static int eval_extra_processing(struct ndpi_detection_module_struct *ndpi_struc
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int is_valid_rtp_payload_type(uint8_t type)
|
||||
{
|
||||
/* https://www.iana.org/assignments/rtp-parameters/rtp-parameters.xhtml */
|
||||
return type <= 34 || (type >= 96 && type <= 127);
|
||||
}
|
||||
|
||||
static void ndpi_search_quic(struct ndpi_detection_module_struct *ndpi_struct,
|
||||
struct ndpi_flow_struct *flow);
|
||||
static int ndpi_search_quic_extra(struct ndpi_detection_module_struct *ndpi_struct,
|
||||
|
||||
Reference in New Issue
Block a user