-
Notifications
You must be signed in to change notification settings - Fork 175
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
TLV Data #31
Comments
Try: smpp.tlvs['abc42xyz_operator'] = {
id: 0x1520,
type: smpp.types.tlv.string
};
session.submit_sm({
destination_addr: '8475551212',
short_message: 'Hello!',
abc42xyz_operator: 'CUSTMR_13914533_TESTIPC_111_D'
}, function(pdu) {
if (pdu.command_status == 0) {
// Message successfully sent
console.log(pdu.message_id);
}
}); |
Yes, you were exactly right. Thank you. I've seen question here and there for how to do this. I will add an example to the README and send a pull request. Use it if you want. |
The correct way to add a custom TLV is by using addTLV method like this:
|
Do you still need this in the sumit_sm body?
|
Yes, you need to use addTLV once to tell smpp module how to handle a |
Since you said to only include once is this what you mean?
Originally I was doing the tlv setup in the just before |
Yes, that is exactly how addTLV method should be used. |
Thanks @farhadi By the way this is a very nice tool you have built. |
@yepher Thanks for your interest. |
I have your sample code which works fine with one SMPP server but in another case I am have having a problem. This is what I have:
Turns out I need to send TLV like this one:
I looked at the GitHub page and I see you mention TLV as an Array but I don't see how it would be put into the javascript.
I see this in smpp.js but I am not sure how to apply that to the TLV:
The text was updated successfully, but these errors were encountered: