Comments (7)
You can pass udh and message separately:
session.submit_sm({
short_message: {
udh: new Buffer('0605040B8423F0', 'hex')
message: 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXY00'
}
});
from node-smpp.
I assume the Node SMPP lib will automatically handle settings
These fields as needed?
data_coding: 245,
esm_class: 64,
from node-smpp.
When you provide a udh in your short_message parameter, esm_class will be automatically set to 0x40 (UDH_INDICATOR).
data_coding will also be automatically set to 0x01, 0x03, and 0x08 depending on the detected encoding of the message.
Other values for esm_class and data_coding should be handled manually.
from node-smpp.
I want to send Binary message but I receive
"command_status: 1078"
the code I am using is :
session.submit_sm({
short_message: {
source_addr: 'XXXXXXXXXXX',
destination_addr:'YYYYYYYYYYY',
udh: new Buffer('0605040B8423F0', 'hex'),
message: '02056A0045C60C037777772E6465762E6D6F62692F69735F66756E2E68746D6C0011033635333200070103446576446F744D6F62692069732046756E2021000101',
}
}, function(pdu) {
console.log('binary callback')
console.log(pdu);
}
});
can you address me to the problem ?
from node-smpp.
AFAIK error codes bigger than 255 (0x000000FF)
is customly-defined by SMSC, so it's not SMPP standard. Can you share the full PDU?
from node-smpp.
thank you for your reply
this is the PDU:
PDU {
command_length: 16,
command_id: 2147483652,
command_status: 1078,
sequence_number: 6072,
command: 'submit_sm_resp' }
from node-smpp.
No, I don't see anything interesting.. If you have access to SMSC, try analyzing the logs there, catch network packets with wireshark & analyze them, maybe it would help you.
from node-smpp.
Related Issues (20)
- SMPP -Command status 3 HOT 1
- Type definitions HOT 2
- node-smpp as a proxy (Help) HOT 1
- Client not Connected HOT 1
- define wait-ack
- Crash when short_message misstype
- Pdu command length error HOT 2
- Support for user-defined TLVs
- Addition of more example on node-smpp usage HOT 10
- error on send pdu HOT 2
- Command status codes related to official SMPP Spec Error Codes
- Getting invalid password response from SMPP Server HOT 1
- Node client crash with ECONNRESET HOT 5
- Couldn't recieve SMS from SMSC HOT 7
- Differntiate between incoming message and an incoming message that gets triggered after a message is sent using smpp HOT 2
- Error while connecting to server PDU_STATUS 15 HOT 3
- connection issue when setting up the smpp server. HOT 6
- Getting esm_class === 4 for every sent SMS HOT 2
- [Support] total received DLR and Submit response vs total sent SMS
- message_payload or UDH header HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-smpp.