From 2c67ac00ccf2ceadef7ee55d2edea36d3e117861 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 18 Jan 2012 08:49:45 +0100 Subject: 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. --- src/sccp_codec.erl | 6 +++--- 1 file 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) -> <> = 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) -> <> = 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 -> -- cgit v1.2.3