[erlang-questions] Extract DIAMETER data types

Ulf Wiger <>
Mon Mar 26 13:04:35 CEST 2012


Ahh, the memories…

I played around a little bit, but no guarantees:

-  2972-910, right? I downloaded the doc and opened in OpenOffice Writer
- Delete the two first rows and the last row of the table (the ones that span the whole table)
- Delete the columns "Section defined", "May", "should not", "must not", "may encr."
- Select the AVP type data and chose Table->Convert->Table to text (tab-delimited)
- Copy-paste the result into emacs
- Search-replace all "M, V" with "MV"
- There is one "M. V", fix that one too
- Remove the space in the name "Requested-UTRAN- GERAN-Authentication-Info"
- Fix the type type for Alert-Reason ("Enumerate" -> "Enumerated")

Then I just threw in a fake @vendor line to make diameter_dict_util:parse/2 happy.

The attached file at least makes it through the parser this way. Considering how many errors these specs contain, I can't vouch for the correctness beyond that. ;)

BR,
Ulf W (in SF, can't sleep)

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: v6_avps.txt
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120326/f22a8bc6/attachment.txt>
-------------- next part --------------

On 25 Mar 2012, at 22:10, Chandru wrote:

> Hi,
> 
> Does anyone know of a relatively easy way to extract the specification for DIAMETER data types out of 3GPP specs? I'm looking at the spec for the S6A interface, and the amount of copy/paste/reformat required to get a spec which I can input to the diameterc utility shipped with erlang is daunting.
> 
> I've managed to extract the ABNF for the messages relatively easily, but the number of AVP types are huge! If I get any contributions, I'll happily share the end result.
> 
> cheers,
> Chandru
> 
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions



More information about the erlang-questions mailing list