I'm building a http (get) to kannel to modem... I do get this log when connecting to the modem... Till i stop kannel
2008-08-13 02:49:53 [873] [7] DEBUG: AT2[modem]: detecting modem type 2008-08-13 02:49:53 [873] [7] INFO: AT2[modem]: opening device 2008-08-13 02:49:53 [873] [7] DEBUG: AT2[modem]: device opened 2008-08-13 02:49:54 [873] [7] DEBUG: AT2[modem]: device opened 2008-08-13 02:49:54 [873] [7] INFO: AT2[modem]: speed set to 115200 2008-08-13 02:49:54 [873] [7] DEBUG: AT2[modem]: --> ^M 2008-08-13 02:49:54 [873] [7] DEBUG: AT2[modem]: <-- OK 2008-08-13 02:49:54 [873] [7] DEBUG: AT2[modem]: --> AT^M 2008-08-13 02:49:54 [873] [7] DEBUG: AT2[modem]: <-- OK 2008-08-13 02:49:54 [873] [7] DEBUG: AT2[modem]: --> AT&F^M 2008-08-13 02:49:54 [873] [7] DEBUG: AT2[modem]: <-- OK 2008-08-13 02:49:54 [873] [7] DEBUG: AT2[modem]: --> ATE0^M 2008-08-13 02:49:58 [873] [7] DEBUG: AT2[modem]: detecting modem type 2008-08-13 02:49:58 [873] [7] INFO: AT2[modem]: opening device 2008-08-13 02:49:58 [873] [7] WARNING: AT2[modem]: trying to open device with not closed device!!! Please report!!! 2008-08-13 02:49:58 [873] [7] INFO: AT2[modem]: closing device 2008-08-13 02:49:58 [873] [7] DEBUG: AT2[modem]: device opened 2008-08-13 02:49:59 [873] [7] DEBUG: AT2[modem]: device opened 2008-08-13 02:49:59 [873] [7] INFO: AT2[modem]: speed set to 115200 2008-08-13 02:49:59 [873] [7] DEBUG: AT2[modem]: --> ^M 2008-08-13 02:49:59 [873] [7] DEBUG: AT2[modem]: <-- OK 2008-08-13 02:49:59 [873] [7] DEBUG: AT2[modem]: --> AT^M 2008-08-13 02:49:59 [873] [7] DEBUG: AT2[modem]: <-- OK 2008-08-13 02:49:59 [873] [7] DEBUG: AT2[modem]: --> AT&F^M 2008-08-13 02:49:59 [873] [7] DEBUG: AT2[modem]: <-- OK 2008-08-13 02:49:59 [873] [7] DEBUG: AT2[modem]: --> ATE0^M 2008-08-13 02:50:03 [873] [7] DEBUG: AT2[modem]: detecting modem type 2008-08-13 02:50:03 [873] [7] INFO: AT2[modem]: opening device 2008-08-13 02:50:03 [873] [7] WARNING: AT2[modem]: trying to open device with not closed device!!! Please report!!! 2008-08-13 02:50:03 [873] [7] INFO: AT2[modem]: closing device 2008-08-13 02:50:03 [873] [7] DEBUG: AT2[modem]: device opened 2008-08-13 02:50:04 [873] [7] DEBUG: AT2[modem]: device opened 2008-08-13 02:50:04 [873] [7] INFO: AT2[modem]: speed set to 115200 2008-08-13 02:50:04 [873] [7] DEBUG: AT2[modem]: --> ^M 2008-08-13 02:50:04 [873] [7] DEBUG: AT2[modem]: <-- OK 2008-08-13 02:50:04 [873] [7] DEBUG: AT2[modem]: --> AT^M 2008-08-13 02:50:04 [873] [7] DEBUG: AT2[modem]: <-- OK 2008-08-13 02:50:04 [873] [7] DEBUG: AT2[modem]: --> AT&F^M 2008-08-13 02:50:04 [873] [7] DEBUG: AT2[modem]: <-- OK 2008-08-13 02:50:04 [873] [7] DEBUG: AT2[modem]: --> ATE0^M 2008-08-13 02:50:08 [873] [7] DEBUG: AT2[modem]: detecting modem type 2008-08-13 02:50:08 [873] [7] INFO: AT2[modem]: opening device 2008-08-13 02:50:08 [873] [7] WARNING: AT2[modem]: trying to open device with not closed device!!! Please report!!! . . . 2008-08-13 02:54:23 [873] [7] INFO: AT2[modem]: closing device 2008-08-13 02:54:23 [873] [7] DEBUG: AT2[modem]: device opened 2008-08-13 02:54:24 [873] [7] DEBUG: AT2[modem]: device opened 2008-08-13 02:54:24 [873] [7] INFO: AT2[modem]: speed set to 115200 2008-08-13 02:54:24 [873] [7] DEBUG: AT2[modem]: --> ^M 2008-08-13 02:54:26 [873] [7] DEBUG: AT2[modem]: --> AT^M 2008-08-13 02:54:26 [873] [7] DEBUG: AT2[modem]: <-- OK 2008-08-13 02:54:26 [873] [7] DEBUG: AT2[modem]: --> AT&F^M 2008-08-13 02:54:26 [873] [7] DEBUG: AT2[modem]: <-- OK 2008-08-13 02:54:26 [873] [7] DEBUG: AT2[modem]: --> ATE0^M 2008-08-13 02:54:30 [873] [7] DEBUG: AT2[modem]: detecting modem type 2008-08-13 02:54:30 [873] [7] INFO: AT2[modem]: opening device 2008-08-13 02:54:30 [873] [7] WARNING: AT2[modem]: trying to open device with not closed device!!! Please report!!! 2008-08-13 02:54:30 [873] [7] INFO: AT2[modem]: closing device 2008-08-13 02:54:30 [873] [7] DEBUG: AT2[modem]: device opened 2008-08-13 02:54:31 [873] [7] DEBUG: AT2[modem]: device opened 2008-08-13 02:54:31 [873] [7] INFO: AT2[modem]: speed set to 115200 2008-08-13 02:54:31 [873] [7] DEBUG: AT2[modem]: --> ^M 2008-08-13 02:54:31 [873] [7] DEBUG: AT2[modem]: <-- OK 2008-08-13 02:54:31 [873] [7] DEBUG: AT2[modem]: --> AT^M 2008-08-13 02:54:31 [873] [7] DEBUG: AT2[modem]: <-- OK 2008-08-13 02:54:31 [873] [7] DEBUG: AT2[modem]: --> AT&F^M 2008-08-13 02:54:31 [873] [7] DEBUG: AT2[modem]: <-- OK 2008-08-13 02:54:31 [873] [7] DEBUG: AT2[modem]: --> ATE0^M 2008-08-13 02:54:35 [873] [7] INFO: AT2[modem]: closing device 2008-08-13 02:54:35 [873] [7] DEBUG: Thread 7 (gw/smsc/smsc_at.c:at2_device_thread) terminates. My config is this... I'm quite sure about my modem configuration... checking both dmesg and properties of the modem My concern is why is there a loop in connecting the modem... I'm just a newbie in creating a config... Please check if i'm wrong on the other parts cause in sending http get i used a normal html (see below)... but i dont see anything that i receive it on logs (smsbox.log and kannel.log) i'm totally confused on reading the user manual... hehehe... I'm not so good in english but i'm about 70% sure on my config based on manual.... Please please help me #--------------------------------------------- # CORE # # There is only one core group and it sets all basic settings # of the bearerbox (and system). You should take extra notes on # configuration variables like 'store-file' (or 'store-dir'), # 'admin-allow-ip' and 'access.log' group = core admin-port = 13000 smsbox-port = 13001 admin-password = bar #status-password = foo #admin-deny-ip = "" #admin-allow-ip = "" log-file = "/opt/julius/sms/gateway-1.4.1/gw/logs/kannel.log" log-level = 0 box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1;172.20.501.17" unified-prefix = "+358,00358,0;+,00" access-log = "/opt/julius/sms/gateway-1.4.1/gw/logs/access.log" store-file = "/opt/julius/sms/gateway-1.4.1/gw/logs/kannel.store" #ssl-server-cert-file = "cert.pem" #ssl-server-key-file = "key.pem" #ssl-certkey-file = "mycertandprivkeyfile.pem" #--------------------------------------------- # SMSC CONNECTIONS # # SMSC connections are created in bearerbox and they handle SMSC specific # protocol and message relying. You need these to actually receive and send # messages to handset, but can use GSM modems as virtual SMSCs # This is a fake smsc connection, _only_ used to test the system and services. # It really cannot relay messages to actual handsets! group = smsc smsc = fake smsc-id = FAKE port = 10000 connect-allow-ip = 172.20.50.17 # SMSC HTTP # This special "SMSC" is used for HTTP based connections with other gateways and various other relay # services, when direct SMSC is not available. #group = smsc #smsc = http #smsc-id = http #host = localhost #port = 14000 #system-type = kannel #smsc-username = tester #smsc-password = foobar #send-url = "http://localhost:13013/" #connect-allow-ip = "127.0.0.1" #log-file = "/opt/julius/sms/gateway-1.4.1/gw/logs/http.log" #denied-smsc-id id-list = http;modem # GSM modem # This driver allows a GSM Modem or Phone to be connected to Kannel and work as a virtual SMSC group = smsc smsc = at host = 172.20.50.17 port = 13013 smsc-id = modem modemtype = auto device = /dev/ttyUSB0 speed = 115200 #pin = 1234 smsc-username = tester smsc-password = foobar log-file = "/opt/julius/sms/gateway-1.4.1/gw/logs/modem.log" #--------------------------------------------- # Modem configuration group = modems id = itegno3800 name = "iTEGNO 3800" detect-string = "ITEGNO" detect-string2 = "3800" init-string = "AT+CNMI=2,2,0,0,0" speed = 115200 no-pin = true #pin = 1234 #--------------------------------------------- # 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 = 172.20.50.17 sendsms-port = 13013 #global-sender = 13013 sendsms-chars = "0123456789 +-" log-file = "/opt/julius/sms/gateway-1.4.1/gw/logs/smsbox.log" log-level = 0 access-log = "/opt/julius/sms/gateway-1.4.1/gw/logs/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 #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" # Service for catching url messages group = sms-service keyword = catch-all = yes name = http get-url = "http://172.20.50.17/tmpy.html?to=%p&text=%r";; accept-x-kannel-headers = true max-messages = 0 concatenation = true <html> <head> <title></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <form name="temp" action="http://172.20.50.17:13013/cgi-bin/sendsms"> <input type="text" name="to" value="09228139179" /> <textarea name="text" rows="4" cols="20">hi miss</textarea> <input type="submit" value="Submit" name="submit" /> </form> </body> </html> kannel.log 2008-08-13 02:49:53 [873] [0] INFO: Added logfile `/opt/julius/sms/gateway-1.4.1/gw/logs/kannel.log' with level `0'. 2008-08-13 02:49:53 [873] [0] INFO: Started access logfile `/opt/julius/sms/gateway-1.4.1/gw/logs/access.log'. 2008-08-13 02:49:53 [873] [0] INFO: HTTP: Opening server at port 13000. 2008-08-13 02:49:53 [873] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2008-08-13 02:49:53 [873] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2008-08-13 02:49:53 [873] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run) 2008-08-13 02:49:53 [873] [0] DEBUG: starting smsbox connection module 2008-08-13 02:49:53 [873] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2008-08-13 02:49:53 [873] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes) 2008-08-13 02:49:53 [873] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run) 2008-08-13 02:49:53 [873] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 873. 2008-08-13 02:49:53 [873] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 873. 2008-08-13 02:49:53 [873] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 873. 2008-08-13 02:49:53 [873] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 873. 2008-08-13 02:49:53 [873] [0] INFO: Set SMS resend frequency to 60 seconds. 2008-08-13 02:49:53 [873] [0] INFO: SMS resend retry set to unlimited. 2008-08-13 02:49:53 [873] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 873. 2008-08-13 02:49:53 [873] [0] INFO: DLR rerouting for smsc id <FAKE> disabled. 2008-08-13 02:49:53 [873] [0] DEBUG: Started thread 6 (gw/smsc/smsc_fake.c:fake_listener) 2008-08-13 02:49:53 [873] [6] DEBUG: Thread 6 (gw/smsc/smsc_fake.c:fake_listener) maps to pid 873. 2008-08-13 02:49:53 [873] [0] INFO: DLR rerouting for smsc id <modem> disabled. 2008-08-13 02:49:53 [873] [0] INFO: Added logfile `/opt/julius/sms/gateway-1.4.1/gw/logs/modem.log' with level `0'. 2008-08-13 02:49:53 [873] [0] INFO: AT2[modem]: configuration doesn't show modemtype. will autodetect 2008-08-13 02:49:53 [873] [0] DEBUG: Started thread 7 (gw/smsc/smsc_at.c:at2_device_thread) 2008-08-13 02:49:53 [873] [8] DEBUG: Thread 8 (gw/bb_smscconn.c:sms_router) maps to pid 873. 2008-08-13 02:49:53 [873] [8] DEBUG: sms_router: time to sleep 30.00 secs. 2008-08-13 02:49:53 [873] [0] DEBUG: Started thread 8 (gw/bb_smscconn.c:sms_router) 2008-08-13 02:49:53 [873] [0] INFO: ---------------------------------------- 2008-08-13 02:49:53 [873] [0] INFO: Kannel bearerbox II version 1.4.1 starting 2008-08-13 02:49:53 [873] [0] INFO: Loading store file `/opt/julius/sms/gateway-1.4.1/gw/logs/kannel.store' 2008-08-13 02:49:53 [873] [0] INFO: Store-file size 0, starting to unpack 2008-08-13 02:49:53 [873] [0] INFO: Retrieved 0 messages, non-acknowledged messages: 0 2008-08-13 02:49:53 [873] [0] DEBUG: Started thread 9 (gw/bb_store.c:store_dumper) 2008-08-13 02:49:53 [873] [0] INFO: MAIN: Start-up done, entering mainloop 2008-08-13 02:49:53 [873] [0] DEBUG: smsc_fake: start called 2008-08-13 02:49:53 [873] [0] DEBUG: AT2[modem]: start called 2008-08-13 02:49:53 [873] [7] DEBUG: Thread 7 (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 873. 2008-08-13 02:49:53 [873] [7] INFO: Logging thread `7' to logfile `/opt/julius/sms/gateway-1.4.1/gw/logs/modem.log' with level `0'. 2008-08-13 02:49:53 [873] [8] DEBUG: sms_router: gwlist_len = 0 2008-08-13 02:49:53 [873] [9] DEBUG: Thread 9 (gw/bb_store.c:store_dumper) maps to pid 873. 2008-08-13 02:49:53 [873] [9] DEBUG: Dumping 0 messages to store 2008-08-13 02:50:51 [873] [5] INFO: Client connected from <172.20.50.17> 2008-08-13 02:50:51 [873] [5] DEBUG: Started thread 10 (gw/bb_boxc.c:function) 2008-08-13 02:50:51 [873] [10] DEBUG: Thread 10 (gw/bb_boxc.c:function) maps to pid 873. 2008-08-13 02:50:51 [873] [10] DEBUG: Started thread 11 (gw/bb_boxc.c:boxc_sender) 2008-08-13 02:50:51 [873] [11] DEBUG: Thread 11 (gw/bb_boxc.c:boxc_sender) maps to pid 873. 2008-08-13 02:54:30 [873] [0] WARNING: Killing signal or HTTP admin command received, shutting down... 2008-08-13 02:54:30 [873] [0] DEBUG: Shutting down Kannel... 2008-08-13 02:54:30 [873] [0] DEBUG: shutting down smsc 2008-08-13 02:54:30 [873] [0] DEBUG: Shutting down SMSCConn FAKE, slow 2008-08-13 02:54:30 [873] [0] DEBUG: AT2[modem]: Shutting down SMSCConn, slow 2008-08-13 02:54:30 [873] [0] DEBUG: shutting down udp 2008-08-13 02:54:30 [873] [6] DEBUG: smsc_fake connection has completed shutdown. 2008-08-13 02:54:30 [873] [6] DEBUG: Thread 6 (gw/smsc/smsc_fake.c:fake_listener) terminates. 2008-08-13 02:54:33 [873] [10] INFO: Connection closed by the box <172.20.50.17> 2008-08-13 02:54:33 [873] [11] DEBUG: send_msg: sending msg to box: <172.20.50.17> 2008-08-13 02:54:33 [873] [11] DEBUG: Thread 11 (gw/bb_boxc.c:boxc_sender) terminates. 2008-08-13 02:54:33 [873] [10] DEBUG: Thread 10 (gw/bb_boxc.c:function) terminates. 2008-08-13 02:54:35 [873] [8] DEBUG: Thread 8 (gw/bb_smscconn.c:sms_router) terminates. 2008-08-13 02:54:35 [873] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) terminates. 2008-08-13 02:54:35 [873] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) terminates. 2008-08-13 02:54:35 [873] [0] INFO: All flow threads have died, killing core 2008-08-13 02:54:35 [873] [0] DEBUG: Waiting for 2 (gwlib/http.c:server_thread) to terminate 2008-08-13 02:54:35 [873] [3] DEBUG: HTTP: No clients with requests, quitting. 2008-08-13 02:54:35 [873] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) terminates. 2008-08-13 02:54:35 [873] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) terminates. 2008-08-13 02:54:35 [873] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) terminates. 2008-08-13 02:54:35 [873] [9] DEBUG: Dumping 0 messages to store 2008-08-13 02:54:35 [873] [9] DEBUG: Thread 9 (gw/bb_store.c:store_dumper) terminates. 2008-08-13 02:54:35 [873] [0] INFO: Total WDP messages: received 0, sent 0 2008-08-13 02:54:35 [873] [0] INFO: Total SMS messages: received 0, sent 0 2008-08-13 02:54:35 [873] [0] DEBUG: Immutable octet strings: 210. smsbox.log 2008-08-13 02:50:51 [917] [0] INFO: Added logfile `/opt/julius/sms/gateway-1.4.1/gw/logs/smsbox.log' with level `0'. 2008-08-13 02:50:51 [917] [0] INFO: Logging accesses to '/opt/julius/sms/gateway-1.4.1/gw/logs/access.log'. 2008-08-13 02:50:51 [917] [0] INFO: Started access logfile `/opt/julius/sms/gateway-1.4.1/gw/logs/access.log'. 2008-08-13 02:50:51 [917] [0] INFO: HTTP: Opening server at port 13013. 2008-08-13 02:50:51 [917] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2008-08-13 02:50:51 [917] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2008-08-13 02:50:51 [917] [0] INFO: Set up send sms service at port 13013 2008-08-13 02:50:51 [917] [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread) 2008-08-13 02:50:51 [917] [0] DEBUG: ---------------------------------------------- 2008-08-13 02:50:51 [917] [0] DEBUG: Kannel smsbox version 1.4.1 starting 2008-08-13 02:50:51 [917] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) maps to pid 917. 2008-08-13 02:50:51 [917] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 917. 2008-08-13 02:50:51 [917] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 917. 2008-08-13 02:50:51 [917] [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread) 2008-08-13 02:50:51 [917] [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread) 2008-08-13 02:50:51 [917] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) maps to pid 917. 2008-08-13 02:50:51 [917] [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread) 2008-08-13 02:50:51 [917] [0] INFO: Connected to bearerbox at 172.20.50.17 port 13001. 2008-08-13 02:50:51 [917] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) maps to pid 917. 2008-08-13 02:50:51 [917] [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread) 2008-08-13 02:50:51 [917] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) maps to pid 917. 2008-08-13 02:50:51 [917] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) maps to pid 917. 2008-08-13 02:54:32 [917] [0] ERROR: SIGINT received, aborting program... 2008-08-13 02:54:32 [917] [0] INFO: Received (and handled?) 0 requests in 221 seconds (0.00 per second) 2008-08-13 02:54:32 [917] [0] INFO: Kannel smsbox terminating. 2008-08-13 02:54:32 [917] [7] DEBUG: Thread 7 (gw/heartbeat.c:heartbeat_thread) terminates. 2008-08-13 02:54:32 [917] [0] DEBUG: Waiting for 2 (gwlib/http.c:server_thread) to terminate 2008-08-13 02:54:32 [917] [3] DEBUG: HTTP: No clients with requests, quitting. 2008-08-13 02:54:32 [917] [3] DEBUG: Thread 3 (gw/smsbox.c:sendsms_thread) terminates. 2008-08-13 02:54:33 [917] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) terminates. 2008-08-13 02:54:33 [917] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) terminates. 2008-08-13 02:54:33 [917] [0] DEBUG: Waiting for 4 (gw/smsbox.c:obey_request_thread) to terminate 2008-08-13 02:54:33 [917] [4] DEBUG: Thread 4 (gw/smsbox.c:obey_request_thread) terminates. 2008-08-13 02:54:33 [917] [6] DEBUG: Thread 6 (gw/smsbox.c:http_queue_thread) terminates. 2008-08-13 02:54:33 [917] [0] DEBUG: Waiting for 5 (gw/smsbox.c:url_result_thread) to terminate 2008-08-13 02:54:33 [917] [5] DEBUG: Thread 5 (gw/smsbox.c:url_result_thread) terminates. 2008-08-13 02:54:33 [917] [0] DEBUG: Immutable octet strings: 176.
