Closed walter-weinmann closed 6 years ago
Looks like a currupted PDU, @walter-weinmann can you please check?
00 00 00 3E # command_length
80 00 00 03 # command_id (query_sm_resp)
00 00 00 00 # command_status
00 00 00 01 # sequence_number
# message_id ("this_could_be_a_message_id")
74 68 69 73 5F 63 6F 75 6C 64 5F 62 65 5F 61 5F 6D 65 73 73 61 67 65 5F 69 64 00
39 # source_addr_ton
39 # source_addr_npi
30 30 30 30 30 30 30 30 30 30 30 30 30 2B 00
05 31
00 00 00 3E # command_length 80 00 00 03 # command_id (query_sm_resp) 00 00 00 00 # command_status 00 00 00 01 # sequence_number 74 68 69 73 5F 63 6F 75 6C 64 5F 62 65 5F 61 5F 6D 65 73 73 61 67 65 5F 69 64 00 # message_id 39 39 30 30 30 30 30 30 30 30 30 30 30 30 30 2B 00 # final_date 05 # message_state 31 # error_code
Looks fine for me
@walter-weinmann
39 39 30 30 30 30 30 30 30 30 30 30 30 30 30 2B
("990000000000000+") doesn't represent a valid date
Parser is expecting format : Y1,Y2,M1,M2,D1,D2,H1,H2,Min1,Min2,S1,S2,T,N1,N2
Date = {list_to_integer([Y1,Y2]),
list_to_integer([M1,M2]),
list_to_integer([D1,D2])},
% {99, 0, 0} is not a valid Erlang date
calendar:valid_date(Date) % should return true
Example: