summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2009-06-04 16:17:29 -0500
committerDenis Kenzior <denkenz@gmail.com>2009-06-05 19:57:03 -0500
commitf09683fc892f0782d481f2b6c63b9026d3b0e3b3 (patch)
tree030a9d9d2bbc7171417c3f84363bc5d6c97b7881
parent973b33f47e0b82a588859edbd4aa53024140c0ee (diff)
downloadofono-f09683fc892f0782d481f2b6c63b9026d3b0e3b3.tar.bz2
SMS-Command is also submitted with sc address
-rw-r--r--src/smsutil.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/smsutil.c b/src/smsutil.c
index 97a75259..6bbb57d1 100644
--- a/src/smsutil.c
+++ b/src/smsutil.c
@@ -1221,7 +1221,8 @@ gboolean encode_sms(const struct sms *in, int *len, int *tpdu_len,
int offset = 0;
int tpdu_start;
- if (in->type == SMS_TYPE_DELIVER || in->type == SMS_TYPE_SUBMIT)
+ if (in->type == SMS_TYPE_DELIVER || in->type == SMS_TYPE_SUBMIT ||
+ in->type == SMS_TYPE_COMMAND)
if (!encode_address(&in->sc_addr, TRUE, pdu, &offset))
return FALSE;