On Wed, 2002-05-01 at 17:07, Alex Judd wrote:
> Interesting problem using latest cvs (with CMTI patch) is that 
> occassionally the wait_for_connections process fails and takes the smsbox 
> with it.
> 
> Looks like the process fails to read from the serial port (either due to 
> the phone or some other random process on my machine) and this takes the 
> smsbox down (which I don't think it should do). Anyone fixed this?
> 

If bearerbox goes down, wapbox and smsbox goes too.

If bearerbox cannot reach a smsc, it goes down too, UNLESS:

set "retry = true" on at2 smsc group (and I'd advise you to use it in 
every smsc group) to force kannel to reopen at2 connection.

If you want to "ping" the modem and keep the connection alive, 
set "keepalive = 60" (seconds) too and if you have motorola manual
(or try yourself and tell us if it works), set 
keepalive-cmd = "AT+CBC;+CSQ"
on modems.conf, near your groups=modems, id=motorola (uhm, I don't see
any motorola, which at group are you using)

keepalive in smsc group tells for how many seconds will kannel send 
the keepalive-cmd, and that keepalive command tells:

+CBC: 1,100
+CSQ: 15,0

1=on power (0 for batery, I think)
100 = batery level

15 = signal level (see 3gpp 27005 or 27007)
0 is signal quality, but I haven't yet seen anything else than 0




> Alex
> 
> 2002-05-01 09:53:05 [5] DEBUG: AT2[Motorola1]: <-- OK
> 2002-05-01 13:50:17 [4] ERROR: wait_for_connections failed
> 2002-05-01 13:50:17 [5] ERROR: AT2[Motorola1]: error on select
> 2002-05-01 13:50:17 [5] ERROR: System error 13: Permission denied
> 2002-05-01 13:50:17 [4] ERROR: System error 13: Permission denied
> 2002-05-01 13:50:17 [5] WARNING: gwthread_sleep: error in poll
> ...
> 2002-05-01 13:50:18 [5] WARNING: gwthread_sleep: error in poll
> 2002-05-01 13:50:18 [5] WARNING: System error 13: Permission denied
> 2002-05-01 13:50:18 [5] ERROR: AT2[Motorola1]: error on select
> 2002-05-01 13:50:18 [5] ERROR: System error 13: Permission denied
> 2002-05-01 13:50:22 [0] ERROR: Error reading from fd 18:
> 2002-05-01 13:50:22 [0] ERROR: System error 104: Connection reset by peer
> 2002-05-01 13:50:22 [0] ERROR: Error reading from fd 18:
> 2002-05-01 13:50:22 [0] ERROR: System error 104: Connection reset by peer
> 2002-05-01 13:50:22 [0] INFO: Error reading from bearerbox, disconnecting
> 2002-05-01 13:50:22 [0] INFO: Received (and handled?) 2 requests in 72512 seconds 
>(0.00 per second)
> 2002-05-01 13:50:22 [0] INFO: Kannel smsbox terminating.
> 2002-05-01 13:50:22 [6] DEBUG: Thread 6 (gw/heartbeat.c:heartbeat_thread) terminates.
> 2002-05-01 13:50:23 [0] DEBUG: Waiting for 2 (gwlib/http.c:server_thread) to 
>terminate
> 2002-05-01 13:50:23 [2] WARNING: gwthread_sleep: error in poll
> 2002-05-01 13:50:23 [2] WARNING: System error 13: Permission denied
> -- 
> Alex Judd
> http://www.skywire.co.uk
> 
> 



Reply via email to