From 6a95defd8355634eabcacc088db4704d42499f1a Mon Sep 17 00:00:00 2001 From: jserv Date: Wed, 17 Oct 2007 06:10:26 +0000 Subject: SMS status report From: Erin Yueh Subject: [PATCH] SMS status report I made a patch for SMS status report. It can change SMS-Submit messages and ask for a status report. When the destination address receives our message, the service center will send a SMS-STATUS-REPORT to us. We can tell what messages we sent by TP-MR (message reference number) value and can know the sending result by TP-ST (Status) value from status report messages. git-svn-id: http://svn.openmoko.org/trunk/src/target/gsm@3200 99fdad57-331a-0410-800a-d7fa5415bdb3 --- src/util/event.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/util') diff --git a/src/util/event.c b/src/util/event.c index ea8ad3b..ea0dcb4 100644 --- a/src/util/event.c +++ b/src/util/event.c @@ -128,8 +128,12 @@ static int incbm_handler(struct lgsm_handle *lh, int evt, static int inds_handler(struct lgsm_handle *lh, int evt, struct gsmd_evt_auxdata *aux) { - if (aux->u.ds.inlined) + if (aux->u.ds.inlined) { + struct gsmd_sms_list *sms; + sms = (struct gsmd_sms_list *) aux->data; printf("EVENT: Incoming Status Report\n"); + printf("message ref = %d, status = %d\n", sms->index,sms->payload.coding_scheme); + } else printf("EVENT: Incoming Status Report stored at location %i\n", aux->u.ds.index); -- cgit v1.2.3