diff --git a/sentiment2hep.mjs b/sentiment2hep.mjs index c04f898..1c1a63d 100644 --- a/sentiment2hep.mjs +++ b/sentiment2hep.mjs @@ -70,6 +70,7 @@ async function handleEvent (err, ev) { /* processing file */ try { let callid = content.match(/(?[0-9\-]+@[0-9\.]+)/).groups.callid + callid = callid.replace(/\%40/i, '@') let srcIP = content.match(/o=.*IP4 (?[0-9\.]+)/).groups.srcIP let dstIP = content.match(/c=.*IP4 (?[0-9\.]+)/).groups.dstIP console.log(`Detected callid: ${callid}, srcIP: ${srcIP}, dstIP: ${dstIP}, setting direction to 0`)