Skip to content

Commit

Permalink
missing callid replace added
Browse files Browse the repository at this point in the history
  • Loading branch information
Dletta committed Jul 31, 2024
1 parent 978e45c commit af09114
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sentiment2hep.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ async function handleEvent (err, ev) {
/* processing file */
try {
let callid = content.match(/(?<callid>[0-9\-]+@[0-9\.]+)/).groups.callid
callid = callid.replace(/\%40/i, '@')
let srcIP = content.match(/o=.*IP4 (?<srcIP>[0-9\.]+)/).groups.srcIP
let dstIP = content.match(/c=.*IP4 (?<dstIP>[0-9\.]+)/).groups.dstIP
console.log(`Detected callid: ${callid}, srcIP: ${srcIP}, dstIP: ${dstIP}, setting direction to 0`)
Expand Down

0 comments on commit af09114

Please sign in to comment.