diff options
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/event.c | 2 | ||||
-rw-r--r-- | src/util/shell.c | 2 |
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, |