aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2013-07-14 19:44:36 +0200
committerHarald Welte <laforge@gnumonks.org>2013-07-14 19:44:36 +0200
commitd08247b27de0b43330f8c94df36b761c3353347c (patch)
tree05786e1348051032d6e20b6978058f60c1224085
parentffc25358e4264709d143647f94885c729f717c5e (diff)
sccp_routing: add missing check_and_dec_hopctr() default caseHEADmaster
-rw-r--r--src/sccp_routing.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/sccp_routing.erl b/src/sccp_routing.erl
index 634787c..7554978 100644
--- a/src/sccp_routing.erl
+++ b/src/sccp_routing.erl
@@ -299,7 +299,10 @@ check_and_dec_hopctr(Msg = #sccp_msg{msg_type = MsgType}) when
Msg#sccp_msg.parameters,
{ ?SCCP_PNC_HOP_COUNTER, HopCtr -1}),
Msg#sccp_msg{parameters = ParNew}
- end.
+ end;
+check_and_dec_hopctr(Msg = #sccp_msg{}) ->
+ Msg.
+
route_main(SccpMsg) when is_record(SccpMsg, sccp_msg) ->
CalledParty = proplists:get_value(called_party_addr, SccpMsg#sccp_msg.parameters),