Re: Add info_port function to export in diameter_service module

Anders Svensson <[email protected]>
Newsgroups gmane.comp.lang.erlang.patches
Message-ID <CADho9ocS0wAKGUdfsWLRSebiV_gCs2q5W-43DwEpQUNEtKk46g@mail.gmail.com>
On Tue, Jun 4, 2013 at 10:35 AM, Aleksander Nycz
<[email protected]> 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
> [email protected]
> http://erlang.org/mailman/listinfo/erlang-patches
>
_______________________________________________
erlang-patches mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-patches
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.