I use kannel:
Kannel bearerbox version `1.4.1'. Build `Oct 16 2006 10:48:53', compiler `4.1.1 20060525 (Red Hat 4.1.1-1)'. System Linux, release 2.6.19-1.2288.2.4.fc5, version #1 SMP Sun Mar 4 15:57:52 EST 2007, machine x86_64. Hostname h8.dbweb.ee, IP 217.159.233.174. Libxml version 2.6.23. Using SQLite 2.8.17. Using native malloc.

My kannel is connected to operator SMSC-es with two VPN IPSec tunnels.

First tunnel:
My kannel eth1: *.*.*.55 - VPN LAN: *.*.*.53 My VPN GW: 13.180.29.56 <- Tunnel -> Operator IPV GW: *.*.*.15 - Operator SMSC: *.*.*.119. I use it to send SMSes out.

Second tunnel:
My kannel eth1: *.*.*.55 - VPN LAN: *.*.*.53 My VPN GW: 13.180.29.56 <- Tunnel -> Operator IPV GW: *.*.*.15 - Operator SMSC: *.*.*.21 It's SMSC that sends mobile SMSes to my kannel.


Operator uses CMG UCP/EMI type SMSC.

Here is my kannel konf:


group = core
admin-port = 13000
admin-password = ******
status-password = ******
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "*.*.*.*"
smsbox-port = 1301
box-allow-ip = "*.*.*.*"
wdp-interface-name = "*"
log-file = "/var/log/kannel/bearerbox.log"
access-log = "/var/log/kannel/access.log"
store-file = "/var/log/kannel/store.log"
log-level = 0

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 12014
log-file      = /var/log/kannel/smsbox.log
log-level     = 0

group = sms-service
keyword = test
get-url = "http://localhost/smsservice.php?sender=%p&text=%r";

group = smsc
smsc-id = EMT_MT
smsc = emi
port = 10000
host = *.*.*.119
smsc-username = ****
smsc-password = ****

group = sendsms-user
username = ****
password = ****

My http status:
SMS: received 0 (0 queued), sent 1 (0 queued), store size 0

SMS: inbound 0.00 msg/sec, outbound 0.00 msg/sec

DLR: 0 queued, using internal storage

Box connections:
    smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 5h 57m 13s)

SMSC connections:
EMT_MT EMI2:*.*.*.119:10000:12014 (online 85s, rcvd 0, sent 1, failed 0, queued 0 msgs)

And what is my problem?
I can send sms out. But if I send SMS to my short number it's not coming to my kannel and I don't know what's wrong. If I change smsbox-port back to 13001 and run fakesmsc then all works fine. 1301 is because operator demands it.

Ok if I send sms to my shortnumber http status shows:
SMS: received 0 (0 queued), sent 1 (0 queued), store size 0

SMS: inbound 0.00 msg/sec, outbound 0.00 msg/sec

DLR: 0 queued, using internal storage

Box connections:
    smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 6h 9m 13s)
smsbox:(none), IP *.*.*.21(Operator SMSC IP) (0 queued), (on-line 0d 0h 0m 22s)

SMSC connections:
EMT_MT EMI2:217.71.32.119:10000:12014 (online 85s, rcvd 0, sent 1, failed 0, queued 0 msgs)

in bearerbox.log:
2007-03-30 23:17:31 [18836] [5] INFO: Client connected from <*.*.*.21>
2007-03-30 23:17:31 [18836] [5] DEBUG: Started thread 24 (gw/bb_boxc.c:function) 2007-03-30 23:17:31 [18836] [24] DEBUG: Thread 24 (gw/bb_boxc.c:function) maps to pid 18836. 2007-123.618723 *.*.*.55 -> *.*.*.21 TCP ci3-software-1 > 12785 [SYN, ACK] Seq=0 Ack=0 Win=5840 Len=0 MSS=1460 WS=5
123.624779 *.*.*.55 -> *.*.*.21 TCP ci3-software-1 > 12785 [ACK] Seq=1
Ack=107 Win=183 Len=0-30 23:17:31 [18836] [24] DEBUG: Started thread 25 (gw/bb_boxc.c:boxc_sender) 2007-03-30 23:17:31 [18836] [25] DEBUG: Thread 25 (gw/bb_boxc.c:boxc_sender) maps to pid 18836.

Same time thethereal shows:
123.618723 *.*.*.55 -> *.*.*.21 TCP ci3-software-1 > 12785 [SYN, ACK] Seq=0 Ack=0 Win=5840 Len=0 MSS=1460 WS=5 123.624779 213.180.29.55 -> 217.71.32.21 TCP ci3-software-1 > 12785 [ACK] Seq=1 Ack=107 Win=183 Len=0

And after about one minute in bearbox:
2007-03-30 23:19:02 [18836] [24] INFO: Connection closed by the box <*.*.*.21> 2007-03-30 23:19:02 [18836] [25] DEBUG: send_msg: sending msg to box: <*.*.*.21> 2007-03-30 23:19:02 [18836] [25] DEBUG: Thread 25 (gw/bb_boxc.c:boxc_sender) terminates. 2007-03-30 23:19:02 [18836] [24] DEBUG: Thread 24 (gw/bb_boxc.c:function) terminates.

tcpflow is show nothing.

And the same time tethereal shows:
215.071237 *.*.*.55 -> *.*.*.21 TCP ci3-software-1 > 12785 [PSH, ACK] Seq=1 Ack=108 Win=183 [TCP CHECKSUM INCORRECT] Len=16[Unreassembled Packet [incorrect TCP checksum]] 215.071360 *.*.*.55 -> *.*.*.21 TCP ci3-software-1 > 12785 [FIN, ACK] Seq=17 Ack=108 Win=183 Len=0

tcpflow shows:
*.*.*.055.01301-*.*.*.021.16760: ................

And it is always the same if sms tries to go into my kannel.
I don't know where to search the error. Operator tells that all is ok in their side.

Best regards, Margusja

---
Margusja
+37251780
skype: margusja
msn: [EMAIL PROTECTED]
homepage: http://margusja.pri.ee

Reply via email to