[erlang-patches] Add info_port function to export in diameter_service module

Anders Svensson <>
Wed Jun 5 12:23:12 CEST 2013


On Tue, Jun 4, 2013 at 10:35 AM, Aleksander Nycz
<> wrote:
> Hello,
>
> Could you add function info_port/1 to export in diameter_service module?
>
> %% towards diameter
> -export([subscribe/1,
>          unsubscribe/1,
>          services/0,
>          info/2,
>          info_port/1]).
>
> This funciton gets PID and returns connection details between two diameter
> peers (IP addresses and ports)
> I must use this function in pick_peer diameter callback to obtain proper
> peer to send ASR requests.

Could you provide a bit more detail?

Otherwise, diameter_service isn't a module you should be calling
directly. The interface module is diameter, and
diameter:service_info/2 is intended to return various service-related
information. It sounds like maybe you want more possibilities in this
function. You can find addresses and ports in
diameter:service_info(SvcName, connections), but for all connections,
not just one:

  http://www.erlang.org/doc/man/diameter.html#service_info-2

Anders



>
> Regards
> Aleksadner Nycz
>
> --
> Aleksander Nycz
> Senior Software Engineer
> Telco_021 BSS R&D
> Comarch SA
> Phone:  +48 12 646 1216
> Mobile: +48 691 464 275
> website: www.comarch.pl
>
>
> _______________________________________________
> erlang-patches mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-patches
>


More information about the erlang-patches mailing list