From b80119cd3e1caad0a7a628bd26889f6bcef3d18e Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sat, 10 Dec 2011 19:21:58 +0100 Subject: [PATCH] routing: accept non-integer point codes in is_local_pointcode() --- src/sccp_routing.erl | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/sccp_routing.erl b/src/sccp_routing.erl index e79ba66..f9a331c 100644 --- a/src/sccp_routing.erl +++ b/src/sccp_routing.erl @@ -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) ->