Hello!
I wrote a little patch for kannel wich doesn't send keep-alive packets
(enquire link) if any other packets goes thorought gateway due to
enquire-link-interval.
--
Index: gateway/gw/smsc/smsc_smpp.c
===================================================================
RCS file: /home/cvs/gateway/gw/smsc/smsc_smpp.c,v
retrieving revision 1.95
diff -u -u -r1.95 smsc_smpp.c
--- gateway/gw/smsc/smsc_smpp.c 13 Jun 2006 13:50:49 -0000 1.95
+++ gateway/gw/smsc/smsc_smpp.c 25 Aug 2006 14:56:15 -0000
@@ -78,7 +78,7 @@
#include "sms.h"
#include "dlr.h"
-#define SMPP_DEFAULT_CHARSET "windows-1252"
+#define SMPP_DEFAULT_CHARSET "windows-1251"
/*
* Select these based on whether you want to dump SMPP PDUs as they are
@@ -1787,6 +1787,7 @@
send_enquire_link(smpp, conn, &last_enquire_sent);
while ((ret = read_pdu(smpp, conn, &len, &pdu)) == 1) {
+ last_enquire_sent = last_response;
last_response = time(NULL);
/* Deal with the PDU we just got */
dump_pdu("Got PDU:", smpp->conn->id, pdu);
begin:vcard
fn:Denis V. Gudtsov
n:Gudtsov;Denis
org:Tango Telecom;IT
adr:;;;Izhevsk;UDM;426000;Russia
email;internet:[EMAIL PROTECTED]
tel;work:+7-(3412)-916-500
tel;fax:+7-(3412)-916-501
tel;pager:icq#158668135
tel;home:+7-(3412)-916-503
tel;cell:+7-904-311-03-78
x-mozilla-html:FALSE
url:http://www.tangotel.ru/
version:2.1
end:vcard