]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
When sending an SMS with a user data header properly set the UDH flag in the first...
authorJoshua Colp <jcolp@digium.com>
Mon, 13 Nov 2006 17:05:32 +0000 (17:05 +0000)
committerJoshua Colp <jcolp@digium.com>
Mon, 13 Nov 2006 17:05:32 +0000 (17:05 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2@47549 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_sms.c

index 78ff4d14375538587eaafc70a445d337f12f30c9..3a7677601f891bb26f5c9a8e0eca8aca2e35903a 100644 (file)
@@ -1050,7 +1050,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;