Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disconnect when receive data_sm #116

Open
parsibox opened this issue Jul 6, 2023 · 2 comments
Open

disconnect when receive data_sm #116

parsibox opened this issue Jul 6, 2023 · 2 comments

Comments

@parsibox
Copy link

parsibox commented Jul 6, 2023

hi
when i get this packet my client goes down and reconnect again

PDU {
  '10091': <Buffer 31 30 2e 32 32 34 2e 32 35 31 2e 37 00>,
  command_length: 42,
  command_id: 259,
  command_status: 0,
  sequence_number: 1584658,
  command: 'data_sm',
  service_type: '',
  source_addr_ton: 2,
  source_addr_npi: 0,
  source_addr: '3355',
  dest_addr_ton: 2,
  dest_addr_npi: 0,
  destination_addr: '984040102003',
  esm_class: 0,
  registered_delivery: 0,
  data_coding: 4
}

0000003b000001030000000000182e120002003333353500020039383430343031303230303300000004276b000d31302e3232342e3235312e3700
``

error is :  PDU not implemented: 0x44617461534d
@parsibox
Copy link
Author

parsibox commented Jul 6, 2023

0x44617461534d is

0x44 = 'D'
0x61 = 'a'
0x74 = 't'
0x61 = 'a'
0x53 = 'S'
0x4d = 'M'

0x44617461534d49444 is

0x44 - 'D'
0x61 - 'a'
0x74 - 't'
0x61 - 'a'
0x53 - 'S'
0x4d - 'M'
0x49 - 'I'
0x44 - 'D'

@parsibox
Copy link
Author

parsibox commented Jul 6, 2023

i fix this by add this line in method Decode in file codec.go

	if hdr.ID ==0x103 {
		return decodeFields(newDeliverSM(hdr), b)
	}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant