[erlang-questions] Extract DIAMETER data types

Chandru chandrashekhar.mullaparthi@REDACTED
Mon Mar 26 15:24:59 CEST 2012


Nearly. 29.272-960.

Thanks very much for the AVPs, Ulf. Once I have a working version, I'll
host the entire spec on github.

cheers
Chandru

PS: Hopefully this email won't wake you up if you've finally managed to
sleep!

On 26 March 2012 12:04, Ulf Wiger <ulf@REDACTED> wrote:

>
> 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)
>
>
>
> 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
> > 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/20120326/59f09d86/attachment.htm>


More information about the erlang-questions mailing list