[erlang-questions] diameter_make compilation issues for 3GPP Diameter Commands

Ferenc Holzhauser ferenc.holzhauser@REDACTED
Sun Jul 9 11:21:46 CEST 2017


Hi,

As the error message suggests, the problem is most likely that the
optional [ Destination-Host ] AVP is on the wrong spot in the message
definition. According to the Diameter Base Protocol spec (RFC 6733, Chapter
3.2) the sequence of AVPs after the header should be : fixed ( <...> ) ,
required ( {...} ) , optional ( [...] ). You should probably fix the
message definition to follow this order. My experience with picking message
definitions from 3GPP diameter protocol specs is that they almost always
need (sometimes significant) handcrafting to work.

Regards,
Ferenc

On 9 July 2017 at 08:41, austin aigbe <eshikafe@REDACTED> wrote:

> Hello,
>
> It seems the Erlang Diameter dictionary compiler (diameter_make) is not
> compatible with the 3GPP Diameter commands.
>
> When I try compiling the attached .dia file, for Cx (3GPP TS 29.299
> v12.7.0), I get the following error:
>
> 10> diameter_make:codec("cx_ts29229_v1270.dia",[hrl]).
> {error,{invalid_avp_order,[123,"Destination-Realm",125,95]}}
>
> -------------------------
> @messages
>
>   UAR ::= < Diameter Header: 300, REQ, PXY >
>   < Session-Id >
>   { Vendor-Specific-Application-Id }
>   { Auth-Session-State }
>   { Origin-Host }
>   { Origin-Realm }
>   [ Destination-Host ]
>  * { Destination-Realm }*
>   { User-Name }
> ----------------------------
>
> Or am I doing something wrong? Kindly advise.
>
> Erlang version:
>
> Erlang/OTP 20 [erts-9.0] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10]
>
> Eshell V9.0  (abort with ^G)
>
> Thanks.
>
> Regards,
> Austin
>
> _______________________________________________
> 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/20170709/d30a0e0a/attachment.htm>


More information about the erlang-questions mailing list