sipcapture / HEP

HEP-EEP: Extensible Encapsulation Protocol (Specs & Technical Docs)
http://sipcapture.org
46 stars 8 forks source link

documentation on hep2? #3

Closed clintberry closed 8 years ago

clintberry commented 8 years ago

I have a parser written in Go that I will be putting in its own repo soon. I support hep v1 and hep v3 but I can't find docs on hep v2. Do they exist anywhere?

clintberry commented 8 years ago

Oh sweet! https://github.com/sipcapture/hep-go

And you gave us props! thanks! We are improving this now. I'll submit a pull request when we are ready.

lmangani commented 8 years ago

Thanks Clint, much appreciated and welcome! we'd be glad to provide access to push to the hep-go repository and cooperate extending to support encoding too and the full protocol scope

adubovikov commented 8 years ago

@clintberry

hepv2 is just extension of hepv1 including timestamps and capture id:

https://github.com/sipcapture/hep-c/blob/master/core_hep.h#L189 https://github.com/sipcapture/hep-c/blob/master/core_hep.h#L198

hepv1 = hep_hdr (hep_hdr.hp_v = 1) hepv2 = concat(hep_hdr + hep_timehdr) (hep_hdr.hp_v = 2)

clintberry commented 8 years ago

oh nice. easy peasy. Pull request coming with some basic code cleanup and comments and such. That dependency on the sip parser sucks... I wonder if we should leave that up to the person implementing...