[erlang-questions] erlang diameter dictionary
Tue Mar 12 12:44:44 CET 2013
Btw, there's an RFC 4006 dictionary (and a few more) under
diameter/examples/dict in the repo.
On Tue, Mar 12, 2013 at 10:32 AM, André Graf <> 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!
> On 12 March 2013 04:58, S X <> wrote:
>> 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!
>> erlang-questions mailing list
> erlang-questions mailing list
More information about the erlang-questions