kneodev / ksmppd

Kurt's SMPP Daemon (SMPP Server for Kannel)
Other
56 stars 39 forks source link

DLR Issue - delivery SMSC in TX+RX mode #123

Closed m-faraz closed 4 years ago

m-faraz commented 4 years ago

We are using ksmppd in a production environment (very efficient I need to add and a life saver). We have run into an issue slightly. The setup is as below

client -> ksmppd -> kannel -> operator

The client end SMPP is set using TRX (Transceiver), but the operator end unfortunately is in a TX+RX mode (2 different connections). We are able to receive DLR from the operator, but the same are not getting forwarded back to client.

I am attaching a combined log from all relevant logs. Can you point out any issues here?!

/var/log/kannel/core-access.log:2020-01-29 12:35:47 Sent SMS [SMSC:<operator>] [SVC:<client>] [ACT:] [BINF:] [FID:1512069949] [META:?smpp??smpp_resp?] [from:44731] [to:+<MSISDN>] [flags:-1:0:-1:0:19] [msg:13:test msg umar] [udh:0:]
/var/log/kannel/core-access.log:2020-01-29 12:41:22 Receive DLR [SMSC:<operator>] [SVC:<client>] [ACT:8666] [BINF:] [FID:1512069949] [META:?orig_msg?dlr_mask=19&?smpp?dlr_err=%03%00%00&] [from:44731] [to:+<MSISDN>] [flags:-1:-1:-1:-1:1] [msg:122:id:1512069949 sub:000 dlvrd:000 submit date:2001291230 done date:2001291236 stat:DELIVRD err:000 text:test msg umar.......] [udh:0:]
/var/log/kannel/core-access.log:2020-01-31 15:09:30 Sent SMS [SMSC:<operator>] [SVC:<client>] [ACT:] [BINF:] [FID:2779791749] [META:?smpp??smpp_resp?] [from:44731] [to:+<MSISDN>] [flags:-1:0:-1:0:19] [msg:10:test msg 3] [udh:0:]
/var/log/kannel/core-access.log:2020-01-31 15:09:34 Receive DLR [SMSC:<operator>] [SVC:<client>] [ACT:8666] [BINF:] [FID:2779791749] [META:?orig_msg?dlr_mask=19&?smpp?dlr_err=%03%00%00&] [from:44731] [to:+<MSISDN>] [flags:-1:-1:-1:-1:1] [msg:122:id:2779791749 sub:000 dlvrd:000 submit date:2001311504 done date:2001311504 stat:DELIVRD err:000 text:test msg 3..........] [udh:0:]
/var/log/kannel/ksmppd.log:2020-01-29 12:35:47 [13493] [10] DEBUG:   destination_addr: "<MSISDN>"
/var/log/kannel/ksmppd.log:2020-01-29 12:35:47 [13493] [10] INFO: SMPP[<client>] Using default routing for +<MSISDN> to <operator> for cost 0.000000
/var/log/kannel/ksmppd.log:2020-01-31 15:09:30 [10858] [14] DEBUG:   destination_addr: "<MSISDN>"
/var/log/kannel/ksmppd.log:2020-01-31 15:09:30 [10858] [5] INFO: SMPP[<client>] Using default routing for +<MSISDN> to <operator> for cost 0.000000
/var/log/kannel/operator.log:2020-01-29 12:35:47 [32302] [12] DEBUG:   destination_addr: "<MSISDN>"
/var/log/kannel/operator.log:2020-01-29 12:35:47 [32302] [12] DEBUG: DLR[mysql]: Adding DLR smsc=<operator>, ts=1512069949, src=44731, dst=+<MSISDN>, mask=19, boxc=ksmppd
/var/log/kannel/operator.log:2020-01-29 12:41:22 [32302] [13] DEBUG:   source_addr: "<MSISDN>"
/var/log/kannel/operator.log:2020-01-29 12:41:22 [32302] [13] DEBUG: DLR[mysql]: Looking for DLR smsc=<operator>, ts=1512069949, dst=<MSISDN>, type=1
/var/log/kannel/operator.log:2020-01-31 15:09:30 [7557] [13] DEBUG:   destination_addr: "<MSISDN>"
/var/log/kannel/operator.log:2020-01-31 15:09:30 [7557] [13] DEBUG: DLR[mysql]: Adding DLR smsc=<operator>, ts=2779791749, src=44731, dst=+<MSISDN>, mask=19, boxc=ksmppd
/var/log/kannel/operator.log:2020-01-31 15:09:34 [7557] [14] DEBUG:   source_addr: "<MSISDN>"
/var/log/kannel/operator.log:2020-01-31 15:09:34 [7557] [14] DEBUG: DLR[mysql]: Looking for DLR smsc=<operator>, ts=2779791749, dst=<MSISDN>, type=1
m-faraz commented 4 years ago

Issue resolved. The client just had to connect to us using a transceiver connection. earlier they were using TX/RX.