[erlang-questions] new user want to encode & decode h248 protocol

Håkan Mattsson hm@REDACTED
Tue Feb 17 17:28:09 CET 2015


The Megaco app is a beast and it is perhaps not the one that I would start
with if I was going to learn Erlang from scratch. There are however several
good books explaining Erlang. Read some of them and get hands on with their
exercises. "Learn you some Erlang" is a very good on-line source.

Once you are a little bit familiar with Erlang, I would recommend you to
run the simple mg/mgc examples in the Megaco app. Use the Erlang debugger
to follow the call flow from socket to socket.

When you got the overall picture you can inspect the transport callback
modules in Megaco (TCP and UDP) to see how they are reading packets. You
can either use them or roll your own. Once you have read a packet you can
feed it into a suitable decoder that fit your needs. There are several
decoders provided, both textual and binary.

Good luck!

/Håkan


On Sat, Feb 14, 2015 at 7:35 PM, 曾杰 <zengjiestc@REDACTED> wrote:

> Hi
>
> I'm new user of erlang, I want to encode & decode h248 packets captured
> from network. I want to use open source h248 protocol stack to complete
> this work. Use google, I found erlang/otp can do this, but my program
> experience is c++, so I have to learn erlang for this problem. In erlang's
> megaco document, the example is about how to implement mg/mgc, but I need
> not to implement mg/mgc, I only need encode & decode h248 protocol, and
> recover the calling procedure in human readable format.
>
> My problem is: how to use erlang's lib to encode & decode h248 packets
> captured from network ( use tcpdump), and recover the calling procedure?
> Please give me some hints about this ( as simple as possible, because I
> have learned erlang only one day ).
>
> Thank you very much!
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150217/6af10fc2/attachment.htm>


More information about the erlang-questions mailing list