Giter VIP home page Giter VIP logo

Comments (4)

ehsanullahjan avatar ehsanullahjan commented on July 26, 2024

No idea how you'd solve the issue you described, but if all you need is an SMSC simulator for testing purposes, you can use Logica SMPP simulator (http://opensmpp.logica.com/CommonPart/Introduction/Introduction.htm). It's FOSS and works great.

from cloudhopper-smpp.

nicodewet avatar nicodewet commented on July 26, 2024

Thanks for that, I've used Logica SMPP, however cloudhopper-smpp makes it easy for me to include in a Spring test context for integration test purposes in a Maven project. I'll figure this out eventually and then perhaps the solution can be included in the demo folder.

from cloudhopper-smpp.

jjlauer avatar jjlauer commented on July 26, 2024

Sorry for the late reply, but thought I'd mention a Java DelayQueue as a quick solution for sending a delayed async DeliveryReceipt. If I were implementing it, I would 1) create a thread to process the DelayQueue items (probably for a specific bound connection), 2) upon receiving the submit, create the delivery receipt and add to DelayQueue, 3) item would be processed at a later time by the thread processing items from the DelayQueue.

http://docs.oracle.com/javase/1.5.0/docs/api/java/util/concurrent/DelayQueue.html

from cloudhopper-smpp.

nicodewet avatar nicodewet commented on July 26, 2024

Thanks for that.

In case it helps anyone, for guidance on how to formulate your DeliveryReceipt look at "encodeDeliverSmAsDeliveryReceipt()" in https://github.com/twitter/cloudhopper-smpp/blob/master/src/test/java/com/cloudhopper/smpp/transcoder/PduEncoderTest.java

Once you have put your PDU together you may want to use SmppSession.sendRequestPdu to send the DeliveryReceipt

from cloudhopper-smpp.

Related Issues (20)

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.