[erlang-questions] erlang diameter dictionary
S X
erlangprogram@REDACTED
Tue Mar 12 17:10:48 CET 2013
Hello, Anders & Andre,
Thanks a lot for your quick responses and suggestions, which help me start
to exploring Erlang world ^_^
I was able to generate based on the file rfc4006_cc.dia under the
diameter/examples/dict folders. And understand a bit why and how Erlang
diameter protocol dictionaries are organized and maintained.
Many thanks and talk to you later!
Samuel
On Tue, Mar 12, 2013 at 7:44 AM, Anders Svensson <anders.otp@REDACTED>wrote:
> Btw, there's an RFC 4006 dictionary (and a few more) under
> diameter/examples/dict in the repo.
>
> /Anders, Erlang/OTP
>
> On Tue, Mar 12, 2013 at 10:32 AM, André Graf <andre.graf@REDACTED> wrote:
> > Hello S(?)
> >
> > You have to come up with your own .dia file if the message types are
> > not covered in the .dia files provided by Erlang. Your own .dia file
> > will typically include the '@inherits diameter_gen_base_rfc3588'
> > clause which imports the basic avp's from rfc3588. You then have to
> > provide the missing avp's for your CCR/CCA message types, and also
> > define these messages. Thanks to the format of a .dia file it is
> > pretty much copy-pasting from the rfc4006. Once your .dia file is
> > ready, you use diameterc to generate the .erl and .hrl file.
> >
> > Hope that helped!
> >
> > BR/André
> >
> >
> >
> > On 12 March 2013 04:58, S X <erlangprogram@REDACTED> wrote:
> >> Hello,
> >>
> >> I am new to Erlang and Diameter protocol. Wish someone could provide
> some
> >> suggestions on how to utilize the diameter library properly in Erlang.
> >>
> >> For example, I want to send/receive some Gx messages, like CCR (Credit
> >> Control Request), CCA(Credit Control Answer messages. But I notice that
> >> there are some predefined messages in erlang diameter library. As my
> >> understanding, should use the utility diameterc to generate erlang
> >> header/source files based on dia files. There are few dia files under
> >> otp/lib/diameter/src/dict folder, like acct_rfc6733.dia,
> base_rfc3588.dia,
> >> relay.dia, base_accounting.dia, base_rfc6733.dia. Those files don't
> have
> >> the definitions for Gx.
> >>
> >> How should I generate or where can I obtain dia files which have
> support for
> >> CCR/CCA message format? Are the dia files proprietary or manufacturer
> >> specific? Can I generate with the 3GPP spec? What are the proper steps?
> >>
> >> Thanks a lot!
> >>
> >> S
> >>
> >>
> >> _______________________________________________
> >> erlang-questions mailing list
> >> erlang-questions@REDACTED
> >> http://erlang.org/mailman/listinfo/erlang-questions
> >>
> > _______________________________________________
> > 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/20130312/bd96b539/attachment.htm>
More information about the erlang-questions
mailing list