-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SMSC randomly send deliver_sm through TX or RX #157
Comments
That looks OK to me. |
Thank you, I have verified and solved this issue. Do you accept PR or I should just go ahead and fork it? |
I will refactor it, so it will fully support SMPP 3.3. You can fork it for now. |
I noticed that PR[1] tried to solve this problem, But it looks not finished yet. [1] e6a9bd9#diff-14b8e22a1fe560a9de6245326de2fcfcef51d6a01b3e8520b02bf071bb79796fR150-R156 |
Personally, I think to define setInterfaceVersion() method in SMPPSessionState public interface SMPPSessionState extends GenericSMPPSessionState {
// add interface
void setInterfaceVersion(final InterfaceVersion interfaceVersion); And, Set interface version in the changeState() method public class SMPPSessionContext extends AbstractSessionContext {
@Override
protected void changeState(SessionState newState) {
if (!stateProcessor.getSessionState().equals(newState)) {
final SessionState oldState = stateProcessor.getSessionState();
...
} else if (newState == SessionState.BOUND_TX) {
stateProcessor = SMPPSessionState.BOUND_TX;
// set interface version
stateProcessor.setInterfaceVersion(this.getInterfaceVersion());
} else if (newState == SessionState.BOUND_TRX) {
...
}
}
} |
I have SMSC devices that only support SMPP 3.3 protocol, But it will randomly send deliver_sm through TX or RX.
I want to be compatible with it. I found the following method
jsmpp/jsmpp/src/main/java/org/jsmpp/session/state/SMPPSessionBoundTX.java
Line 146 in c7599e5
I modify the method like :
Is that correct?
The text was updated successfully, but these errors were encountered: