Coder Social home page Coder Social logo

Deliver_SM_Resp about smppsim HOT 4 CLOSED

haifzhan avatar haifzhan commented on August 22, 2024
Deliver_SM_Resp

from smppsim.

Comments (4)

haifzhan avatar haifzhan commented on August 22, 2024

@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.

hajlaoui-nader avatar hajlaoui-nader commented on August 22, 2024

No i haven't tried this. But can you explain why it's fixed to 17 ?

from smppsim.

haifzhan avatar haifzhan commented on August 22, 2024

@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.

hajlaoui-nader avatar hajlaoui-nader commented on August 22, 2024

yes. i figured this out. Anyway, thank you for your answer :))

from smppsim.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.