uudashr / jsmpp

Java SMPP (Short Message Peer-to-peer Protocol) API
Apache License 2.0
123 stars 118 forks source link

SMPP providers may be use long passwords over SMPP 3.4 standard (like t-sms.ru) #42

Open vharseko opened 9 years ago

vharseko commented 9 years ago
diff --git a/jsmpp/src/main/java/org/jsmpp/util/StringParameter.java b/jsmpp/src/main/java/org/jsmpp/util/StringParameter.java
index 1d1eb37..aad74ce 100644
--- a/jsmpp/src/main/java/org/jsmpp/util/StringParameter.java
+++ b/jsmpp/src/main/java/org/jsmpp/util/StringParameter.java
@@ -31,7 +31,8 @@
    /**
     * password string parameter.
     */
-   PASSWORD(StringType.C_OCTEC_STRING, 0, 9, true, SMPPConstant.STAT_ESME_RINVPASWD),
+   //SMPP providers may be use long passwords over SMPP 3.4 standard (like t-sms.ru) 
+   PASSWORD(StringType.C_OCTEC_STRING, 0, 32, true, SMPPConstant.STAT_ESME_RINVPASWD),

    /**
     * system_type string parameter.
ADTC commented 9 years ago

Same goes here. Explain what you're doing and why. Not show the diff (which we can already see in the actual pull request).