Try: sms= http://localhost:13013/cgi-bin/sendsms?username=tester <http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar&to=+2772xxxxxxx&text=hello&smsc=huawei_k3770_00> &password=foobar&to=+2772xxxxxxx&text=hello&smsc=huawei_k3770_00
From: users-boun...@kannel.org [mailto:users-boun...@kannel.org] On Behalf Of Nikitah Bobhate Sent: Saturday, 21 January, 2012 18:14 To: users@kannel.org Subject: Trouble sending SMS with Kannel Hello all, I think I finally got Kannel (1.4.3) and my GSM modem (Huawei K3770) set up. I tried to send an SMS to a mobile phone through the HTTP command: http://localhost:13013/cgi-bin/sendsms?username=tester <http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar&to=+2772xxxxxxx&text=hello> &password=foobar&to=+2772xxxxxxx&text=hello The result I get is: "3: Queued for later delivery", but when I check the bearerbox log I get this: 2012-01-20 13:21:46 [2426] [6] DEBUG: AT2[huawei_k3770_00]: detecting modem speed. 2012-01-20 13:21:46 [2426] [6] INFO: AT2[huawei_k3770_00]: opening device 2012-01-20 13:21:46 [2426] [6] DEBUG: AT2[huawei_k3770_00]: device opened. Telnet mode = 0 2012-01-20 13:21:47 [2426] [6] DEBUG: AT2[huawei_k3770_00]: device opened 2012-01-20 13:21:47 [2426] [6] INFO: AT2[huawei_k3770_00]: speed set to 115200 2012-01-20 13:21:47 [2426] [6] DEBUG: AT2[huawei_k3770_00]: --> ^M 2012-01-20 13:21:49 [2426] [6] DEBUG: AT2[huawei_k3770_00]: --> AT^M 2012-01-20 13:21:49 [2426] [7] DEBUG: sms_router: gwlist_len = 1 2012-01-20 13:21:49 [2426] [7] DEBUG: sms_router: handling message (0x9f0bf40 vs 0x9f0bf40) 2012-01-20 13:21:49 [2426] [7] DEBUG: Routing failed, re-queued. 2012-01-20 13:21:49 [2426] [7] DEBUG: sms_router: handling message (0x9f0bf40 vs 0x9f0bf40) 2012-01-20 13:21:49 [2426] [7] DEBUG: Routing failed, re-queued. 2012-01-20 13:21:49 [2426] [7] DEBUG: sms_router: time to sleep 30.00 secs. 2012-01-20 13:21:53 [2426] [6] DEBUG: AT2[huawei_k3770_00]: --> AT^M 2012-01-20 13:21:57 [2426] [6] DEBUG: AT2[huawei_k3770_00]: --> AT^M 2012-01-20 13:22:01 [2426] [6] INFO: AT2[huawei_k3770_00]: Closing device 2012-01-20 13:22:01 [2426] [6] INFO: AT2[huawei_k3770_00]: opening device 2012-01-20 13:22:01 [2426] [6] DEBUG: AT2[huawei_k3770_00]: device opened. Telnet mode = 0 This keeps happening so the queued SMS is never sent. The following is my configuration file for Kannel: # # Configuration file for Kannel Bearerbox and Smsbox # group = core admin-port = 13000 admin-password = bar admin-deny-ip = "*.*.*.* admin-allow-ip = "127.0.0.1" log-file = "/tmp/kannel.log" log-level = 0 smsbox-port = 13001 box-deny-ip = "*.*.*.*" box-allow-ip = "127.0.0.1" dlr-storage = mysql # SMSC CONNECTIONS # GSM - Huawei K3770 group = smsc smsc = at smsc-id = huawei_k3770_00 port = 13012 modemtype = auto device = /dev/ttyUSB1 sms-center = +2772xxxxxxx #SIM number my-number = +2772xxxxxxx #SIM number connect-allow-ip = "127.0.0.1" pin = xxxx #SIM PIN # MODEMS! group = modems id = huawei_k3770_00 name = "Huawei K3770" speed = 115200 detect-string = "Huawei" detect-string2 = "K3770" # init-string = "~^MAT S7=45 S0=0 L1 V1 X4 &c1 E1 Q0^M" # SMSBOX SETUP group = smsbox smsbox-id = mysmsbox bearerbox-host = "127.0.0.1" sendsms-port = 13013 sendsms-chars = "0123456789 +-" global-sender = 13013 # SEND-SMS USERS group = sendsms-user username = tester password = foobar #user-deny-ip = "" #user-allow-ip = "" # SMS SERVICES group = sms-service keyword = nop text = "You asked nothing and I did it!" # SMS SERVICE Default # there should be default always group = sms-service keyword = default text = "No service specified" # MYSQL CONNECTION group = mysql-connection id = mydlr host = "127.0.0.1" username = xxx #mysql username password = xxx #mysql password database = dlr max-connections = 1 # DLR TABLE STRUCTURE group = dlr-db id = mydlr table = dlr field-smsc = smsc field-timestamp = ts field-destination = destination field-source = source field-service = service field-url = url field-mask = mask field-status = status field-boxc-id = boxc Any tips on what I am doing wrong would be greatly appreciated!