enquirelink patch
"Denis V. Gudtsov" <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Organization | Tango Telecom |
| Message-ID | <[email protected]> |
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. --
enquire_link.patch
(text/x-patch, 909 B)
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);
denis.vcf
(text/x-vcard, 337 B)
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