aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_sms.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-13 17:08:07 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2006-11-13 17:08:07 +0000
commit45087bad5ec7c40d41e91b0b1a0feb25e796fed7 (patch)
tree0082c89057ffe1067edc05d987ae3eb181cfd6bd /apps/app_sms.c
parent2473ff0edcc96c13c643970f5fe85f14f0935929 (diff)
Merged revisions 47549 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r47549 | file | 2006-11-13 12:05:32 -0500 (Mon, 13 Nov 2006) | 2 lines When sending an SMS with a user data header properly set the UDH flag in the first byte. (issue #8347 reported by hoffmeis) ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47551 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_sms.c')
-rw-r--r--apps/app_sms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_sms.c b/apps/app_sms.c
index 5bb076e81..5eb0f9f85 100644
--- a/apps/app_sms.c
+++ b/apps/app_sms.c
@@ -1046,7 +1046,7 @@ static void sms_nextoutgoing (sms_t * h)
unsigned char p = 2;
h->omsg[0] = 0x91; /* SMS_DATA */
if (h->smsc) { /* deliver */
- h->omsg[p++] = (more ? 4 : 0);
+ h->omsg[p++] = (more ? 4 : 0) + ((h->udhl > 0) ? 0x40 : 0);
p += packaddress (h->omsg + p, h->oa);
h->omsg[p++] = h->pid;
h->omsg[p++] = h->dcs;