Revision: 5df31c15560e
Author:   [email protected] <[email protected]>
Date:     Sat Aug 11 09:44:31 2012
Log:      Added comments and status code for Status
http://code.google.com/p/jss7/source/detail?r=5df31c15560e

Modified:
/map/map-api/src/main/java/org/mobicents/protocols/ss7/map/api/smstpdu/SmsStatusReportTpdu.java /map/map-api/src/main/java/org/mobicents/protocols/ss7/map/api/smstpdu/Status.java

=======================================
--- /map/map-api/src/main/java/org/mobicents/protocols/ss7/map/api/smstpdu/SmsStatusReportTpdu.java Mon Apr 23 10:53:14 2012 +++ /map/map-api/src/main/java/org/mobicents/protocols/ss7/map/api/smstpdu/SmsStatusReportTpdu.java Sat Aug 11 09:44:31 2012
@@ -23,6 +23,11 @@
 package org.mobicents.protocols.ss7.map.api.smstpdu;

 /**
+ * Short message transfer protocol data unit informing the receiving MS of the + * status of a mobile originated short message previously submitted by the MS, + * i.e. whether the SC was able to forward the message or not, or whether the
+ * message was stored in the SC for later delivery.
+ *
  * SMS-STATUS-REPORT pdu
  *
  * @author sergey vetyutnev
@@ -31,11 +36,15 @@
 public interface SmsStatusReportTpdu extends SmsTpdu {

        /**
+        * Parameter indicating that the TP–UD field contains a header.
+        *
         * @return TP-UDHI field
         */
        public boolean getUserDataHeaderIndicator();

        /**
+        * Parameter indicating whether or not there are more messages to send.
+        *
         * @return TP-MMS field
         */
        public boolean getMoreMessagesToSend();
@@ -46,56 +55,102 @@
        public boolean getForwardedOrSpawned();

        /**
+        * Parameter indicating whether the previously submitted TPDU was an
+        * SMS_SUBMIT or an SMS_COMMAND
+        *
         * @return TP-SRQ field
         */
        public StatusReportQualifier getStatusReportQualifier();

        /**
+ * Parameter identifying the previously submitted SMS_SUBMIT or SMS_COMMAND
+        *
         * @return TP-MR field
         */
        public int getMessageReference();

        /**
+        * Address of the recipient of the previously submitted mobile 
originated
+        * short message
+        *
         * @return TP-RA field
         */
        public AddressField getRecipientAddress();

        /**
+        * Parameter identifying time when the SC received the previously sent
+        * SMS_SUBMIT.
+        *
         * @return TP-SCTS field
         */
        public AbsoluteTimeStamp getServiceCentreTimeStamp();

        /**
+        * <p>
+ * Parameter identifying the time associated with a particular TP–ST outcome
+        * </p>
+        *
+        * <p>
+        * The TP-Discharge-Time field indicates the time at which a previously
+        * submitted SMS-SUBMIT was successfully delivered to or attempted to
+        * deliver to the recipient SME or disposed of by the SC.
+        * </p>
+        *
+        * <p>
+ * In the case of "transaction completed" the time shall be the time of the
+        * completion of the transaction. In the case of
+        * "SC still trying to transfer SM" the time shall be the time of the 
last
+        * transfer attempt. In the case of
+ * "permanent or temporary error - SC not making any more transfer attempts"
+        * the time shall be the time of either the last transfer attempt or the
+        * time at which the SC disposed of the SM according to the Status 
outcome
+        * in TP-ST.
+        * </p>
+        *
         * @return TP-DT field
         */
        public AbsoluteTimeStamp getDischargeTime();

        /**
+ * Parameter identifying the status of the previously sent mobile originated
+        * short message.
+        *
         * @return TP-ST field
         */
        public Status getStatus();
-
+
        /**
+ * Parameter indicating the presence of any of the optional parameters that
+        * follow.
+        *
         * @return TP-PI field
         */
        public ParameterIndicator getParameterIndicator();

        /**
+        * TP–PID of original SMS_SUBMIT.
+        *
         * @return TP-PID field
         */
        public ProtocolIdentifier getProtocolIdentifier();
-
+
        /**
+        * Parameter identifying the coding scheme within the TP–UD.
+        *
         * @return TP-DCS field
         */
        public DataCodingScheme getDataCodingScheme();
-
+
        /**
+        * Parameter identifying the length of the TP–UD field.
+        *
         * @return TP-UDL field
         */
        public int getUserDataLength();
-
+
        /**
+        * Variable user data.
+        *
         * @return TP-UD field
         */
        public UserData getUserData();
=======================================
--- /map/map-api/src/main/java/org/mobicents/protocols/ss7/map/api/smstpdu/Status.java Mon Apr 23 10:53:14 2012 +++ /map/map-api/src/main/java/org/mobicents/protocols/ss7/map/api/smstpdu/Status.java Sat Aug 11 09:44:31 2012
@@ -1,6 +1,6 @@
 /*
- * JBoss, Home of Professional Open Source
- * Copyright 2011, Red Hat, Inc. and individual contributors
+ * TeleStax, Open Source Cloud Communications  Copyright 2012.
+ * and individual contributors
  * by the @authors tag. See the copyright.txt in the distribution for a
  * full listing of individual contributors.
  *
@@ -19,16 +19,95 @@
  * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
  */
-
 package org.mobicents.protocols.ss7.map.api.smstpdu;

 /**
+ * <p>
+ * The TP-Status field indicates the status of a previously submitted SMS-SUBMIT
+ * and certain SMS COMMANDS for which a Status -Report has been requested.
+ * </p>
  *
  * @author sergey vetyutnev
+ * @author amit bhayani
  *
  */
 public interface Status {

+       /**
+        * Short message transaction completed
+        */
+
+       // Short message received by the SME
+       public static final int SMS_RECEIVED = 0;
+
+       // Short message forwarded by the SC to the SME but the SC is unable to
+       // confirm delivery
+       public static final int SMS_UNABLE_TO_CONFIRM_DELIVERY = 1;
+
+       // Short message replaced by the SC
+       public static final int SMS_REPLACED_BY_SC = 2;
+
+       /**
+        * Temporary error, SC still trying to transfer SM
+        */
+
+       public static final int CONGESTION_STILL_TRYING = 32;
+
+       public static final int SME_BUSY_STILL_TRYING = 33;
+
+       public static final int NO_REPOSNE_FROM_SME_STILL_TRYING = 34;
+
+       public static final int SERVICE_REJECTED_STILL_TRYING = 35;
+
+ public static final int QUALITY_OF_SERVICE_NOT_AVAILABLE_STILL_TRYING = 36;
+
+       public static final int ERROR_IN_SME_STILL_TRYING = 37;
+
+       /**
+        * Permanent error, SC is not making any more transfer attempts
+        */
+       public static final int REMOTE_PROCEDURE_ERROR = 64;
+
+       public static final int INVOMPATIBLE_DESTINATION = 65;
+
+       public static final int CONNECTION_REJECTED_BY_SME = 66;
+
+       public static final int NOT_OBTAINABLE = 67;
+
+       public static final int QOS_NOT_AVAILABLE = 68;
+
+       public static final int NO_INTERWORKING_AVAILABLE = 69;
+
+       public static final int SMS_VALIDITY_PERIOD_EXPIRED = 70;
+
+       public static final int SMS_DELETED_BY_ORIGINATING_SME = 71;
+
+       public static final int SMS_DELETED_BY_ADMINISTRATOR = 72;
+
+       // The SM may have previously existed in the SC but the SC no longer has
+       // knowledge of it or the SM may never have previously existed in the SC
+       public static final int SMS_DOES_NOT_EXIST = 73;
+
+       /**
+        * Temporary error, SC is not making any more transfer attempts
+        */
+
+       public static final int CONGESTION = 96;
+
+       public static final int SME_BUSY = 97;
+
+       public static final int NO_REPOSNE_FROM_SME = 98;
+
+       public static final int SERVICE_REJECTED = 99;
+
+       public static final int QUALITY_OF_SERVICE_NOT_AVAILABLE = 100;
+
+       public static final int ERROR_IN_SME = 101;
+
+       /**
+        *
+        * @return one of the status codes as declared above
+        */
        public int getCode();

 }

Reply via email to