From 9e6cee624e011a163892e8798fb904cb6f2e804a Mon Sep 17 00:00:00 2001 From: tick Date: Thu, 25 Oct 2007 10:35:26 +0000 Subject: Adding decoder TP-DCS, and it's based on 3GPP TS23.038 Clause 4. (Erin Yueh) git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3265 99fdad57-331a-0410-800a-d7fa5415bdb3 --- src/util/event.c | 2 ++ src/util/shell.c | 2 ++ 2 files changed, 4 insertions(+) (limited to 'src/util') diff --git a/src/util/event.c b/src/util/event.c index ea0dcb4..f14f906 100644 --- a/src/util/event.c +++ b/src/util/event.c @@ -42,6 +42,8 @@ static int insms_handler(struct lgsm_handle *lh, int evt, char payload[GSMD_SMS_DATA_MAXLEN]; if (aux->u.sms.inlined) { sms = (struct gsmd_sms_list *) aux->data; + if(sms->payload.is_voicemail) + printf("EVENT: You have a voice mail \n"); printf("EVENT: Incoming SMS from/to %s%s, at %i%i-%i%i-%i%i " "%i%i:%i%i:%i%i, GMT%c%i\n", ((sms->addr.type & __GSMD_TOA_TON_MASK) == diff --git a/src/util/shell.c b/src/util/shell.c index 922b64e..096b2cf 100644 --- a/src/util/shell.c +++ b/src/util/shell.c @@ -152,6 +152,8 @@ static int sms_msghandler(struct lgsm_handle *lh, struct gsmd_msg_hdr *gmh) case GSMD_SMS_LIST: case GSMD_SMS_READ: sms = (struct gsmd_sms_list *) ((void *) gmh + sizeof(*gmh)); + if(sms->payload.is_voicemail) + printf("it's a voicemail \n"); printf("%s message %i from/to %s%s, at %i%i-%i%i-%i%i " "%i%i:%i%i:%i%i, GMT%c%i\n", msgtype[sms->stat], sms->index, -- cgit v1.2.3