node-smpp icon indicating copy to clipboard operation
node-smpp copied to clipboard

TLV

Open Abiral2002 opened this issue 10 months ago • 2 comments

How can i send tlv to submit_sm i dont see any option in params for that ??

Abiral2002 avatar Feb 17 '25 22:02 Abiral2002

@Abiral2002 - you cannot add your own customer TLV params, you need to choose from existing variable. https://github.com/farhadi/node-smpp/blob/2a27d0bdfa38f566227a9b14799fd1ed8e439f20/lib/defs.js#L736

Make sure you send as Buffer

I am using message_payload for sending additional params

kevalsavani avatar Mar 23 '25 13:03 kevalsavani

@Abiral2002 - you cannot add your own customer TLV params, you need to choose from existing variable. https://github.com/farhadi/node-smpp/blob/2a27d0bdfa38f566227a9b14799fd1ed8e439f20/lib/defs.js#L736

Make sure you send as Buffer

I am using message_payload for sending additional params

Hi, how's going? Hope you're doing well :-)

But this is not right.

You can add your own tlv with addTlv

guicuton avatar Mar 23 '25 13:03 guicuton

Guys when i try to add tlv using addTLV or dynamically then it doesn't appear in PDU or even in trace...is it a known issue or is there anything i am missing ?

dotsinspace avatar Aug 10 '25 18:08 dotsinspace

I think the reciever that you're trying to send the pdu doesn't support your customTLV

Abiral2002 avatar Aug 11 '25 07:08 Abiral2002

No i found out weird bug, when i updated my TLV inside defs.js then it works, but if i try to add them using addTlv method or adding to Smpp.tlvs then it doesn't work at all.

dotsinspace avatar Aug 12 '25 14:08 dotsinspace