[erlang-questions] Diameter Relay Agent

Anders Svensson anders.otp@REDACTED
Mon Aug 15 10:22:31 CEST 2016


If you mean that that you're looking for User-Name in an incoming
message then you can find it in the avps field of the diameter_packet
record. Just iterate through that list.

Anders


On Thu, Aug 11, 2016 at 9:43 PM, Ehsan Mohammadi <ehsan.tck@REDACTED> wrote:
> hi
> i`m working on a diameter relay agent app
> i need to access User-Name AVP to find destination peer base on username.
> i passed {'Auth-Application-Id', [?DIAMETER_APP_ID_RELAY]} and {dictionary,
> ?DIAMETER_DICT_RELAY} to start_service and my packet is undefined and can`t
> access it`s avp(tried on CCR/CCA).
> i had to use bin property of packet and pass it to diameter:decode.
> what`s correct solution to overcome this problem?
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list