|
Hello, I
run Kannel 1.4.0 on cygwin 2.457 WinXP SP2. A
shell to run bearer.exe and another to run smsbox.exe I
have tested with the fakesmsc and I have been able to test the sendsms
facility. But
I have a problem, after 5 minutes of inactivity the smsbox is terminated ! The
log messages that I see on the bearer box is as below $
gw/bearerbox gw/smskannel.conf 2006-11-02
11:01:02 [5576] [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl= 0 2006-11-02
11:01:02 [5576] [0] WARNING: DLR: using default 'internal' for storage type. 2006-11-02
11:01:02 [5576] [0] INFO: DLR using storage type: internal 2006-11-02
11:01:02 [5576] [0] DEBUG: Kannel bearerbox version `1.4.1'. Build
`Oct 26 2006 17:37:36', compiler `3.4.4 (cygming special) (gdc 0.12, using dmd
0.125)'. System
CYGWIN_NT-5.1, release 1.5.21(0.156/4/2), version 2006-07-30 14:21, machine
i686. Hostname
Removed here for security reasons,
IP Removed here for security reasons. Libxml
version 2.6.26. Using
OpenSSL 0.9.8d 28 Sep 2006. Using
native malloc. 2006-11-02
11:01:02 [5576] [0] INFO: HTTP: Opening server at port 13000. 2006-11-02
11:01:02 [5576] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2006-11-02
11:01:02 [5576] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pi 2006-11-02
11:01:02 [5576] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2006-11-02
11:01:02 [5576] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid
5576. 2006-11-02
11:01:02 [5576] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run) 2006-11-02
11:01:02 [5576] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid
5576. 2006-11-02
11:01:02 [5576] [0] DEBUG: starting smsbox connection module 2006-11-02
11:01:02 [5576] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default
(100). 2006-11-02
11:01:02 [5576] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes) 2006-11-02
11:01:02 [5576] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid
5576. 2006-11-02
11:01:02 [5576] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run) 2006-11-02
11:01:02 [5576] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid
5576. 2006-11-02
11:01:02 [5576] [0] INFO: Set SMS resend frequency to 60 seconds. 2006-11-02
11:01:02 [5576] [0] INFO: SMS resend retry set to unlimited. 2006-11-02
11:01:02 [5576] [0] INFO: DLR rerouting for smsc id <FAKE> disabled. 2006-11-02
11:01:02 [5576] [0] DEBUG: Started thread 6 (gw/smsc/smsc_fake.c:fake_listener) 2006-11-02
11:01:02 [5576] [6] DEBUG: Thread 6 (gw/smsc/smsc_fake.c:fake_listener) maps to
pid 5576. 2006-11-02
11:01:02 [5576] [0] DEBUG: Started thread 7 (gw/bb_smscconn.c:sms_router) 2006-11-02
11:01:02 [5576] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) maps to pid
5576. 2006-11-02
11:01:02 [5576] [0] INFO: ---------------------------------------- 2006-11-02
11:01:02 [5576] [7] DEBUG: sms_router: time to sleep 30.00 secs. 2006-11-02
11:01:02 [5576] [0] INFO: Kannel bearerbox II version 1.4.1 starting 2006-11-02
11:01:02 [5576] [0] INFO: 2006-11-02
11:01:02 [5576] [0] DEBUG: smsc_fake: start called 2006-11-02
11:01:02 [5576] [7] DEBUG: sms_router: gwlist_len = 0 2006-11-02
11:01:27 [5576] [5] INFO: Client connected from <127.0.0.1> 2006-11-02
11:01:27 [5576] [5] DEBUG: Started thread 8 (gw/bb_boxc.c:function) 2006-11-02
11:01:27 [5576] [8] DEBUG: Thread 8 (gw/bb_boxc.c:function) maps to pid 5576. 2006-11-02
11:01:27 [5576] [9] DEBUG: Thread 9 (gw/bb_boxc.c:boxc_sender) maps to pid
5576. 2006-11-02
11:01:27 [5576] [8] DEBUG: Started thread 9 (gw/bb_boxc.c:boxc_sender) 2006-11-02
11:06:28 [5576] [8] ERROR: Error reading from fd 23: 2006-11-02
11:06:28 [5576] [8] ERROR: System error 104: Connection reset by peer 2006-11-02
11:06:28 [5576] [8] ERROR: Connection to box <127.0.0.1> broke. 2006-11-02
11:06:28 [5576] [9] DEBUG: send_msg: sending msg to box: <127.0.0.1> 2006-11-02
11:06:28 [5576] [9] ERROR: Error writing 16 octets to fd 23: 2006-11-02
11:06:28 [5576] [9] ERROR: System error 104: Connection reset by peer 2006-11-02
11:06:28 [5576] [9] ERROR: Couldn't write Msg to box <127.0.0.1>,
disconnecting 2006-11-02
11:06:28 [5576] [9] DEBUG: Thread 9 (gw/bb_boxc.c:boxc_sender) terminates. 2006-11-02
11:06:28 [5576] [8] ERROR: Error writing 16 octets to fd 23: 2006-11-02
11:06:28 [5576] [8] ERROR: System error 104: Connection reset by peer 2006-11-02
11:06:28 [5576] [8] DEBUG: Thread 8 (gw/bb_boxc.c:function) terminates. ---------------------------------------------------------------
X --------------------------------------------------------------------- The config file is the smskannel.conf. The
details are repeated here for convenience. group = core admin-port = 13000 smsbox-port = 13001 admin-password = bar box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" group = smsc smsc = fake smsc-id = FAKE port = 10000 connect-allow-ip = 127.0.0.1 group = smsbox bearerbox-host = 127.0.0.1 sendsms-port = 13013 global-sender = 13013 group = sendsms-user username = tester password = foobar group = sms-service keyword = nop text = "You asked nothing and I did
it!" group = sms-service keyword = default text = "No service specified" --------------------------------------------------------------------------------------------------
X
--------------------------------------------------------------------------------------------- Also, during the build of kannel gateway,
the configure log shows that configure:5912: gcc -o conftest.exe -g
-O2 conftest.c -lsocket -lm >&5 /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld:
cannot find -lsocket collect2: ld returned 1 exit status configure:5918: $? = 1 ……. ……. configure:5944: result: no Similarly for –lnsl, -lresolv and
-lbind What library is required to resolve this
issue during configuring? Im wondering if this related to the
problem at hand. --------------------------------------------------------------------------------------------------
X
--------------------------------------------------------------------------------------------- Has anyone encountered and resolved this problem ? Thanks, Ashwin |
- RE: SMSBox is killed after 5 minutes of inactivity Ashwin Urs
