Hi

here is a patch that should do it. Setting the relative port or 
receive-port to 0 in the smpp smsc group config will disable either the 
transmitter/receiver. I have to bind both with my SMSC, could someone 
please test.

Nisan

--- ../cvs/gateway/gw/smsc_smpp.c       Thu Jan 10 20:23:48 2002
+++ smsc_smpp.c Thu Jan 17 22:35:46 2002
@@ -853,10 +853,13 @@
      octstr_destroy(address_range);

      conn->status = SMSCCONN_CONNECTING;
+    if (port !=0)
      smpp->transmitter = gwthread_create(io_thread, io_arg_create(smpp, 1));
+    if (receive_port !=0)
      smpp->receiver = gwthread_create(io_thread, io_arg_create(smpp, 0));

-    if (smpp->transmitter == -1 || smpp->receiver == -1) {
+    if ((port !=0 && smpp->transmitter == -1) ||
+        (receive_port !=0 && smpp->receiver == -1)) {
         error(0, "SMPP: Couldn't start I/O threads.");
         smpp->quitting = 1;
         if (smpp->transmitter != -1) {


At 04:59 PM 1/17/02 +0100, Stipe Tolj wrote:
>Paul Keogh wrote:
> >
> > > Hi. We've got access to an SMPP interface, which sort of works...
> > > But the SMPP only allows us to do BIND_RECEIVER, not BIND_TRANSMITTER.
> > > Is there any way to tell kannel to forget about that BIND_TRANSMIT
> > > that it cannot have?
> > >
> > > Kannel insists on doing an endless 2-second loop of
> > >
> > > 2002-01-09 10:42:48 [7] ERROR: SMPP: SMSC rejected login to
> > > transmit, code
> > > 0x0000000d.
> > > 2002-01-09 10:42:48 [7] ERROR: SMPP: I/O error or other error.
> > > Re-connecting.
> > > 2002-01-09 10:42:50 [7] ERROR: SMPP: SMSC rejected login to
> > > transmit, code
> > > 0x0000000d.
> > > 2002-01-09 10:42:50 [7] ERROR: SMPP: I/O error or other error.
> > > Re-connecting.
> > > Receiving works OK, though, it's just annoying with
> > > those connect attempts every 2 seconds...
> > >    Do anyone know of a way to avoid that?
> >
> > Not through configuration. You'll have to make a code change to get
> > this functionality.
>
>I guess this _should_ be configurable.
>
>Jacob, could you please send a patch for the devel@ list if you had
>your hands on this issue and we will try to incorporate it to cvs with
>configurable directives.
>
>--
>Für weitere Fragen stehe ich Ihnen gerne telefonisch
>oder via E-Mail zur Verfügung.
>
>Mit freundlichen Grüßen
>
>
>Stipe Tolj
>Department Management
>Technology Center & Research Lab
>
>[EMAIL PROTECTED]
>-------------------------------------------------------------------
>Wapme Systems AG
>
>Münsterstr. 248
>40470 Düsseldorf
>
>Tel: +49-211-74845-0
>Fax: +49-211-74845-299
>
>E-Mail: [EMAIL PROTECTED]
>Internet: http://www.wapme-systems.de
>-------------------------------------------------------------------
>wapme.net - wherever you are


Reply via email to