Comments (3)
Hi, I think we have common vision here.
You might see the org.jsmpp.examples.SimpleSubmitExample, it's similar to your
code.
It just jsmpp has a lot of parameter when sending message. Yours is more
simple, I
want it jsmpp more simple too. But have you see the SMPP Specification? Message
submission (SUBMIT_SM) has alot parameter, you only use 3 parameters (such as
src,
dest, messages), what should I do with the rest parameters? Do I have to leave
it as
default? So how if I need it non-default value? The possible things is creating
2
method for message submission, the simple one (common value should be set by
default)
and the complete one. But, what value should I set as default value?
Thx
Original comment by [email protected]
on 28 Nov 2008 at 2:45
from jsmpp.
I've created two level of abstraction in my library. One is a SMPPSession and
SMPPClient over it. SMPPSession handles session lifetime control and has only
one
send method: PDU send(PDU pdu). SMPPSession also forces user to implement
PDUHandler
interface and implement public PDU received(PDU pdu) method.
SMPPClient simplify the SMPP library usage by providing send(Message) method
where
message is a simple POJO consist of Source, Destination and Text fields.
SMPPClient
additionally provides default error handling feature: identify error returned,
then
decide whether it should try again send message and how long it should sleep
before
second try etc.
SMPPClient provides Message dividing functionality. It's controlled wether large
message should be sent by Message Payload TLV or by small part through sar*
TLVs or
using UDH. It's very helpful.
Our platform has 20 connections to different SMSCs, i.e. sell phone operators.
Almost
all SubmitSM and DeliverSM parameters set to default or NULL values. That is
why i
make SMPPClient so stupid simple.
I cann't reveal details, cause i'm working in commercial company.
P.S. Sorry for my english. It's not my native language. But i hope you found my
notes
helpful.
Original comment by [email protected]
on 29 Nov 2008 at 2:19
from jsmpp.
Hi,
I agree with the SMPPClient, provides message dividing functionality. Past time
ago,
I've been thinking to do that, but in the end at the moment, jsmpp will keep as
protocol implementation at this time, all parameters option is on users
control. Not
wrapping some functionality such as automatic message dividing.
And the best way to do this is by creating a layer on top jsmpp that wrap this,
not
the jsmpp (at least for now), you can set the commons value so you only need to
specify only the dynamic values such as dest_addr, source_addr and message.
Thx
Original comment by [email protected]
on 29 Nov 2008 at 3:49
- Changed state: Done
from jsmpp.
Related Issues (20)
- Latest download not the same as available source HOT 1
- JSMPP Developer Support HOT 1
- SMPPServerSimulator example throws NullPointerException HOT 1
- ThreadSleep and listener causing issues. HOT 2
- Sending Arabic SMS failed. (submit_sm failed) HOT 1
- Negative response 0000000d found
- Receive negative response
- Negative response 00000401 found
- How to send enquiry link request from server to client
- Sending multiple messages without waiting for submit_sm_response
- Additional TLV parameter
- losed
- How to Send Voice SMS through JSMPP?
- Read optional parameter from DeliveryReceipt
- ERROR org.jsmpp.examples.V3SSmppSimulatorServer - Failed sending delivery_receipt for message id
- Error Sending SMS
- Failed decomposing deliver_sm
- Not able to receive deliver_sm sometimes
- Getting error java.io.IOException: Receive negative bind response: Negative response 00000009 found
- Patch for /trunk/src/java/examples/org/jsmpp/examples/SimpleSubmitExample.java
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 jsmpp.