[erlang-questions] Diameter Proxy in Erlang?

André Graf andre@REDACTED
Thu Feb 21 12:16:48 CET 2013


Hi Ivan

I think the Mod:prepare_request(Packet, SvcName, Peer) is called after
the handle_request (when replied with relay), so you should be able to
change the request there.

BR/Andre

On 21 February 2013 11:30, Ivan Ostres <iostres@REDACTED> wrote:
> Hi all,
>
> I have to build an diameter DCCA proxy and thinking of doing it in Erlang
> since diameter stack is available in OTP. I have to build this because we
> have one diameter client which has burned-in set of AVP's (it doesn't send
> MSCC AVP which is mandatory for billing system) so I have to change an CCR
> message a bit and send it to OCS - of course some bits need to be changed in
> answer also.
>
> I looked through relay.erl and relay_cb.erl in diameter examples and noticed
> that it calls the following function with atom 'relay':
>
> handle_request(_Pkt, _SvcName, _Peer) ->
>     {relay, [{timeout, 1000}, {extra, [relayed]}]}.
>
>
> Is it possible to change the _Pkt that is being relayed since it is not a
> part of return statement?
>
> Or should I do separate client and server?
>
> Please advise,
> Ivan
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>



More information about the erlang-questions mailing list