Dear Kamal, basically deliver_sm packets come from server to client. Why do you need to send this packet backwards?
On Mon, Sep 2, 2024 at 11:27 AM Kamal Kumar <kama...@vcloudx.com> wrote: > Hi, > > > > I am trying to send deliver_sm request from a SMPP client to SMPP server > (opensmpp). We are getting Invalid PDU error. > > Below are the logs for the same. Can you please help me out resolving this > issue? > > > > 2024-08-05 13:29:01 [16947] [0] DEBUG: Started thread 45 > (opensmppbox.c:function) > > 2024-08-05 13:29:01 [16947] [45] DEBUG: Thread 45 (opensmppbox.c:function) > maps to pid 16947. > > 2024-08-05 13:29:01 [16947] [45] INFO: Client connected from <61.95.220.77> > > 2024-08-05 13:29:01 [16947] [45] DEBUG: Connecting to <127.0.0.1> > > 2024-08-05 13:29:01 [16947] [45] INFO: Connected to bearerbox at localhost > port 13003. > > 2024-08-05 13:29:01 [16947] [45] DEBUG: Started thread 46 > (opensmppbox.c:smpp_to_bearerbox) > > 2024-08-05 13:29:01 [16947] [46] DEBUG: Thread 46 > (opensmppbox.c:smpp_to_bearerbox) maps to pid 16947. > > 2024-08-05 13:29:02 [16947] [46] DEBUG: SMPP[vsmppbox1]: Got PDU: > > 2024-08-05 13:29:02 [16947] [46] DEBUG: SMPP PDU 0x753a70001000 dump: > > 2024-08-05 13:29:02 [16947] [46] DEBUG: type_name: bind_transmitter > > 2024-08-05 13:29:02 [16947] [46] DEBUG: command_id: 2 = 0x00000002 > > 2024-08-05 13:29:02 [16947] [46] DEBUG: command_status: 0 = 0x00000000 > > 2024-08-05 13:29:02 [16947] [46] DEBUG: sequence_number: 1 = 0x00000001 > > 2024-08-05 13:29:02 [16947] [46] DEBUG: system_id: "testuid" > > 2024-08-05 13:29:02 [16947] [46] DEBUG: password: "testpw" > > 2024-08-05 13:29:02 [16947] [46] DEBUG: system_type: "smpp" > > 2024-08-05 13:29:02 [16947] [46] DEBUG: interface_version: 52 = > 0x00000034 > > 2024-08-05 13:29:02 [16947] [46] DEBUG: addr_ton: 0 = 0x00000000 > > 2024-08-05 13:29:02 [16947] [46] DEBUG: addr_npi: 0 = 0x00000000 > > 2024-08-05 13:29:02 [16947] [46] DEBUG: address_range: NULL > > 2024-08-05 13:29:02 [16947] [46] DEBUG: SMPP PDU dump ends. > > 2024-08-05 13:29:02 [16947] [46] DEBUG: SMPP[testuid]: Sending PDU: > > 2024-08-05 13:29:02 [16947] [46] DEBUG: SMPP PDU 0x753a70001eb0 dump: > > 2024-08-05 13:29:02 [16947] [46] DEBUG: type_name: bind_transmitter_resp > > 2024-08-05 13:29:02 [16947] [46] DEBUG: command_id: 2147483650 = > 0x80000002 > > 2024-08-05 13:29:02 [16947] [46] DEBUG: command_status: 0 = 0x00000000 > > 2024-08-05 13:29:02 [16947] [46] DEBUG: sequence_number: 1 = 0x00000001 > > 2024-08-05 13:29:02 [16947] [46] DEBUG: system_id: "vsmppbox1" > > 2024-08-05 13:29:02 [16947] [46] DEBUG: SMPP PDU dump ends. > > 2024-08-05 13:29:03 [16947] [46] DEBUG: SMPP[testuid]: Got PDU: > > 2024-08-05 13:29:03 [16947] [46] DEBUG: SMPP PDU 0x753a70001eb0 dump: > > 2024-08-05 13:29:03 [16947] [46] DEBUG: type_name: enquire_link > > 2024-08-05 13:29:03 [16947] [46] DEBUG: command_id: 21 = 0x00000015 > > 2024-08-05 13:29:03 [16947] [46] DEBUG: command_status: 0 = 0x00000000 > > 2024-08-05 13:29:03 [16947] [46] DEBUG: sequence_number: 2 = 0x00000002 > > 2024-08-05 13:29:03 [16947] [46] DEBUG: SMPP PDU dump ends. > > 2024-08-05 13:29:03 [16947] [46] DEBUG: SMPP[testuid]: Sending PDU: > > 2024-08-05 13:29:03 [16947] [46] DEBUG: SMPP PDU 0x753a70001000 dump: > > 2024-08-05 13:29:03 [16947] [46] DEBUG: type_name: enquire_link_resp > > 2024-08-05 13:29:03 [16947] [46] DEBUG: command_id: 2147483669 = > 0x80000015 > > 2024-08-05 13:29:03 [16947] [46] DEBUG: command_status: 0 = 0x00000000 > > 2024-08-05 13:29:03 [16947] [46] DEBUG: sequence_number: 2 = 0x00000002 > > 2024-08-05 13:29:03 [16947] [46] DEBUG: SMPP PDU dump ends. > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0430) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0430,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 1 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0001,00) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0030) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0030,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter tag (0x0000) > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Optional parameter length read as 0 > > 2024-08-05 13:29:04 [16947] [46] WARNING: SMPP: Unknown > TLV(0x0000,0x0000,) for PDU type (deliver_sm) received! > > 2024-08-05 13:29:04 [16947] [46] DEBUG: SMPP[testuid]: Got PDU: > > 2024-08-05 13:29:04 [16947] [46] DEBUG: SMPP PDU 0x753a70001000 dump: > > 2024-08-05 13:29:04 [16947] [46] DEBUG: type_name: deliver_sm > > 2024-08-05 13:29:04 [16947] [46] DEBUG: command_id: 5 = 0x00000005 > > 2024-08-05 13:29:04 [16947] [46] DEBUG: command_status: 0 = 0x00000000 > > 2024-08-05 13:29:04 [16947] [46] DEBUG: sequence_number: 3 = 0x00000003 > > 2024-08-05 13:29:04 [16947] [46] DEBUG: service_type: "smpp" > > 2024-08-05 13:29:04 [16947] [46] DEBUG: source_addr_ton: 1 = 0x00000001 > > 2024-08-05 13:29:04 [16947] [46] DEBUG: source_addr_npi: 1 = 0x00000001 > > 2024-08-05 13:29:04 [16947] [46] DEBUG: source_addr: > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Octet string at 0x753a70001260: > > 2024-08-05 13:29:04 [16947] [46] DEBUG: len: 2 > > 2024-08-05 13:29:04 [16947] [46] DEBUG: size: 3 > > 2024-08-05 13:29:04 [16947] [46] DEBUG: immutable: 0 > > 2024-08-05 13:29:04 [16947] [46] DEBUG: data: c7 > 35 .5 > > 2024-08-05 13:29:04 [16947] [46] DEBUG: Octet string dump ends. > > 2024-08-05 13:29:04 [16947] [46] DEBUG: dest_addr_ton: 0 = 0x00000000 > > 2024-08-05 13:29:04 [16947] [46] DEBUG: dest_addr_npi: 0 = 0x00000000 > > 2024-08-05 13:29:04 [16947] [46] DEBUG: destination_addr: NULL > > 2024-08-05 13:29:04 [16947] [46] DEBUG: esm_class: 0 = 0x00000000 > > 2024-08-05 13:29:04 [16947] [46] DEBUG: protocol_id: 0 = 0x00000000 > > 2024-08-05 13:29:04 [16947] [46] DEBUG: priority_flag: 0 = 0x00000000 > > 2024-08-05 13:29:04 [16947] [46] DEBUG: schedule_delivery_time: NULL > > 2024-08-05 13:29:04 [16947] [46] DEBUG: validity_period: NULL > > 2024-08-05 13:29:04 [16947] [46] DEBUG: registered_delivery: 0 = > 0x00000000 > > 2024-08-05 13:29:04 [16947] [46] DEBUG: replace_if_present_flag: 0 = > 0x00000000 > > 2024-08-05 13:29:04 [16947] [46] DEBUG: data_coding: 0 = 0x00000000 > > 2024-08-05 13:29:04 [16947] [46] DEBUG: sm_default_msg_id: 0 = 0x00000000 > > 2024-08-05 13:29:04 [16947] [46] DEBUG: sm_length: 0 = 0x00000000 > > 2024-08-05 13:29:04 [16947] [46] DEBUG: short_message: "" > > 2024-08-05 13:29:04 [16947] [46] DEBUG: SMPP PDU dump ends. > > 2024-08-05 13:29:04 [16947] [46] ERROR: SMPP[testuid]: Unknown PDU type > 0x00000005, ignored. > > 2024-08-05 13:29:04 [16947] [46] DEBUG: SMPP[testuid]: Sending PDU: > > 2024-08-05 13:29:04 [16947] [46] DEBUG: SMPP PDU 0x753a70001eb0 dump: > > 2024-08-05 13:29:04 [16947] [46] DEBUG: type_name: generic_nack > > 2024-08-05 13:29:04 [16947] [46] DEBUG: command_id: 2147483648 = > 0x80000000 > > 2024-08-05 13:29:04 [16947] [46] DEBUG: command_status: 3 = 0x00000003 > > 2024-08-05 13:29:04 [16947] [46] DEBUG: sequence_number: 3 = 0x00000003 > > 2024-08-05 13:29:04 [16947] [46] DEBUG: SMPP PDU dump ends. > > 2024-08-05 13:29:05 [16947] [46] ERROR: Invalid SMPP PDU received. > > 2024-08-05 13:29:05 [16947] [46] DEBUG: Thread 46 > (opensmppbox.c:smpp_to_bearerbox) terminates. > > 2024-08-05 13:29:06 [16947] [45] DEBUG: Thread 45 (opensmppbox.c:function) > terminates. > > > > > -- Sincerely, Sayed Hadi Rastgou Haghi