Dear all,

Kannel implementation of OISD will discard empty mobile originated sms. I think this is not acceptable in most cases. This simple patch should fix this.

BR,

Michael Zervakis
Index: smsc_oisd.c
===================================================================
--- smsc_oisd.c (revision 4831)
+++ smsc_oisd.c (working copy)
@@ -894,9 +894,7 @@
 
     if ((!(msg->sms.msgdata) || octstr_len(msg->sms.msgdata) == 0)
         && (!(msg->sms.udhdata) || octstr_len(msg->sms.udhdata) == 0)) {
-        info(0, "OISD[%s]: Got empty SMS, ignoring.",
-              octstr_get_cstr(conn->id));
-        goto error;
+        msg->sms.msgdata = octstr_create("");          
     }
 
     return msg;

Reply via email to