Hi Nisan,

I've faced this problem and gave my comment about this to Andreas Fink
some days ago.

I simply marked some lines in the function smsc2_rout() in the file
bb_smscconn.c:

        /* If connection is not currently answering... */
        if (info.status != SMSCCONN_ACTIVE) {
            bad_found = 1;
            continue;
        }

and it work well.

Le Nhu Hai



--- Nisan Bloch <[EMAIL PROTECTED]> wrote:
> 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);
>               }
> 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

Reply via email to