[PATCH] SMPP

Nisan Bloch <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hi

A small patch for the SMPP SMSC module.
When the bind_receiver_resp comes in after the bind_transmitter_resp the 
SMPP module switches SMSCCONN_ACTIVE_RECV when it is allready in 
SMSCCONN_ACTIVE and preventing messages getting routed to this smsc.

Nisan

--- gw/smsc_smpp.c      Tue Jun  4 23:14:24 2002
+++ /home/nisof/kannel/work/smsc_smpp.c     Thu Jun 20 23:27:44 2002
@@ -779,6 +779,7 @@
                        octstr_get_cstr(smpp->conn->id),
                        pdu->u.bind_transmitter_resp.command_status);
              } else {
+                               if (smpp->conn->status != SMSCCONN_ACTIVE)
                  smpp->conn->status = SMSCCONN_ACTIVE_RECV;
                  smpp->conn->connect_time = time(NULL);
              }
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.