Comments (4)
@hajlaoui-nader I played with SMPPSim about one year ago and now I cannot setup the environment to run this. All I can find is the following method invokes getStringValueFixedLength
public void demarshall(byte[] request) throws Exception {
// demarshall the header
super.demarshall(request);
// now set atributes of this specific PDU type
int inx = 16;
try {
message_id = PduUtilities.getStringValueFixedLength(request, inx, 1);
} catch (Exception e) {
logger.debug("DELIVER_SM_RESP PDU is malformed. message_id is incorrect");
throw (e);
}
}
the "startPoint + actualLength" is a fixed number, it is always 17. It seems like the length must be smaller than 17. Have you tried comment out this throw exception code OR modify the last two parameters to bigger number in PduUtilities.getStringValueFixedLength(request, inx, 1)?
from smppsim.
No i haven't tried this. But can you explain why it's fixed to 17 ?
from smppsim.
@hajlaoui-nader To be honest, I have no idea why it is fixed length, you can check its official website, it has some documents there, it may help you to figure it out. For me, I was using this SMPPSim as a simulator program to test my side program. I only switched it to slf4j logger which helped me to track what exactly happened in each class. The limitation of this SMPPSim that I found is when TPS is greater than 5000 and leave it running a few days, it will die itself.
from smppsim.
yes. i figured this out. Anyway, thank you for your answer :))
from smppsim.
Related Issues (4)
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 smppsim.