Set the log-level to zero. On Wed, Aug 11, 2010 at 9:08 AM, mwamba <[email protected]> wrote:
> > Thanks Alvaro for your feedback. Am new to kannel. How do I get the get the > logs at debug level since the only kannel logs that i have are similar to > the ones of the bearerbox and smsbox that i have provided here in the > forum > already. Are there other logs? > > Kind regards, > > Duncan > > Alvaro Cornejo wrote: > > > > Please post logs at debug level > > > > > |-----------------------------------------------------------------------------------------------------------------| > > 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 Tue, Aug 10, 2010 at 3:38 AM, mwamba <[email protected]> wrote: > >> > >> Hi Experts, > >> > >> I am having issue with the HTTP interfaces for admin and send sms for > >> kannel > >> when i restart Fedora. > >> The gateway can send and receive sms so well (sending sms and admin > >> function) after installing kannel, but when i restart Fedora server, the > >> http interfaces cannot be used. > >> > >> The gateway is running on Fedora 10. I am using Sony Ericsson C702 as > the > >> Modem > >> > >> ##########Below it the /etc/kannel.conf file######################## > >> > >> #CORE > >> > >> group = core > >> admin-port = 13000 > >> smsbox-port = 13001 > >> admin-password = bar > >> #status-password = foo > >> admin-deny-ip = "*.*.*.*" > >> admin-allow-ip = "127.0.0.1" > >> log-file = "/var/log/kannel/bearerbox.log" > >> log-level = 1 > >> box-deny-ip = "*.*.*.*" > >> box-allow-ip = "127.0.0.1" > >> #unified-prefix = "+358,00358,0;+,00" > >> #access-log = "/tmp/access.log" > >> #store-file = "kannel.store" > >> #ssl-server-cert-file = "cert.pem" > >> #ssl-server-key-file = "key.pem" > >> #ssl-certkey-file = "mycertandprivkeyfile.pem" > >> > >> #--------------------------------------------- > >> # SMSC CONNECTIONS > >> > >> #Duncan 's smsc configs of the sony ericsson c702 as the modem > >> group = smsc > >> smsc = at > >> modemtype = auto > >> device = /dev/ttyACM0 > >> my-number = 3543870236903270 > >> log-level = 1 > >> > >> #Duncan's modems groups configs as per /etc/wvdialconf file > >> > >> group = modems > >> id = Sony Ericsson > >> name = "Sony Ericsson C702" > >> detect-string = "Sony" > >> init-string="ATZ" > >> init-string="ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0" > >> > >> #--------------------------------------------- > >> # SMSBOX SETUP > >> # > >> # Smsbox(es) do higher-level SMS handling after they have been received > >> from > >> # SMS centers by bearerbox, or before they are given to bearerbox for > >> delivery > >> > >> group = smsbox > >> bearerbox-host = 127.0.0.1 > >> sendsms-port = 13013 > >> #duncan -- the sender number to be used in text messages > >> global-sender = "+254738967285" > >> #sendsms-chars = "0123456789 +-" > >> log-file = "/var/log/kannel/smsbox.log" > >> log-level = 1 > >> #access-log = "/tmp/access.log" > >> > >> #--------------------------------------------- > >> # SEND-SMS USERS > >> # > >> # These users are used when Kannel smsbox sendsms interface is used to > >> # send PUSH sms messages, i.e. calling URL like > >> # > >> > http://kannel.machine:13013/cgi-bin/sendsms?username=tester&password=foobar. > .. > >> > >> group = sendsms-user > >> username = tester > >> password = foobar > >> concatenation = true > >> max-messages = 3 > >> #user-deny-ip = "" > >> #user-allow-ip = "" > >> > >> #--------------------------------------------- > >> # SERVICES > >> # > >> # These are 'responses' to sms PULL messages, i.e. messages arriving > from > >> # handsets. The response is based on message content. Only one > >> sms-service > >> is > >> # applied, using the first one to match. > >> > >> group = sms-service > >> keyword = nop > >> text = "You asked nothing and I did it!" > >> > >> # There should be always a 'default' service. This service is used when > >> no > >> # other 'sms-service' is applied. > >> > >> group = sms-service > >> keyword = default > >> text = "No service specified" > >> > >> #################################################### > >> > >> The bearerbox and smsbox start well. see below logs: > >> > >> ####BEARER BOX STARTS UP SUCESSFULLY########################## > >> > >> [r...@fedora10 owino]# bearerbox -v 1 /etc/kannel.conf & > >> [1] 3287 > >> [r...@fedora10 owino]# 2010-08-10 03:45:53 [3287] [0] INFO: Debug_lvl = > >> 1, > >> log_file = <none>, log_lvl = 0 > >> > >> 2010-08-10 03:45:53 [3287] [0] WARNING: DLR: using default 'internal' > for > >> storage type. > >> 2010-08-10 03:45:53 [3287] [0] INFO: DLR using storage type: internal > >> 2010-08-10 03:45:53 [3287] [0] INFO: Added logfile > >> `/var/log/kannel/bearerbox.log' with level `1'. > >> 2010-08-10 03:45:53 [3287] [0] INFO: HTTP: Opening server at port 13000. > >> 2010-08-10 03:45:53 [3287] [0] INFO: BOXC: 'smsbox-Tmax-pending' not > set, > >> using default (100). > >> 2010-08-10 03:45:53 [3287] [0] INFO: Set SMS resend frequency to 60 > >> seconds. > >> 2010-08-10 03:45:53 [3287] [0] INFO: SMS resend retry set to unlimited. > >> 2010-08-10 03:45:53 [3287] [0] INFO: DLR rerouting for smsc id <(null)> > >> disabled. > >> 2010-08-10 03:45:53 [3287] [0] INFO: AT2[/dev/ttyACM0]: configuration > >> doesn't show modemtype. will autodetect > >> 2010-08-10 03:45:53 [3287] [6] INFO: AT2[/dev/ttyACM0]: opening device > >> 2010-08-10 03:45:53 [3287] [0] INFO: > >> ---------------------------------------- > >> 2010-08-10 03:45:53 [3287] [0] INFO: Kannel bearerbox II version 1.4.3 > >> starting > >> 2010-08-10 03:45:53 [3287] [0] INFO: MAIN: Start-up done, entering > >> mainloop > >> 2010-08-10 03:45:54 [3287] [6] INFO: AT2[/dev/ttyACM0]: speed set to > >> 115200 > >> 2010-08-10 03:45:56 [3287] [6] INFO: AT2[/dev/ttyACM0]: Closing device > >> 2010-08-10 03:45:56 [3287] [6] INFO: AT2[/dev/ttyACM0]: detect speed is > >> 115200 > >> 2010-08-10 03:45:56 [3287] [6] INFO: AT2[/dev/ttyACM0]: opening device > >> 2010-08-10 03:45:57 [3287] [6] INFO: AT2[/dev/ttyACM0]: speed set to > >> 115200 > >> 2010-08-10 03:45:59 [3287] [6] INFO: AT2[/dev/ttyACM0]: Closing device > >> 2010-08-10 03:45:59 [3287] [6] INFO: AT2[/dev/ttyACM0]: opening device > >> 2010-08-10 03:45:59 [3287] [6] INFO: AT2[/dev/ttyACM0]: Logging in > >> 2010-08-10 03:46:00 [3287] [6] INFO: AT2[/dev/ttyACM0]: init device > >> 2010-08-10 03:46:00 [3287] [6] INFO: AT2[/dev/ttyACM0]: speed set to > >> 115200 > >> 2010-08-10 03:46:01 [3287] [6] INFO: AT2[/dev/ttyACM0]: AT SMSC > >> successfully > >> opened. > >> > >> ###### SMSBOX STARTS UP SUCESSFULLY ########################### > >> > >> [r...@fedora10 owino]# smsbox -v 1 /etc/kannel.conf & > >> [2] 3297 > >> [r...@fedora10 owino]# 2010-08-10 03:47:24 [3297] [0] INFO: Debug_lvl = > >> 1, > >> log_file = <none>, log_lvl = 0 > >> 2010-08-10 03:47:24 [3297] [0] INFO: Starting to log to file > >> /var/log/kannel/smsbox.log level 1 > >> 2010-08-10 03:47:24 [3297] [0] INFO: Added logfile > >> `/var/log/kannel/smsbox.log' with level `1'. > >> 2010-08-10 03:47:24 [3297] [0] INFO: Service global sender set as > >> '+254738967285' > >> 2010-08-10 03:47:24 [3297] [0] INFO: HTTP: Opening server at port 13013. > >> 2010-08-10 03:47:24 [3297] [0] INFO: Set up send sms service at port > >> 13013 > >> 2010-08-10 03:47:24 [3287] [5] INFO: Client connected from <127.0.0.1> > >> 2010-08-10 03:47:24 [3297] [0] INFO: Connected to bearerbox at 127.0.0.1 > >> port 13001. > >> > >> ##############PROBLEM HTTP SEND SMS AND ADMIN INTERFACE NOT ACCESSIBLE > >> after > >> rebooting the fedora 10 server ############### > >> > >> 1.SMS sending was possible via http interfce (before rebooting). After > >> rebooting the http interface is not accessible > >> ( > http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar&text=Tumbo+bila+kitovu+he+he+he&to=0710820154&from=0738967285 > ) > >> NOT POSSIBLE > >> > >> 2.access to the admin http interface was possible (before rebooting). > >> After > >> rebooting the http admin interface (http://localhost:13000/) is not > >> accessible. > >> > >> after rebooting none of the above (1 and 2 ) are possible > >> > >> note: bearebox and smsbox still starts well but the issue to is access > >> http > >> admin interface and to send sms via http > >> > >> The admin HTTP interface on port 13000 was accessible before rebooting > >> the > >> server > >> > >> Note: > >> > >> SELINUX=disabled (in /etc/selinux/config file) > >> > >> Kindly help out. > >> > >> Duncan > >> -- > >> View this message in context: > >> > http://old.nabble.com/ADMIN-HTTP-AND-SEND-SMS-HTTP-INTERFACES-FAIL-AFTER-REBOOTING-FEDORA-10-KANNEL-SMS-GATEWAY-SERVER-tp29392738p29392738.html > >> Sent from the Kannel - User mailing list archive at Nabble.com. > >> > >> > >> > > > > > > > > -- > View this message in context: > http://old.nabble.com/ADMIN-HTTP-AND-SEND-SMS-HTTP-INTERFACES-FAIL-AFTER-REBOOTING-FEDORA-10-KANNEL-SMS-GATEWAY-SERVER-tp29392738p29405224.html > Sent from the Kannel - User mailing list archive at Nabble.com. > > >
