diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-12-04 21:48:12 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-12-04 21:48:12 +0100 |
commit | 5b0f66f828013abbcb57cbca3e0285bef43d9c34 (patch) | |
tree | f8a6954694691ff03e1eaa98db5719cf0e10ac7d | |
parent | b25d878a4806c6b9cdc5279263997cc835d2112b (diff) |
sccp_routing: properly treat return tuple of osmo_ss7:route_dpc()
-rw-r--r-- | src/sccp_routing.erl | 6 |
1 files 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; |