map codec: make sure to encode an AddressString to a list, not binary
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 @@
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