diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2024-05-21 12:47:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-21 12:47:25 +0200 |
commit | 0109014f2c640106bd970dc7559fb0f15cc51271 (patch) | |
tree | 580a05a9bc6866d2d3aa23681d94e30554169c81 /src/lib/protocols/sip.c | |
parent | bc8bc69beb7c6ee26c97e9a57aff4124f064d9ac (diff) |
Follow-up of 2093ac5bf (#2451)
Diffstat (limited to 'src/lib/protocols/sip.c')
-rw-r--r-- | src/lib/protocols/sip.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/protocols/sip.c b/src/lib/protocols/sip.c index 23a88ebf8..670933167 100644 --- a/src/lib/protocols/sip.c +++ b/src/lib/protocols/sip.c @@ -69,6 +69,12 @@ void ndpi_search_sip(struct ndpi_detection_module_struct *ndpi_struct, struct nd } } + if(payload_len == 5 && memcmp(packet_payload, "hello", 5) == 0) { + NDPI_LOG_INFO(ndpi_struct, "found sip via HELLO (kind of ping)\n"); + ndpi_int_sip_add_connection(ndpi_struct, flow); + return; + } + if(payload_len >= 14) { if((memcmp(packet_payload, "NOTIFY ", 7) == 0 || memcmp(packet_payload, "notify ", 7) == 0) && (memcmp(&packet_payload[7], "SIP:", 4) == 0 || memcmp(&packet_payload[7], "sip:", 4) == 0)) { |