Nearly. 29.272-960.<br><br>Thanks very much for the AVPs, Ulf. Once I have a working version, I'll host the entire spec on github.<br><br>cheers<br>Chandru<br><br>PS: Hopefully this email won't wake you up if you've finally managed to sleep!<br>
<br><div class="gmail_quote">On 26 March 2012 12:04, Ulf Wiger <span dir="ltr"><<a href="mailto:ulf@feuerlabs.com">ulf@feuerlabs.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Ahh, the memories…<br>
<br>
I played around a little bit, but no guarantees:<br>
<br>
- 2972-910, right? I downloaded the doc and opened in OpenOffice Writer<br>
- Delete the two first rows and the last row of the table (the ones that span the whole table)<br>
- Delete the columns "Section defined", "May", "should not", "must not", "may encr."<br>
- Select the AVP type data and chose Table->Convert->Table to text (tab-delimited)<br>
- Copy-paste the result into emacs<br>
- Search-replace all "M, V" with "MV"<br>
- There is one "M. V", fix that one too<br>
- Remove the space in the name "Requested-UTRAN- GERAN-Authentication-Info"<br>
- Fix the type type for Alert-Reason ("Enumerate" -> "Enumerated")<br>
<br>
Then I just threw in a fake @vendor line to make diameter_dict_util:parse/2 happy.<br>
<br>
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>
<br>
BR,<br>
Ulf W (in SF, can't sleep)<br>
<br>
<br><br>
On 25 Mar 2012, at 22:10, Chandru wrote:<br>
<br>
> Hi,<br>
><br>
> 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.<br>
><br>
> 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.<br>
><br>
> cheers,<br>
> Chandru<br>
><br>
> _______________________________________________<br>
> erlang-questions mailing list<br>
> <a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
> <a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br>
<br></blockquote></div><br>