summaryrefslogtreecommitdiffabout
path: root/gammu/emb/common/service/sms/gsmsms.c
Side-by-side diff
Diffstat (limited to 'gammu/emb/common/service/sms/gsmsms.c') (more/less context) (ignore whitespace changes)
-rw-r--r--gammu/emb/common/service/sms/gsmsms.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gammu/emb/common/service/sms/gsmsms.c b/gammu/emb/common/service/sms/gsmsms.c
index 9920835..feceba4 100644
--- a/gammu/emb/common/service/sms/gsmsms.c
+++ b/gammu/emb/common/service/sms/gsmsms.c
@@ -1,50 +1,53 @@
/* (c) 2001-2004 by Marcin Wiacek */
-/* based on some work from Pawel Kot, others and Gnokii */
+/* Based on some Pawel Kot and others work from Gnokii (www.gnokii.org)
+ * (C) 1999-2000 Hugh Blemings & Pavel Janik ml. (C) 2001-2004 Pawel Kot
+ * GNU GPL version 2 or later
+ */
#include <ctype.h>
#include <string.h>
#include <time.h>
#include "../../gsmcomon.h"
#include "../../misc/coding/coding.h"
#include "../gsmcal.h"
#include "../gsmpbk.h"
#include "../gsmlogo.h"
#include "../gsmring.h"
#include "../gsmdata.h"
#include "../gsmnet.h"
#include "gsmsms.h"
/* User data headers */
static GSM_UDHHeader UDHHeaders[] = {
/* See GSM 03.40 section 9.2.3.24.1
* 1 byte 0x00
* 1 byte 0x03
* 1 byte 0x01: unique ID for message series
* 1 byte 0x00: how many SMS in sequence
* 1 byte 0x00: number of current SMS in sequence */
{ UDH_ConcatenatedMessages, 0x05, "\x00\x03\x01\x00\x00",2,-1,4,3},
/* See GSM 03.40 section 9.2.3.24.2 for voice, fax and email messages */
{ UDH_DisableVoice, 0x04, "\x01\x02\x00\x00",-1,-1,-1,-1},
{ UDH_DisableFax, 0x04, "\x01\x02\x01\x00",-1,-1,-1,-1},
{ UDH_DisableEmail, 0x04, "\x01\x02\x02\x00",-1,-1,-1,-1},
{ UDH_EnableVoice, 0x04, "\x01\x02\x00\x01",-1,-1,-1,-1},
{ UDH_EnableFax, 0x04, "\x01\x02\x01\x01",-1,-1,-1,-1},
{ UDH_EnableEmail, 0x04, "\x01\x02\x02\x01",-1,-1,-1,-1},
/* When send such SMS to some phones, they don't display anything,
* only beep and enable vibra/light
*/
{ UDH_VoidSMS, 0x08, "\x01\x02\x02\x01\x01\x02\x02\x00",-1,-1,-1,-1},
/* Nokia Smart Messaging (short version) UDH
* General format :
* 1 byte 0x05 : IEI application port addressing scheme, 16 bit address
* 1 byte 0x04 : IEI length
* 2 bytes : destination address : high & low byte
* 2 bytes 0x00 0x00 : originator address : high & low byte */
{ UDH_NokiaRingtone, 0x06, "\x05\x04\x15\x81\x00\x00",-1,-1,-1,-1},
{ UDH_NokiaOperatorLogo, 0x06, "\x05\x04\x15\x82\x00\x00",-1,-1,-1,-1},
{ UDH_NokiaCallerLogo, 0x06, "\x05\x04\x15\x83\x00\x00",-1,-1,-1,-1},
{ UDH_NokiaWAP, 0x06, "\x05\x04\xc3\x4f\x00\x00",-1,-1,-1,-1},