[PATCH] OIS doesnot handle GSM 03.38 escape sequences.
Oded Arbel <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi list. Well - the subject line says it all. it really doesn't - I checked ;-) The Kannel that we have running with an OIS SMSC is very old but a patch agains a 1.0.3 or something wouldn't be much help, so here's a port of our patch to the latest development. Note : its completly untested (on the development branch), but it's very simple and shouldn't be much trouble. Have fun ! Oded Arbel m-Wise inc. [email protected] -- An old curse states as follows: May you live in interesting times. -- Interesting Times, Terry Prachette
smsc_ois.patch
(text/x-patch, 922 B)
diff -u gateway/gw/smsc_ois.c:1.1.1.1 gateway/gw/smsc_ois.c:1.1.1.1.2.3
--- gateway/gw/smsc_ois.c:1.1.1.1 Thu Jan 3 15:40:55 2002
+++ gateway/gw/smsc_ois.c Wed Feb 6 21:40:50 2002
@@ -66,6 +66,7 @@
#include "smsc.h"
#include "smsc_p.h"
#include "gwlib/gwlib.h"
+#include "gwlib/charset.h"
#include "sms.h"
/* XXX Delete me and replace dcs with dcs_to_fields */
@@ -938,6 +939,11 @@
SAY(3, "ois_append_sm_text");
+ if (msg->sms.coding == DC_7BIT) {
+ charset_latin1_to_gsm(msg->sms.udhdata);
+ charset_latin1_to_gsm(msg->sms.msgdata);
+ }
+
/* calculate lengths */
udhlen8 = octstr_len(msg->sms.udhdata);
@@ -956,9 +962,9 @@
IOTRACE("encoding", &raw[2], len);
- if (msg->sms.coding == DC_7BIT) {
- ois_convert_from_iso88591(&raw[2], len);
- }
+// if (msg->sms.coding == DC_7BIT) {
+// ois_convert_from_iso88591(&raw[2], len);
+// }
return 2 + len;
}