ss7_routes: accept tuple/record point codes

This commit is contained in:
Harald Welte 2011-12-08 12:05:34 +01:00
parent eecba25038
commit 19350ad9d4
1 changed files with 2 additions and 1 deletions

View File

@ -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'}],