summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorchaochaoc <[email protected]>2024-11-16 16:07:06 +0800
committerchaochaoc <[email protected]>2024-11-16 16:07:06 +0800
commit170f495a1123662387613753086814a856db848c (patch)
tree48b42b588be23f1e82796b3b8210df331e0c9bcd /src
parentb3b233172fbe2c296e0e464957e04a4161624b98 (diff)
fix: remove duplicate sip and rtp
Diffstat (limited to 'src')
-rw-r--r--src/main/resources/jobs/job.yml11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/main/resources/jobs/job.yml b/src/main/resources/jobs/job.yml
index 7d6eb76..5d3fd0e 100644
--- a/src/main/resources/jobs/job.yml
+++ b/src/main/resources/jobs/job.yml
@@ -825,6 +825,12 @@ pipeline:
- name: voip-fusion
category: CORRELATE
cache:
+ - name: sip_status
+ type: VALUE
+ ttl: 10 minute
+ schema:
+ - name: be_used
+ data-type: BOOLEAN
- name: sip
type: VALUE
ttl: 7 minute
@@ -1575,6 +1581,7 @@ pipeline:
@i.$rtp_payload_type_s2c AS rtp_payload_type_s2c,
@i.$rtp_pcap_path AS rtp_pcap_path,
( @i.$client_ip == sip_originator_sdp_connect_ip).?(1, (@i.$client_ip == sip_responder_sdp_connect_ip).?(2, 0) ) AS rtp_originator_dir
+ - SET sip_status FROM true AS be_used
- TRUNCATE rtp
# TODO USE EVENT
- SCHEDULING USING PROCESS TIME FOR NOW + 6 * 60 * 1000
@@ -1662,6 +1669,8 @@ pipeline:
@i.$rtp_payload_type_s2c AS rtp_payload_type_s2c,
@i.$rtp_pcap_path AS rtp_pcap_path,
( @i.$client_ip == @sip.$sip_originator_sdp_connect_ip).?(1, (@i.$client_ip == @sip.$sip_responder_sdp_connect_ip).?(2, 0) ) AS rtp_originator_dir
+ - SET sip_status FROM true AS be_used
+ - TRUNCATE rtp
- SCHEDULING USING PROCESS TIME FOR NOW + 6 * 60 * 1000
schedule:
- if: '@rtp.isNotNull && @rtp.cardinality > 0'
@@ -1797,7 +1806,7 @@ pipeline:
@i.$rtp_pcap_path AS rtp_pcap_path,
@i.$rtp_originator_dir AS rtp_originator_dir
- TRUNCATE rtp
- - if: '@sip.isNotNull'
+ - if: '@sip.isNotNull && ( @sip_status.isNull || !@sip_status.$be_used )'
then:
- |-
OUTPUT fail FROM @sip.$recv_time AS recv_time,