sipcapture / hep-java

HEP: JAVA implementation of HEP/EEP Encapsulation Protocol
http://sipcapture.org
GNU General Public License v3.0
5 stars 5 forks source link

How to construct HEP3 message in Java #6

Open magowdar opened 3 years ago

magowdar commented 3 years ago

Hi,

As per code here, there is a parse method. Our requirement is to construct HEP3 message. Is there any available library in Java ? or any API ?

adubovikov commented 3 years ago

Hi,

https://github.com/sipcapture/hep-java/blob/master/src/main/java/org/homer/hep/ParserHEPv3.java

here is parser, the same way you can do construct

you can also take a look at Javascript, i know this is not java, but it will give you a sense how to implement it:

https://github.com/sipcapture/hep-js/blob/master/index.js#L71-L172

in any way, you can use captagent:

https://github.com/sipcapture/captagent/blob/master/src/modules/transport/hep/transport_hep.c#L322