kannel does not find a route to send the message to . You need at least one modem definition. Uncomment the group modems and adjust according to your modem
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 Mon, Jan 11, 2010 at 11:23 AM, karanveer singh <karan.korn...@gmail.com> wrote: > Hey, I'm trying to use Kannel as an SMS gateway. I've been trying to > configure Kannel for a while and finaly got bearbox and smsbox > connected. > The following is my kannel.conf file : > > # Default kannel configuration file > #core group 'mandatory' > include = "/usr/share/doc/kannel/examples/modems.conf" > > group = core > admin-port = 13011 > admin-password = soundgarden > status-password = soundgarden > admin-deny-ip = "*.*.*.*" > admin-allow-ip = "127.0.0.1" > #For SMS gateway > smsbox-port = 13012 > #wapbox-port = 13002 > box-deny-ip = "*.*.*.*" > box-allow-ip = "127.0.0.1" > wdp-interface-name = "*" > log-file = "/var/log/kannel/bearerbox.log" > log-level = 1 > #Access log > #access-log = "/var/log/kannel/access.log" > > group = smsc > smsc = at > modemtype = auto > device = /dev/ttyUSB0 > my-number = "9956306699" > #speed = 460800 > #pin = 1234 > #sim-buffering = true > log-level = 0 > > group = sms-service > keyword = nop > text = "You asked nothing and I did it!" > > # MODEM DEFINITIONS > #group = modems > #id = nokia > #name = "Nokia N95" > #detect-string = "Nokia" > #init-string = "ATZ" > #init-string = "AT Q0 V1 E1 S0=0 &C1 &D2 +FCLASS=0" > #message-storage = "EM" > > group = smsbox > bearerbox-host = 127.0.0.1 > #we use sendsms-port for sending sms (http) > sendsms-port = 13023 > global-sender = 13013 > log-file = /var/log/kannel/smsbox.log > log-level = 0 > > group = sendsms-user > username = kannel > password = hard2guess > > > > now when I type > sudo bearerbox -v 1 /etc/kannel/kannel.conf > > I get : > > 2010-01-11 21:49:19 [7566] [0] INFO: Debug_lvl = 1, log_file = <none>, > log_lvl = 0 > 2010-01-11 21:49:19 [7566] [0] WARNING: DLR: using default 'internal' > for storage type. > 2010-01-11 21:49:19 [7566] [0] INFO: DLR using storage type: internal > 2010-01-11 21:49:19 [7566] [0] INFO: Added logfile > `/var/log/kannel/bearerbox.log' with level `1'. > 2010-01-11 21:49:19 [7566] [0] INFO: HTTP: Opening server at port 13011. > 2010-01-11 21:49:19 [7566] [0] INFO: BOXC: 'smsbox-max-pending' not > set, using default (100). > 2010-01-11 21:49:19 [7566] [0] INFO: Set SMS resend frequency to 60 seconds. > 2010-01-11 21:49:19 [7566] [0] INFO: SMS resend retry set to unlimited. > 2010-01-11 21:49:19 [7566] [0] INFO: DLR rerouting for smsc id > <(null)> disabled. > 2010-01-11 21:49:19 [7566] [0] INFO: AT2[/dev/ttyUSB0]: configuration > doesn't show modemtype. will autodetect > 2010-01-11 21:49:19 [7566] [6] INFO: AT2[/dev/ttyUSB0]: opening device > 2010-01-11 21:49:19 [7566] [0] INFO: Adding interface * > 2010-01-11 21:49:19 [7566] [0] ERROR: Missing wapbox-port variable, > cannot start WAP > 2010-01-11 21:49:19 [7566] [0] INFO: ---------------------------------------- > 2010-01-11 21:49:19 [7566] [0] INFO: Kannel bearerbox II version 1.4.3 > starting > 2010-01-11 21:49:19 [7566] [0] INFO: MAIN: Start-up done, entering mainloop > 2010-01-11 21:49:20 [7566] [6] INFO: AT2[/dev/ttyUSB0]: speed set to 115200 > > and on typing sudo smsbox -v 1 /etc/kannel/kannel.conf > in another terminal window i get : > > 2010-01-11 21:49:29 [7895] [0] INFO: Debug_lvl = 1, log_file = <none>, > log_lvl = 0 > 2010-01-11 21:49:29 [7895] [0] INFO: Starting to log to file > /var/log/kannel/smsbox.log level 0 > 2010-01-11 21:49:29 [7895] [0] INFO: Added logfile > `/var/log/kannel/smsbox.log' with level `0'. > 2010-01-11 21:49:29 [7895] [0] INFO: Service global sender set as '13013' > 2010-01-11 21:49:29 [7895] [0] INFO: HTTP: Opening server at port 13023. > 2010-01-11 21:49:29 [7895] [0] INFO: Set up send sms service at port 13023 > 2010-01-11 21:49:29 [7895] [0] INFO: Connected to bearerbox at > 127.0.0.1 port 13012. > > > However, now when i type : > http://127.0.0.1:13023/cgi-bin/sendsms?username=kannel&password=hard2guess&to=9889925103&text=This+msg+is+sent+from+saga%27s+computer+with+kannel+please+reply+back+if+u+received+it > > in the browser window, it shows the following message : > > 3: Queued for later delivery > > Any ideas? What could be causing the problem? > >