fiorix / go-smpp

SMPP 3.4 Protocol for the Go programming language
MIT License
218 stars 135 forks source link

SUBMIT_SMRESP not received in the callback. #93

Open Munmendu opened 4 years ago

Munmendu commented 4 years ago
          In transmitter.go file  rc != nil,which eventually not calling the f(p). After changing to else if to if ,submit_smresp event is being received in the transceiver callback. Could you please help me why its being written like this? 
          seq := p.Header().Seq
    t.tx.Lock()
    rc := t.tx.inflight[seq]
    t.tx.Unlock()
    if rc != nil {
        rc <- &tx{PDU: p}
    } else if f != nil {
        f(p)
    }