* via RIL_UNSOL_RESPONSE_NEW_SMS
*
* "data" is int *
- * ((int *)data)[0] is "1" on successful receipt
+ * ((int *)data)[0] is 1 on successful receipt
* (basically, AT+CNMA=1 from TS 27.005
- * ((int *)data)[0] is "0" on failed receipt
+ * is 0 on failed receipt
* (basically, AT+CNMA=2 from TS 27.005)
+ * ((int *)data)[1] if data[0] is 0, this contains the failure cause as defined
+ * in TS 23.040, 9.2.3.22. Currently only 0xD3 (memory
+ * capacity exceeded) and 0xFF (unspecified error) are
+ * reported.
*
* "response" is NULL
*
*/
#define RIL_REQUEST_SET_SMSC_ADDRESS 101
+/**
+ * RIL_REQUEST_REPORT_SMS_MEMORY_STATUS
+ *
+ * Indicates whether there is storage available for new SMS messages.
+ *
+ * "data" is int *
+ * ((int *)data)[0] is 1 if memory is available for storing new messages
+ * is 0 if memory capacity is exceeded
+ *
+ * "response" is NULL
+ *
+ * Valid errors:
+ * SUCCESS
+ * RADIO_NOT_AVAILABLE
+ * GENERIC_FAILURE
+ *
+ */
+#define RIL_REQUEST_REPORT_SMS_MEMORY_STATUS 102
+
/***********************************************************************/
typedef struct {
RIL_CDMA_SMS_ErrorClass uErrorClass;
- int uSMSCauseCode;
+ int uSMSCauseCode; /* As defined in N.S00005, 6.5.2.125.
+ Currently, only 35 (resource shortage) and
+ 39 (other terminal problem) are reported. */
} RIL_CDMA_SMS_Ack;
/* Used by RIL_REQUEST_CDMA_SMS_GET_BROADCAST_CONFIG and