[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Something very strange going on with sms-es
From: |
Pavel Machek |
Subject: |
Something very strange going on with sms-es |
Date: |
Thu, 25 Apr 2002 21:44:30 +0200 |
User-agent: |
Mutt/1.3.28i |
Hi!
In testsuite, run ./testit script. See it fail to send operator
logo. Apply this and boom, logo is sent okay.
I wonder what is going on? Is text too short or what?
Pavel
Index: include/gsm-sms.h
===================================================================
RCS file: /cvsroot/gnokii/gnokii/include/gsm-sms.h,v
retrieving revision 1.32
diff -u -u -r1.32 gsm-sms.h
--- include/gsm-sms.h 7 Apr 2002 09:54:18 -0000 1.32
+++ include/gsm-sms.h 25 Apr 2002 19:32:54 -0000
@@ -31,6 +31,8 @@
#ifndef __gnokii_sms_h_
#define __gnokii_sms_h_
+#define DEBUG
+
#include "misc.h"
#include "gsm-error.h"
#include "gsm-common.h"
@@ -101,7 +103,8 @@
SMS_FaxMessage = 0x0b,
SMS_EmailMessage = 0x0c,
SMS_OtherMessage = 0x0d,
- SMS_UnknownUDH = 0x0e
+ SMS_UnknownUDH = 0x0e,
+ SMS_Binary = 0x0f,
} SMS_UDHType;
typedef struct {
@@ -122,6 +125,10 @@
struct {
char _dummy; /* FIXME: don't leave structs empty */
} Ringtone; /* SMS_Ringtone */
+ struct {
+ int Len;
+ unsigned char Data[256];
+ } Binary; /* For experiments */
} u;
} SMS_UDHInfo;
@@ -289,7 +296,7 @@
SMS_PlainText = 0x01,
SMS_BitmapData = 0x02,
SMS_RingtoneData = 0x03,
- SMS_OtherData = 0x04
+ SMS_OtherData = 0x04,
} SMS_DataType;
/*** FOLDER INFO ***/
@@ -322,6 +329,7 @@
unsigned int Length;
union {
unsigned char Text[GSM_MAX_SMS_LENGTH];
+ unsigned char Data[GSM_MAX_SMS_LENGTH]; /* Passing
binary data in "Text" seems wrong, that's why I created this */
GSM_Bitmap Bitmap;
GSM_Ringtone Ringtone;
} u;
--
(about SSSCA) "I don't say this lightly. However, I really think that the U.S.
no longer is classifiable as a democracy, but rather as a plutocracy." --hpa
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Something very strange going on with sms-es,
Pavel Machek <=