I found no way to do it besides editing the code.
If you remove (or comment) and add the following lines in smsc_smpp.c,
it should work:

    conn->status = SMSCCONN_CONNECTING;
    smpp->transmitter = gwthread_create(io_thread, io_arg_create(smpp,
1));
(-)    smpp->receiver = gwthread_create(io_thread, io_arg_create(smpp,
0));

(-)    if (smpp->transmitter == -1 || smpp->receiver == -1) {
(+)    if (smpp->transmitter == -1) {
        error(0, "SMPP: Couldn't start I/O threads.");
        smpp->quitting = 1;
        if (smpp->transmitter != -1) {
            gwthread_wakeup(smpp->transmitter);
            gwthread_join(smpp->transmitter);
        }
(-)        if (smpp->receiver != -1) {
(-)            gwthread_wakeup(smpp->receiver);
(-)            gwthread_join(smpp->receiver);
(-)        }
        smpp_destroy(conn->data);
        return -1;
    }


PMD

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
On Behalf Of Ronan Derby
Sent: segunda-feira, 14 de Janeiro de 2002 16:36
To: Kannel Developers
Subject: Binding as a transmitter only


Guys,

Just wondering if there is any quick and easy way to have kannel only
connect as a transmitter when using SMPP?

Regards,

Ronan.


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


Reply via email to