<div dir="ltr">i need to access username to find dst peer and packet type/attrs for logging purpose<div>when i pass <font color="#212121" face="helvetica neue, helvetica, arial, sans-serif"><span style="line-height:1.5">DIAMETER_DICT_RELAY diameter doesn`t know anything about CCA/CCR (it`s </span>obvious<span style="line-height:1.5">)</span></font></div><div><span style="color:rgb(33,33,33);font-family:'helvetica neue',helvetica,arial,sans-serif;line-height:1.5">and if i pass rfc4006 dict relay won`t work (i don`t know why)</span></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, Aug 15, 2016 at 12:52 PM Anders Svensson <<a href="mailto:anders.otp@gmail.com">anders.otp@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">If you mean that that you're looking for User-Name in an incoming<br>
message then you can find it in the avps field of the diameter_packet<br>
record. Just iterate through that list.<br>
<br>
Anders<br>
<br>
<br>
On Thu, Aug 11, 2016 at 9:43 PM, Ehsan Mohammadi <<a href="mailto:ehsan.tck@gmail.com" target="_blank">ehsan.tck@gmail.com</a>> wrote:<br>
> hi<br>
> i`m working on a diameter relay agent app<br>
> i need to access User-Name AVP to find destination peer base on username.<br>
> i passed {'Auth-Application-Id', [?DIAMETER_APP_ID_RELAY]} and {dictionary,<br>
> ?DIAMETER_DICT_RELAY} to start_service and my packet is undefined and can`t<br>
> access it`s avp(tried on CCR/CCA).<br>
> i had to use bin property of packet and pass it to diameter:decode.<br>
> what`s correct solution to overcome this problem?<br>
><br>
> _______________________________________________<br>
> erlang-questions mailing list<br>
> <a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
> <a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
><br>
</blockquote></div>