[PATCH] smsbox inserts <empty reply> message even if UDH contains data

"Oded Arbel" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hi list.
 
The smsbox inserts the text "<empty reply from service provider>" into the message data if it is empty. it does not take into account the UDH data - for example, if we send an EMS object with no text, smsbox will add the empty reply text.
 
This patch will change this behaviour so that UDH only messages will not get the empy reply text appended.
 
--
Oded Arbel
m-Wise mobile solutions
[email protected]
 
+972-9-9581711 (116)
+972-67-340014
 
::..
"He was so narrow minded he could see through a keyhole with both eyes ..."
smsbox.patch (application/octet-stream, 434 B)
--- gw/smsbox.c	2002-08-22 13:10:55.000000000 +0300
+++ gw/smsbox.c	2002-09-01 18:24:47.000000000 +0300
@@ -159,7 +159,7 @@
     
     /* Empty message?  Either ignore it or substitute the "empty"
      * warning defined  */
-    if (octstr_len(msg->sms.msgdata) == 0) {
+    if (!octstr_len(msg->sms.msgdata) && !octstr_len(msg->sms.udhdata)) {
 	if (trans != NULL && urltrans_omit_empty(trans))
             return 0;
         else
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.