summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authortick <tick@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-10-25 10:35:26 +0000
committertick <tick@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-10-25 10:35:26 +0000
commit9e6cee624e011a163892e8798fb904cb6f2e804a (patch)
tree3cd7f4d69374c4bff10631eaf3e8f3f2dda7e8dc /src/util
parenta4ee05b6942d5b82269a1a0ea453b5467e44b96e (diff)
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
Diffstat (limited to 'src/util')
-rw-r--r--src/util/event.c2
-rw-r--r--src/util/shell.c2
2 files changed, 4 insertions, 0 deletions
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,
personal git repositories of Harald Welte. Your mileage may vary