Dear All, I am a beginner newbie on Kannel with (alas) limited experience with Linux.
I installed Kannel-1.2.1 from tar source on Redhat 8 machine with ericsson T68i as gsm modem for sending and receiving sms. Starting and stopping Kannel is done by /etc/init.d/kannel. Bearerbox and smsbox use the same smskannel.conf attached with this email (no wapbox). I made the conf file from sources on this list (and from the doc/examples/modem.conf). 1) One minor problem is the smsbox allways failed to connect to the bearerbox on the machine first boot. But subsequent restart by "service kannel restart" or a reboot ("shutdown -r now"), make those boxes connected (as reported by the smsbox.log). Any hint on this ? (On starting kannel, the bearerbox run first, then smsbox. When stopping, smsbox is stop first.) 2) The real problem: when I tried to send sms through a browser with http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar&to=0811224273&text%20=Hello the browser (and the log) reported as "Sent" but the destination cell phone never received the message. What is wrong ? (Of course, sending sms manually from the T68i to the same destination is successful) Attached are the smskannel.conf, smsbox.log, kannel.log (bearerbox's log) and kannel.store (store file generated by the above http). Sorry that I don't know what is and isn't important that I sent all those files. (Comment in log are added manually by me). Please kindly help. Regards, Rudy
# # THIS IS A SAMPLE CONFIGURATION FOR SMS KANNEL # # It is run like this: # # 1% gw/bearerbox gw/smskannel.conf # 2% gw/smsbox gw/smskannel.conf # 3% test/fakesmsc -p 10000 -H localhost -i 1 -m 100 "123 345 text nop" # # ..all 3 commands in separate shells (or screen sessions) # # For any modifications to this file, see Kannel User Guide # If that does not help, send email to [EMAIL PROTECTED] # # Kalle Marjola May 2000 # Changed for new fakesmsc version by Uoti Urpala Jan 2001 # Added service and sendsms for HTTP SMSC by Kalle Marjola Mar 2001 # # Core group page 27 group = core admin-port = 13000 smsbox-port = 13001 admin-password = bar #status-password = foo #admin-deny-ip = "" #admin-allow-ip = "" log-file = "/var/log/kannel/kannel.log" log-level = 0 box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" #unified-prefix = "00358,0" access-log = "/var/log/kannel/access.log" store-file = "/var/log/kannel/kannel.store" #ssl-certkey-file = "mycertandprivkeyfile.pem" # SMSC GSM page 61 group = smsc smsc = at2 smsc-id = VSMC modemtype = ericsson_t68 device = /dev/ttyS0 #pin = 2345 validityperiod = 167 sms-center = +62818445009 # Modem configuration page 63 group = modems id = ericsson_t68 name = "Ericsson T68" detect-string = "T68" init-string = "ATQ0E1V1" keepalive-cmd = "AT+CBC;+CSQ" broken = true # SMSBOX SETUP page 70 group = smsbox bearerbox-host = localhost sendsms-port = 13013 global-sender = 13013 sendsms-chars = "0123456789 +" log-file = "/var/log/kannel/smsbox.log" log-level = 0 access-log = "/var/log/kannel/access.log" # FAKE SMSC CONNECTIONS page 66 #group = smsc #smsc = fake #smsc-id = FAKE #port = 10000 #connect-allow-ip = 127.0.0.1 # SEND-SMS USERS page 84 group = sendsms-user username = tester password = foobar #user-deny-ip = "" #user-allow-ip = "" # this sender is for Kannel relay testing (http_smsc) group = sendsms-user username = kannel password = rL4y user-deny-ip = "*.*.*.*" user-allow-ip = "127.0.0.1" # SMS SERVICES page 73 #group = sms-service #keyword = nop #text = "You asked nothing and I did it!" # this service is for Kannel relay testing, when this Kannel # works as relay gateway group = sms-service keyword = relay get-url = "http://localhost:15130/sms?user=kannel&pass=rL4y&from=%p&to=%P&text=%r" max-messages = 0 # there should be default always group = sms-service keyword = default text = "No service specified"
2003-07-07 10:53:15 Log begins 2003-07-07 10:53:15 Log begins 2003-07-07 10:54:39 Log begins 2003-07-07 10:54:39 Log begins 2003-07-07 10:57:28 send-SMS request added - sender:tester:13013 127.0.0.1 target:0811224273 request: 'Hello'
2003-07-07 10:53:15 [0] INFO: Added logfile `/var/log/kannel/smsbox.log' with level `0'. 2003-07-07 10:53:15 [0] INFO: Service global sender set as '13013' 2003-07-07 10:53:15 [0] INFO: Logging accesses to '/var/log/kannel/access.log'. 2003-07-07 10:53:15 [0] INFO: Started access logfile `/var/log/kannel/access.log'. 2003-07-07 10:53:15 [0] DEBUG: HTTP: Opening server at port 13013. 2003-07-07 10:53:15 [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2003-07-07 10:53:15 [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2003-07-07 10:53:15 [0] INFO: Set up send sms service at port 13013 2003-07-07 10:53:15 [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread) 2003-07-07 10:53:15 [0] DEBUG: ---------------------------------------------- 2003-07-07 10:53:15 [0] DEBUG: Kannel smsbox version 1.2.1 starting 2003-07-07 10:53:15 [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread) 2003-07-07 10:53:15 [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread) 2003-07-07 10:53:15 [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread) 2003-07-07 10:53:15 [0] ERROR: connect failed 2003-07-07 10:53:15 [0] ERROR: System error 111: Connection refused 2003-07-07 10:53:15 [0] ERROR: error connecting to server `localhost' at port `13001' 2003-07-07 10:53:15 [0] PANIC: Couldn't connect to the bearerbox. # Above is log from the first boot (connect failed) # Below is log after restarting kannel ("service kannel restart" which # stop the smsbox, then bearerbox and start bearerbox and then smsbox) 2003-07-07 10:54:39 [0] INFO: Added logfile `/var/log/kannel/smsbox.log' with level `0'. 2003-07-07 10:54:39 [0] INFO: Service global sender set as '13013' 2003-07-07 10:54:39 [0] INFO: Logging accesses to '/var/log/kannel/access.log'. 2003-07-07 10:54:39 [0] INFO: Started access logfile `/var/log/kannel/access.log'. 2003-07-07 10:54:39 [0] DEBUG: HTTP: Opening server at port 13013. 2003-07-07 10:54:39 [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2003-07-07 10:54:39 [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2003-07-07 10:54:39 [0] INFO: Set up send sms service at port 13013 2003-07-07 10:54:39 [0] DEBUG: Started thread 3 (gw/smsbox.c:sendsms_thread) 2003-07-07 10:54:39 [0] DEBUG: ---------------------------------------------- 2003-07-07 10:54:39 [0] DEBUG: Kannel smsbox version 1.2.1 starting 2003-07-07 10:54:39 [0] DEBUG: Started thread 4 (gw/smsbox.c:obey_request_thread) 2003-07-07 10:54:39 [0] DEBUG: Started thread 5 (gw/smsbox.c:url_result_thread) 2003-07-07 10:54:39 [0] DEBUG: Started thread 6 (gw/smsbox.c:http_queue_thread) 2003-07-07 10:54:39 [0] INFO: Connected to bearerbox at localhost port 13001. 2003-07-07 10:54:39 [0] DEBUG: Started thread 7 (gw/heartbeat.c:heartbeat_thread) # Sending SMS. Reported as "Sent" but not received by the destination cell phone. 2003-07-07 10:57:28 [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'. 2003-07-07 10:57:28 [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from <127.0.0.1> 2003-07-07 10:57:28 [3] INFO: sendsms used by <tester> 2003-07-07 10:57:28 [3] INFO: sendsms sender:<tester:13013> (127.0.0.1) to:<0811224273> msg:<Hello> 2003-07-07 10:57:28 [3] DEBUG: message length 5, sending 1 messages 2003-07-07 10:57:28 [3] DEBUG: Status: 202 Answer: <Sent.> 2003-07-07 10:57:28 [3] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'. 2003-07-07 10:57:30 [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'. 2003-07-07 10:57:30 [3] INFO: smsbox: Got HTTP request </favicon.ico> from <127.0.0.1> 2003-07-07 10:57:30 [3] DEBUG: Status: 404 Answer: <Unknown request.> 2003-07-07 10:57:30 [3] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'. 2003-07-07 10:58:00 [1] DEBUG: HTTP: Destroying HTTPClient area 0x80dc630. 2003-07-07 10:58:00 [1] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'.
2003-07-07 10:54:39 [0] INFO: ---------------------------------------- 2003-07-07 10:54:39 [0] INFO: Kannel bearerbox II version 1.2.1 starting 2003-07-07 10:54:39 [0] INFO: Loading store file /var/log/kannel/kannel.store 2003-07-07 10:54:39 [0] INFO: Store-file size 0, starting to unpack 2003-07-07 10:54:39 [0] INFO: Retrieved 0 messages, non-acknowledged messages: 0 2003-07-07 10:54:39 [0] INFO: MAIN: Start-up done, entering mainloop 2003-07-07 10:54:39 [0] DEBUG: AT2[VSMC]: start called 2003-07-07 10:54:39 [6] INFO: AT2[VSMC]: trying to use speed <9600> from modem definition 2003-07-07 10:54:39 [6] INFO: AT2[VSMC]: opening device 2003-07-07 10:54:39 [6] DEBUG: AT2[VSMC]: device opened 2003-07-07 10:54:39 [6] INFO: AT2[VSMC]: speed set to 9600 2003-07-07 10:54:39 [6] DEBUG: AT2[VSMC]: --> ^M 2003-07-07 10:54:39 [7] DEBUG: sms_router: time to sleep 2003-07-07 10:54:39 [7] DEBUG: sms_router: list_len = 0 2003-07-07 10:54:39 [5] DEBUG: Started thread 8 (gw/bb_boxc.c:function) 2003-07-07 10:54:39 [8] INFO: Client connected from <127.0.0.1> 2003-07-07 10:54:39 [8] DEBUG: Started thread 9 (gw/bb_boxc.c:boxc_sender) 2003-07-07 10:54:41 [6] DEBUG: AT2[VSMC]: --> AT^M 2003-07-07 10:57:28 [8] DEBUG: boxc_receiver: sms received 2003-07-07 10:57:28 [7] DEBUG: sms_router: time to sleep 2003-07-07 10:58:19 [8] INFO: Connection closed by the box <127.0.0.1> # Kannel service was stopped here 2003-07-07 10:58:20 [0] WARNING: Killing signal received, shutting down... 2003-07-07 10:58:20 [0] DEBUG: Shutting down Kannel... 2003-07-07 10:58:20 [0] DEBUG: shutting down smsc 2003-07-07 10:58:20 [0] DEBUG: AT2[VSMC]: Shutting down SMSCConn, slow 2003-07-07 10:58:20 [0] DEBUG: shutting down udp 2003-07-07 10:58:20 [1] DEBUG: Dumping 1 messages and 0 acks to store 2003-07-07 10:58:20 [1] DEBUG: Thread 1 (gw/bb_store.c:store_cleanup) terminates. 2003-07-07 10:58:20 [7] DEBUG: sms_router: list_len = 1
%00%00%00%02%00%00%00%0513013%00%00%00%0A0811224273%00%00%00%00%00%00%00%05Hello%3F%08%EF%A8%FF%FF%FF%FF%00%00%00%06tester%FF%FF%FF%FF%00%00%00%01%00%00%00%02%00%00%00%00%00%00%00%00%00%00%00%01%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%FF%FF%FF%FF