summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorjserv <jserv@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-10-17 06:10:26 +0000
committerjserv <jserv@99fdad57-331a-0410-800a-d7fa5415bdb3>2007-10-17 06:10:26 +0000
commit6a95defd8355634eabcacc088db4704d42499f1a (patch)
tree8d22c61bc880813d07cb7e436323ef058515df47 /src/util
parent370e88780fd9caf011bbfe79fe8f99810a34bf96 (diff)
SMS status report
From: Erin Yueh <erin_yueh@openmoko.com> 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
Diffstat (limited to 'src/util')
-rw-r--r--src/util/event.c6
1 files changed, 5 insertions, 1 deletions
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);
personal git repositories of Harald Welte. Your mileage may vary