From fc281c362b48be291b54e09c5799b9ea56ace211 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 9 Feb 2011 22:39:08 +0100 Subject: [PATCH] map codec: make sure to encode an AddressString to a list, not binary --- src/map_codec.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/map_codec.erl b/src/map_codec.erl index 7d39f76..eb1f814 100644 --- a/src/map_codec.erl +++ b/src/map_codec.erl @@ -68,7 +68,8 @@ encode_addr_string(#party_number{nature_of_addr_ind = NatureIsup, phone_number = PhoneNum}) -> NatureMap = nature_isup2map(NatureIsup), {PhoneBin, _OddEven} = isup_codec:encode_isup_party(PhoneNum), - <<1:1, NatureMap:3, Numplan:4, PhoneBin/binary>>. + Bin = <<1:1, NatureMap:3, Numplan:4, PhoneBin/binary>>, + binary_to_list(Bin). parse_tcap_msg(MsgBin) when is_binary(MsgBin) -> case asn1rt:decode('map', 'MapSpecificPDUs', MsgBin) of