routing: accept non-integer point codes in is_local_pointcode()

This commit is contained in:
Harald Welte 2011-12-10 19:21:58 +01:00
parent c6bfb3be69
commit b80119cd3e
1 changed files with 3 additions and 2 deletions

View File

@ -26,8 +26,9 @@
-export([route_mtp3_sccp_in/1, route_local_out/1, select_opc/2]).
pointcode_is_local(Pc) when is_integer(Pc) ->
ss7_links:is_pc_local(Pc).
pointcode_is_local(Pc) ->
PcInt = osmo_util:pointcode2int(Pc),
ss7_links:is_pc_local(PcInt).
% local helper function
msg_return_or_cr_refusal(SccpMsg, RetCause, RefCause) ->