sccp_routing: properly treat return tuple of osmo_ss7:route_dpc()

This commit is contained in:
Harald Welte 2011-12-04 21:48:12 +01:00
parent b25d878a48
commit 5b0f66f828
1 changed files with 3 additions and 3 deletions

View File

@ -133,7 +133,7 @@ route_local_out_action(1, SccpMsg, CalledParty) ->
% primitive is invoked unless the compatibility test returns % primitive is invoked unless the compatibility test returns
% the message to SCLC or unless the message is discarded by the % the message to SCLC or unless the message is discarded by the
% traffic limitation mechanism; % traffic limitation mechanism;
LsName = ss7_routes:route_dpc(Pc), {ok, LsName} = ss7_routes:route_dpc(Pc),
{remote, SccpMsg, LsName} {remote, SccpMsg, LsName}
end; end;
@ -158,7 +158,7 @@ route_local_out_action(2, SccpMsg, CalledParty) ->
% compatibility test returns the message to SCLC or % compatibility test returns the message to SCLC or
% unless the message is discarded by the traffic % unless the message is discarded by the traffic
% limitation mechanism % limitation mechanism
LsName = ss7_routes:route_dpc(Dpc), {ok, LsName} = ss7_routes:route_dpc(Dpc),
{remote, SccpMsg, LsName} {remote, SccpMsg, LsName}
end end
end; end;
@ -178,7 +178,7 @@ route_local_out_action(3, SccpMsg, CalledParty) ->
% primitive is invoked unless the compatibility test returns % primitive is invoked unless the compatibility test returns
% the message to SCLC or unless the message is discarded by the % the message to SCLC or unless the message is discarded by the
% traffic limitation mechanism; % traffic limitation mechanism;
LsName = ss7_routes:route_dpc(Pc), {ok, LsName} = ss7_routes:route_dpc(Pc),
{remote, SccpMsg, LsName} {remote, SccpMsg, LsName}
end; end;