From 5b0f66f828013abbcb57cbca3e0285bef43d9c34 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 4 Dec 2011 21:48:12 +0100 Subject: [PATCH] sccp_routing: properly treat return tuple of osmo_ss7:route_dpc() --- src/sccp_routing.erl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/sccp_routing.erl b/src/sccp_routing.erl index 1d66182..e79ba66 100644 --- a/src/sccp_routing.erl +++ b/src/sccp_routing.erl @@ -133,7 +133,7 @@ route_local_out_action(1, SccpMsg, CalledParty) -> % primitive is invoked unless the compatibility test returns % the message to SCLC or unless the message is discarded by the % traffic limitation mechanism; - LsName = ss7_routes:route_dpc(Pc), + {ok, LsName} = ss7_routes:route_dpc(Pc), {remote, SccpMsg, LsName} end; @@ -158,7 +158,7 @@ route_local_out_action(2, SccpMsg, CalledParty) -> % compatibility test returns the message to SCLC or % unless the message is discarded by the traffic % limitation mechanism - LsName = ss7_routes:route_dpc(Dpc), + {ok, LsName} = ss7_routes:route_dpc(Dpc), {remote, SccpMsg, LsName} end end; @@ -178,7 +178,7 @@ route_local_out_action(3, SccpMsg, CalledParty) -> % primitive is invoked unless the compatibility test returns % the message to SCLC or unless the message is discarded by the % traffic limitation mechanism; - LsName = ss7_routes:route_dpc(Pc), + {ok, LsName} = ss7_routes:route_dpc(Pc), {remote, SccpMsg, LsName} end;