summaryrefslogtreecommitdiffstats
path: root/src/ss7_links.erl
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-12-08 12:10:34 +0100
committerHarald Welte <laforge@gnumonks.org>2011-12-08 12:10:34 +0100
commit4608ba17792f70b9028cab84e576cd287be69786 (patch)
tree4bf769721bd64099ca79b9f425d3fee88b7fda10 /src/ss7_links.erl
parent19350ad9d443e226b603753dc48b3339136b56f0 (diff)
ss7_{links,routes}: deal with tuple/record point codes
Diffstat (limited to 'src/ss7_links.erl')
-rw-r--r--src/ss7_links.erl6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ss7_links.erl b/src/ss7_links.erl
index aa91330..da6f790 100644
--- a/src/ss7_links.erl
+++ b/src/ss7_links.erl
@@ -138,7 +138,8 @@ get_pid_for_link(LinksetName, Sls) when is_list(LinksetName), is_integer(Sls) ->
end.
% Resolve linkset name directly connected to given point code
-get_linkset_for_dpc(Dpc) when is_integer (Dpc) ->
+get_linkset_for_dpc(DpcIn) ->
+ Dpc = osmo_util:pointcode2int(DpcIn),
Ret = ets:match_object(ss7_linksets,
#slinkset{remote_pc = Dpc, _ = '_'}),
case Ret of
@@ -149,7 +150,8 @@ get_linkset_for_dpc(Dpc) when is_integer (Dpc) ->
end.
% resolve link-handler Pid for given (directly connected) point code/sls
-get_pid_for_dpc_sls(Dpc, Sls) when is_integer(Dpc) and is_integer(Sls) ->
+get_pid_for_dpc_sls(DpcIn, Sls) when is_integer(Sls) ->
+ Dpc = osmo_util:pointcode2int(DpcIn),
case get_linkset_for_dpc(Dpc) of
{error, Err} ->
{error, Err};