diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-13 17:05:32 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-11-13 17:05:32 +0000 |
commit | 6743d8e1d8cee6808478e6ee88a314f5fe8d37bb (patch) | |
tree | 04557eef9983b44ebabed27fbc6762410b6e5019 /apps | |
parent | 830dd3c78910a09fc0e7fa2ffb5a5c77b7ab8b02 (diff) |
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.2@47549 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_sms.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_sms.c b/apps/app_sms.c index 78ff4d143..3a7677601 100644 --- a/apps/app_sms.c +++ b/apps/app_sms.c @@ -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; |