summaryrefslogtreecommitdiffstats
path: root/src/sccp_codec.erl
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2012-01-18 08:49:45 +0100
committerHarald Welte <laforge@gnumonks.org>2012-01-18 08:49:45 +0100
commit2c67ac00ccf2ceadef7ee55d2edea36d3e117861 (patch)
tree7ebddf825b5602042d613b6bb6ce2b94167a6164 /src/sccp_codec.erl
parent7e1c261f4011d6618b8432a281a1dbda0ff41565 (diff)
SCCP Codec: don't include 'encoding' in sccp_addr{}
The Encoding parameter really only tells us about the odd/even number of digits, and that information is already present as the list of digits in the decoded address.
Diffstat (limited to 'src/sccp_codec.erl')
-rw-r--r--src/sccp_codec.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sccp_codec.erl b/src/sccp_codec.erl
index 044dd75..eb07fb6 100644
--- a/src/sccp_codec.erl
+++ b/src/sccp_codec.erl
@@ -85,7 +85,7 @@ parse_gt(BinGT, GTind) ->
<<TransType:8, NumPlan:4, Enc:4, Digits/binary>> = BinGT,
PhoneNum = isup_codec:parse_isup_party(Digits, enc_is_odd(Enc)),
#global_title{gti = GTind,
- trans_type = TransType, encoding = Enc,
+ trans_type = TransType,
numbering_plan = NumPlan,
phone_number = PhoneNum};
?SCCP_GTI_TT_NP_ENC_NAT ->
@@ -93,7 +93,7 @@ parse_gt(BinGT, GTind) ->
<<TransType:8, NumPlan:4, Enc:4, 0:1, Nature:7, Digits/binary>> = BinGT,
PhoneNum = isup_codec:parse_isup_party(Digits, enc_is_odd(Enc)),
#global_title{gti = GTind,
- trans_type = TransType, encoding = Enc,
+ trans_type = TransType,
numbering_plan = NumPlan,
nature_of_addr_ind = Nature,
phone_number = PhoneNum};
@@ -249,7 +249,7 @@ encode_gt(undefined) ->
{?SCCP_GTI_NO_GT, <<>>};
encode_gt(#global_title{gti = GTind, phone_number = PhoneNum,
nature_of_addr_ind = Nature,
- trans_type = TransType, encoding = _EncOrig,
+ trans_type = TransType,
numbering_plan = NumPlan}) ->
case GTind of
?SCCP_GTI_NO_GT ->