sipcapture / hep-js Goto Github PK
View Code? Open in Web Editor NEWHEP: Javascript/Node implementation of HEP/EEP Encapsulation Protocol
Home Page: http://sipcapture.org
License: GNU General Public License v2.0
HEP: Javascript/Node implementation of HEP/EEP Encapsulation Protocol
Home Page: http://sipcapture.org
License: GNU General Public License v2.0
Hi,
first thx for your work in HEP. We tried to use HepOp together with OpenSips, but HepOps fails on Sending our Messages to Postgres.
After going down to the root-problem we found a Problem with Handling of Chunks in HEP-JS:
Lines 385 to 390 in 51b3221
incorrectly implements the length of the chunk (line 390)
Correct would be
var hepParse = new Parser()
.endianess("big")
.uint16("vendor")
.uint16("type")
.uint16("length")
.buffer("chunk", { length: function() {return this.length - 6} }) ; // Vendor Typ and Length are part oft the length
after this change the Patches at
Line 422 in 51b3221
Line 426 in 51b3221
Line 428 in 51b3221
correcting the "too long" chunk must be removed!
The Root cause for our problem was the missing correction (-6) at line
Line 424 in 51b3221
Without the correction the next Vendor ID (0x00) will be part of the string, and this crashes pg-promise during execution of SQL containing 0x00
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.