[erlang-questions] erlang diameter dictionary

André Graf andre.graf@REDACTED
Tue Mar 12 10:32:17 CET 2013

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!


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

More information about the erlang-questions mailing list