Thanks Joseph. I am forwarding the incoming messages to a database using the php script.
I am already running the logs at level 0, but I can't see the messages On Thu, Jan 13, 2011 at 4:54 PM, Joseph Koech <[email protected]>wrote: > Mutuku, > Your configuration looks ok. May I know where you are trying to > forward the incoming messages? I see you have included a get-url > parameter that should submit the incoming smses to a certain > application. You can trying running the logs at level 0 and see what > happens when an incoming message is received. > > On Thu, Jan 13, 2011 at 12:55 AM, Mutuku Ndeti <[email protected]> wrote: > > Thanks Alvaro, > > > > I have changed my conf file to the one below but no change. I am still > not > > receiving sms > > > > group = core > > admin-port = 13000 > > admin-password = foo > > status-password = foo_status > > smsbox-port = 13001 > > log-file = "/var/log/kannel/kannel.log" > > log-level = 0 > > access-log = "/var/log/kannel/kannel.access" > > > > group = smsc > > smsc = at > > modemtype = huawei > > device=/dev/ttyUSB1 > > log-file = "/var/log/kannel/modems.log" > > log-level = 0 > > > > group = modems > > id = huawei > > name = huawei > > detect-string = "huawei" > > init-string = "ATZ" > > init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0" > > init-string = "AT+CNMI= 2,0,0,2,0;+CMEE=1" > > > > > > group = smsbox > > bearerbox-host = localhost > > sendsms-port = 13013 > > sendsms-chars = "0123456789" > > global-sender = 123456 > > access-log = "/var/log/kannel/kannel.access" > > log-file = "/var/log/kannel/smsbox.log" > > log-level = 0 > > > > group = sendsms-user > > username="agile" > > password="agile" > > max-messages = 10 > > concatenation = true > > > > #default service > > group = sms-service > > keyword = default > > text = "test response" > > > > group = sms-service > > keyword =.* > > get-url = "http://192.168.1.1/smsscript.php?phone=%p&text=%a" > > > > my modems log > > > > 2011-01-13 10:13:11 [18262] [6] INFO: AT2[/dev/ttyUSB1]: trying to use > speed > > <9600> from modem definition > > 2011-01-13 10:13:11 [18262] [6] INFO: AT2[/dev/ttyUSB1]: opening device > > 2011-01-13 10:13:11 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: device opened. > > Telnet mode = 0 > > 2011-01-13 10:13:11 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: device opened > > 2011-01-13 10:13:11 [18262] [6] INFO: AT2[/dev/ttyUSB1]: speed set to > 9600 > > 2011-01-13 10:13:11 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: --> ^M > > 2011-01-13 10:13:13 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: --> AT^M > > 2011-01-13 10:13:14 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: <-- OK > > 2011-01-13 10:13:14 [18262] [6] INFO: AT2[/dev/ttyUSB1]: Closing device > > 2011-01-13 10:13:14 [18262] [6] INFO: AT2[/dev/ttyUSB1]: speed is 9600 > > 2011-01-13 10:13:14 [18262] [6] INFO: AT2[/dev/ttyUSB1]: opening device > > 2011-01-13 10:13:14 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: device opened. > > Telnet mode = 0 > > 2011-01-13 10:13:14 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: device opened > > 2011-01-13 10:13:14 [18262] [6] INFO: AT2[/dev/ttyUSB1]: Logging in > > 2011-01-13 10:13:14 [18262] [6] INFO: AT2[/dev/ttyUSB1]: init device > > 2011-01-13 10:13:14 [18262] [6] INFO: AT2[/dev/ttyUSB1]: speed set to > 9600 > > 2011-01-13 10:13:14 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: --> ATZ^M > > 2011-01-13 10:13:14 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: <-- OK > > 2011-01-13 10:13:14 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: --> AT^M > > 2011-01-13 10:13:14 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: <-- AT > > 2011-01-13 10:13:14 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: <-- OK > > 2011-01-13 10:13:14 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: --> AT&F^M > > 2011-01-13 10:13:14 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: <-- AT&F > > 2011-01-13 10:13:14 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: <-- OK > > 2011-01-13 10:13:14 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: --> ATE0^M > > 2011-01-13 10:13:15 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: <-- ATE0 > > 2011-01-13 10:13:15 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: <-- OK > > 2011-01-13 10:13:15 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: --> > AT+IFC=2,2^M > > 2011-01-13 10:13:15 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: <-- OK > > 2011-01-13 10:13:15 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: --> AT+CPIN?^M > > 2011-01-13 10:13:15 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: <-- +CPIN: > READY > > 2011-01-13 10:13:15 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: --> AT+CMGF=0^M > > 2011-01-13 10:13:15 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: <-- OK > > 2011-01-13 10:13:15 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: --> AT+CSMS=?^M > > 2011-01-13 10:13:15 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: <-- OK > > 2011-01-13 10:13:15 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: --> AT+CNMI= > > 2,0,0,2,0;+CMEE=1^M > > 2011-01-13 10:13:15 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: <-- +CSMS: > (0-1) > > 2011-01-13 10:13:15 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: <-- OK > > 2011-01-13 10:13:15 [18262] [6] INFO: AT2[/dev/ttyUSB1]: AT SMSC > > successfully opened. > > 2011-01-13 10:13:15 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: <-- OK > > 2011-01-13 10:13:15 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: <-- > > ^BOOT:33948656,0,0,0,75 > > 2011-01-13 10:13:45 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: <-- > > ^BOOT:33948656,0,0,0,75 > > 2011-01-13 10:14:15 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: <-- > > ^BOOT:33948656,0,0,0,75 > > 2011-01-13 10:14:45 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: <-- > > ^BOOT:33948656,0,0,0,75 > > 2011-01-13 10:15:15 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: <-- > > ^BOOT:33948656,0,0,0,75 > > 2011-01-13 10:15:45 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: <-- > > ^BOOT:33948656,0,0,0,75 > > 2011-01-13 10:16:15 [18262] [6] DEBUG: AT2[/dev/ttyUSB1]: <-- > > ^BOOT:33948656,0,0,0,75 > > >
