summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-12-08 12:05:34 +0100
committerHarald Welte <laforge@gnumonks.org>2011-12-08 12:05:34 +0100
commit19350ad9d443e226b603753dc48b3339136b56f0 (patch)
treef5dc2896d95b1871bd7cf108a9b503668f82435d
parenteecba250384b3eeef3a66f444deaed2934f19563 (diff)
ss7_routes: accept tuple/record point codes
-rw-r--r--src/ss7_routes.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ss7_routes.erl b/src/ss7_routes.erl
index 98954c4..6aac951 100644
--- a/src/ss7_routes.erl
+++ b/src/ss7_routes.erl
@@ -78,7 +78,8 @@ delete_route(RemotePc, RemoteMask, LinksetName) ->
% the lookup functions can directly use the ets named_table from within
% the client process, no need to go through a synchronous IPC
-route_dpc(Dpc) ->
+route_dpc(DpcIn) ->
+ Dpc = osmo_util:pointcode2int(DpcIn),
% this was generated by ets:fun2ms() on the shell
Match = [{#ss7route{remote_pc_mask={'$1','$2'},linkset_name='$3'},
[{'==',{'band',Dpc,'$2'},'$1'}],