~davewalker/ubuntu/maverick/asterisk/lp_705014

« back to all changes in this revision

Viewing changes to apps/app_sms.c

  • Committer: Bazaar Package Importer
  • Author(s): Lionel Porcheron
  • Date: 2007-01-28 01:08:48 UTC
  • mto: (1.2.1 upstream) (8.2.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: james.westby@ubuntu.com-20070128010848-2a556wel288emdbp
Tags: upstream-1.2.14~dfsg
ImportĀ upstreamĀ versionĀ 1.2.14~dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
 
34
34
#include "asterisk.h"
35
35
 
36
 
ASTERISK_FILE_VERSION(__FILE__, "$Revision: 37612 $")
 
36
ASTERISK_FILE_VERSION(__FILE__, "$Revision: 47549 $")
37
37
 
38
38
#include "asterisk/lock.h"
39
39
#include "asterisk/file.h"
1050
1050
                unsigned char p = 2;
1051
1051
                h->omsg[0] = 0x91;                /* SMS_DATA */
1052
1052
                if (h->smsc) {                   /* deliver */
1053
 
                        h->omsg[p++] = (more ? 4 : 0);
 
1053
                        h->omsg[p++] = (more ? 4 : 0) + ((h->udhl > 0) ? 0x40 : 0);
1054
1054
                        p += packaddress (h->omsg + p, h->oa);
1055
1055
                        h->omsg[p++] = h->pid;
1056
1056
                        h->omsg[p++] = h->dcs;