summaryrefslogtreecommitdiff
path: root/src/pdu.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pdu.h')
-rw-r--r--src/pdu.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/pdu.h b/src/pdu.h
index 5b4eb15..dea429a 100644
--- a/src/pdu.h
+++ b/src/pdu.h
@@ -60,6 +60,21 @@ enum {
PDU_ALPHABET_DEFAULT_MULTI = 9,//no GSM, LVW2 7-bit, multi-part
};
+// CDMA Teleservice Identifiers (what type of message is received in CDMA network)
+// All such identifiers are described in 3GPP2 X.S0004-550-E, section 2.256 SMS_TeleserviceIdentifier
+enum {
+ PDU_TELE_ID_UNUSED = 0, // Not used.
+ // 1 - Reserved for maintenance.
+ // 2 through 4095 - Reserved for assignment by MAP.
+ // ...
+ PDU_TELE_ID_CDMA_PAGE = 4097, // CDMA Cellular Paging Teleservice.
+ PDU_TELE_ID_CDMA_MSG = 4098, // CDMA Cellular Messaging Teleservices.
+ PDU_TELE_ID_CDMA_VOICE_MSG_NOTIF = 4099, // CDMA Voice Mail Notification
+ // ...
+ PDU_TELE_ID_CDMA_WEMT = 4101 // CDMA Wireless Enhanced Messaging Teleservice (WEMT).
+ // ...
+};
+
struct pdu_info {
int msg_len;
struct pdu_addr smsc_addr;
@@ -77,6 +92,7 @@ struct pdu_info {
} type;
uint8_t msg_reference;
uint8_t protocol_id;
+ uint16_t teleservice_id; // CDMA-specific, see 3GPP2 X.S0004-550-E for details
union {
uint8_t data_coding;
struct {