Comments (13)
Perhaps it is because the SMSC sends the appropriate packet
I think You should check this with sniffer and|or PDUs debug output.
If not, I'll try to repeat it on my system.
from node-smpp.
This is a pdu after a successful bind_transceiver method:
{ command_length: 22,
command_id: 2147483657,
command_status: 0,
sequence_number: 1,
command: 'bind_transceiver_resp',
system_id: '',
sc_interface_version: 80 }
This is a session before it is closed:
{ domain: null,
_events:
{ enquire_link: [Function],
unbind: [Function],
error: [Function],
close: [Function],
deliver_sm: [Function] },
_maxListeners: 10,
sequence: 1,
_callbacks: [ , ],
_buffer: ,
port: ,
host: ,
socket:
{ _connecting: false,
_handle: null,
_readableState:
{ highWaterMark: 16384,
buffer: [],
length: 0,
pipes: null,
pipesCount: 0,
flowing: false,
ended: true,
endEmitted: true,
reading: false,
calledRead: true,
sync: false,
needReadable: true,
emittedReadable: false,
readableListening: false,
objectMode: false,
defaultEncoding: 'utf8',
ranOut: false,
awaitDrain: 0,
readingMore: false,
decoder: null,
encoding: null },
readable: false,
domain: null,
_events:
{ finish: [Function: onSocketFinish],
_socketEnd: [Function: onSocketEnd],
connect: [ [Function] ],
data: [Function],
readable: [Function],
close: [Function],
error: [Function] },
_maxListeners: 10,
_writableState:
{ highWaterMark: 16384,
objectMode: false,
needDrain: false,
ending: true,
ended: true,
finished: true,
decodeStrings: false,
defaultEncoding: 'utf8',
length: 0,
writing: false,
sync: false,
bufferProcessing: false,
onwrite: [Function],
writecb: null,
writelen: 0,
buffer: [] },
writable: false,
allowHalfOpen: false,
onend: null,
destroyed: true,
errorEmitted: false,
bytesRead: 22,
_bytesDispatched: 33,
_pendingData: null,
_pendingEncoding: '',
pipe: [Function],
addListener: [Function],
on: [Function],
pause: [Function],
resume: [Function],
read: [Function],
_consuming: true,
write: [Function: writeAfterFIN],
_idleNext: null,
_idlePrev: null,
_idleTimeout: -1 } }
from node-smpp.
Even enquire_link is not working. It worked before I updated the module with npm.
session.on('enquire_link', function (pdu) {
session.send(pdu.response());
});
from node-smpp.
Can you sniff session?
Perhaps SMSC simply disconnects you
from node-smpp.
After binding a transceiver successfully?
from node-smpp.
If SMSC is buggy :)
OK, i'll check with my ESME (based on node-smpp)
from node-smpp.
How to send a enquire_link to check this? There is no example in the docs. Like this:
session.enquire_link(pdu, function () {
console.log('Send an enquire link');
});
from node-smpp.
I got same result w/ closed session after sucesfully bind
going to investigate
from node-smpp.
What SMSC provider you use?
If session is closed without preliminary PDU that most likely ESME receives FIN ACK.
I found a bug in my own SMSC which increases enquire_link timeout on the disconnected ESMEs and
closes clonnection after first ESME's binding by session.close()
If your SMSC has similar bug and you don't have access to source code to fix it then
second bind attempt after session 'close' event can help.
from node-smpp.
The SMSC provider which I am using allows only one connection at a time. In order to send a lot of SMSs, I was trying to establish a connection from each of my web servers. After turning off one of servers, the connection from the other server to SMSC started working. Plus, I configured to send enquire links from my server in addition to responding to enquire links from SMSC. Now, I can keep the connection even days. That's cool. @tsypa Thanks for your help.
from node-smpp.
In this case, the proxy can be also a solution
Happy to help :)
from node-smpp.
Error: PDU length was too large (1195725856, maximum is 16384).
at Function.PDU.fromStream (C:\Users\HP\node_modules\smpp\lib\pdu.js:49:9)
at Session.extractPDUs (C:\Users\HP\node_modules\smpp\lib\smpp.js:59:20)
at emitNone (events.js:106:13)
at Socket.emit (events.js:208:7)
at emitReadable (_stream_readable.js:513:10)
at emitReadable (_stream_readable.js:507:7)
at addChunk (_stream_readable.js:274:7)
at readableAddChunk (_stream_readable.js:250:11)
at Socket.Readable.push (_stream_readable.js:208:10)
at TCP.onread (net.js:607:20)
from node-smpp.
I can't create SMPP server .
Error: PDU length was too large (1195725856, maximum is 16384).
at Function.PDU.fromStream (C:\Users\HP\node_modules\smpp\lib\pdu.js:49:9)
at Session.extractPDUs (C:\Users\HP\node_modules\smpp\lib\smpp.js:59:20)
at emitNone (events.js:106:13)
at Socket.emit (events.js:208:7)
at emitReadable (_stream_readable.js:513:10)
at emitReadable (_stream_readable.js:507:7)
at addChunk (_stream_readable.js:274:7)
at readableAddChunk (_stream_readable.js:250:11)
at Socket.Readable.push (_stream_readable.js:208:10)
at TCP.onread (net.js:607:20)
from node-smpp.
Related Issues (20)
- 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
- Client Not reciving DLR Report
- Only one message recieved when multiple messages are sent. HOT 5
- couldn't perform submit_sm although there is a binding
- Rebind on reconnecting to smsc is not working
- Support for Session Pooling.
- How to handle bind_transrecivier command status 5 HOT 5
- Session Randomly dropped by the server | ECONNRESET HOT 12
- Client receiving empty message due to encoding conflict. HOT 2
- [IGNORE]
- Multiprocessing HOT 2
- Why this library is too much sensitive ?
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.