Hi Add log-file=.... and log-level=0 to your smsc=at group and post logs.
Might me you have either 2 kannel session running or the user that runs the init script does not have enough privileges to write to the ttyS0 device. Regards Alvaro |-----------------------------------------------------------------------------------------------------------------| Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online Visitenos en www.perusms.NET www.smsglobal.com.mx y www.pravcom.com On Wed, Sep 22, 2010 at 12:08 PM, Jorge Asch <jorge.a...@gmail.com> wrote: > I set-up and configured Kannel using a Wavecom serial modem. Installed on > Ubuntu using apt-get. But I have this problem: > If I run Kannel from the command line: > /usr/sbin/bearerbox -v 1 /etc/kannel/kannel.conf > /usr/sbin/smsbox -v 1 /etc/kannel/kannel.conf > Everything works great. I am able to send messages and I get this: > 0: Accepted for Delivery > But if I start Kannel using the startup script (/etc/init.d/kannel start), I > get this when sending messages: > 3: Queued for later delivery > The differences is that when starting up from the command line, I get this: > SMSC connections: > unknown AT2[/dev/ttyS0] (online 30s, rcvd 0, sent 0, failed 0, queued > 0 msgs) > And when starting up using the /etc/init.d script, I get this: > SMSC connections: > unknown AT2[/dev/ttyS0] (connecting, rcvd 0, sent 0, failed 0, queued > 0 msgs) > (it stays on "connecting" and does nothing else). > What could be the problem? > Thanks in advance. > > > This is my config file: > # > # Sample configuration file for Kannel bearerbox on Debian. > # See the documentation for explanations of fields. > # > # HTTP administration is disabled by default. Make sure you set the > # password if you enable it. > group = core > admin-port = 13000 # the port number to access kannel’s admin web view > admin-password = bar > smsbox-port = 13001 #the port number used by the smsbox to connect to the > bearerbox > log-file = "/var/log/kannel/kannel.log" # the bearerbox log file > log-level = 0 > access-log = "/var/log/kannel/kannel.access" > box-deny-ip = "*.*.*.*" > box-allow-ip = "192.168.0.*" > group = smsc > smsc = at > modemtype = wavecom > device = /dev/ttyS0 > speed = 115200 > my-number = 87019979 > connect-allow-ip = 127.0.0.1 > log-level = 0 > group = modems > id = wavecom > name = wavecom > detect-string = "WAVECOM" > group = smsbox > bearerbox-host = 127.0.0.1 > sendsms-port = 13013 > global-sender = 88164300 > log-level = 0 > group = sendsms-user > username="foo" > password="bar" > concatenation = true > max-messages = 10 > group = sms-service > keyword-regex = .* > catch-all = yes > max-messages = 0 > get-url = "http://localhost/sms?phone=%p&text=%a" >