[asterisk-commits] file: branch 1.4 r47551 - in /branches/1.4: ./ apps/app_sms.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon Nov 13 10:08:08 MST 2006


Author: file
Date: Mon Nov 13 11:08:07 2006
New Revision: 47551

URL: http://svn.digium.com/view/asterisk?view=rev&rev=47551
Log:
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)

........

Modified:
    branches/1.4/   (props changed)
    branches/1.4/apps/app_sms.c

Propchange: branches/1.4/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.

Modified: branches/1.4/apps/app_sms.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_sms.c?view=diff&rev=47551&r1=47550&r2=47551
==============================================================================
--- branches/1.4/apps/app_sms.c (original)
+++ branches/1.4/apps/app_sms.c Mon Nov 13 11:08:07 2006
@@ -1046,7 +1046,7 @@
 		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;



More information about the asterisk-commits mailing list