Getting an error when trying to send a sms through a web call. The phone hooked up to the USB port is a Motorola Pebl.
After running the following command: Wget http://localhost:13013/cgi-bin/sendsms?username=kannelsms&password=passw ord&from=13616961548&to=2145551212&text=test' Getting this in my core.log file: 2008-09-18 15:55:22 [15951] [14] DEBUG: HTTP: Opening connection to `localhost:13013' (fd=44). 2008-09-18 15:55:22 [15951] [14] DEBUG: Socket connecting 2008-09-18 15:55:22 [15951] [13] DEBUG: Get info about connecting socket 2008-09-18 15:55:22 [15951] [13] DEBUG: HTTP: Sending request: 2008-09-18 15:55:22 [15951] [13] DEBUG: Octet string at 0x8a06e88: 2008-09-18 15:55:22 [15951] [13] DEBUG: len: 153 2008-09-18 15:55:22 [15951] [13] DEBUG: size: 1024 2008-09-18 15:55:22 [15951] [13] DEBUG: immutable: 0 2008-09-18 15:55:22 [15951] [13] DEBUG: data: 47 45 54 20 2f 63 67 69 2d 62 69 6e 2f 73 65 6e GET /cgi-bin/sen 2008-09-18 15:55:22 [15951] [13] DEBUG: data: 64 73 6d 73 3f 75 73 65 72 6e 61 6d 65 3d 6b 61 dsms?username=ka 2008-09-18 15:55:22 [15951] [13] DEBUG: data: 6e 6e 65 6c 68 74 74 70 26 70 61 73 73 77 6f 72 nnelhttp&passwor 2008-09-18 15:55:22 [15951] [13] DEBUG: data: 64 3d 70 61 73 73 77 6f 72 64 26 74 6f 3d 32 31 d=password&to=21 2008-09-18 15:55:22 [15951] [13] DEBUG: data: 34 32 32 33 37 30 37 39 26 74 65 78 74 3d 74 65 42237079&text=te 2008-09-18 15:55:22 [15951] [13] DEBUG: data: 73 74 26 66 72 6f 6d 3d 31 33 36 31 36 39 36 31 st&from=13616961 2008-09-18 15:55:22 [15951] [13] DEBUG: data: 35 34 38 26 63 6f 64 69 6e 67 3d 30 26 64 6c 72 548&coding=0&dlr 2008-09-18 15:55:22 [15951] [13] DEBUG: data: 2d 75 72 6c 3d 20 48 54 54 50 2f 31 2e 31 0d 0a -url= HTTP/1.1.. 2008-09-18 15:55:22 [15951] [13] DEBUG: data: 48 6f 73 74 3a 20 6c 6f 63 61 6c 68 6f 73 74 3a Host: localhost: 2008-09-18 15:55:22 [15951] [13] DEBUG: data: 31 33 30 31 33 0d 0a 0d 0a 13013.... 2008-09-18 15:55:22 [15951] [13] DEBUG: Octet string dump ends. 2008-09-18 15:55:22 [15951] [13] DEBUG: HTTP: Status line: <HTTP/1.1 403 Forbidden> 2008-09-18 15:55:22 [15951] [13] DEBUG: HTTP: Received response: 2008-09-18 15:55:22 [15951] [13] DEBUG: Octet string at 0x8a06ea8: 2008-09-18 15:55:22 [15951] [13] DEBUG: len: 144 2008-09-18 15:55:22 [15951] [13] DEBUG: size: 1024 2008-09-18 15:55:22 [15951] [13] DEBUG: immutable: 0 2008-09-18 15:55:22 [15951] [13] DEBUG: data: 53 65 72 76 65 72 3a 20 4b 61 6e 6e 65 6c 2f 31 Server: Kannel/1 2008-09-18 15:55:22 [15951] [13] DEBUG: data: 2e 34 2e 31 0d 0a 43 6f 6e 74 65 6e 74 2d 4c 65 .4.1..Content-Le 2008-09-18 15:55:22 [15951] [13] DEBUG: data: 6e 67 74 68 3a 20 33 32 0d 0a 43 6f 6e 74 65 6e ngth: 32..Conten 2008-09-18 15:55:22 [15951] [13] DEBUG: data: 74 2d 74 79 70 65 3a 20 74 65 78 74 2f 68 74 6d t-type: text/htm 2008-09-18 15:55:22 [15951] [13] DEBUG: data: 6c 0d 0a 50 72 61 67 6d 61 3a 20 6e 6f 2d 63 61 l..Pragma: no-ca 2008-09-18 15:55:22 [15951] [13] DEBUG: data: 63 68 65 0d 0a 43 61 63 68 65 2d 43 6f 6e 74 72 che..Cache-Contr 2008-09-18 15:55:22 [15951] [13] DEBUG: data: 6f 6c 3a 20 6e 6f 2d 63 61 63 68 65 0d 0a 0d 0a ol: no-cache.... 2008-09-18 15:55:22 [15951] [13] DEBUG: data: 41 75 74 68 6f 72 69 7a 61 74 69 6f 6e 20 66 61 Authorization fa 2008-09-18 15:55:22 [15951] [13] DEBUG: data: 69 6c 65 64 20 66 6f 72 20 73 65 6e 64 73 6d 73 iled for sendsms 2008-09-18 15:55:22 [15951] [13] DEBUG: Octet string dump ends. 2008-09-18 15:56:22 [15951] [13] DEBUG: HTTP: Server closed connection, destroying it <localhost:13013><0x89f9bb8><fd:44>. Here is the kannel.conf file: 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/core.log" log-level = 0 #box-deny-ip = "*.*.*.*" box-allow-ip = "*.*.*.*" #unified-prefix = "+358,00358,0;+,00" access-log = "/var/log/kannel/core-access.log" #store-file = "kannel.store" #ssl-server-cert-file = "cert.pem" #ssl-server-key-file = "key.pem" #ssl-certkey-file = "mycertandprivkeyfile.pem" group = smsc smsc = fake smsc-id = FAKE port = 10000 #connect-allow-ip = 127.0.0.1 # HTTP gateway to SMS-C group = smsc smsc = http system-type = kannel smsc-id = http port = 15130 connect-allow-ip = "*.*.*.*" smsc-username = kannelhttp smsc-password = password send-url = "http://localhost:13013/cgi-bin/sendsms" log-file = "/var/log/kannel/http-smsc.log" log-level = 0 # USB attached GSM phone group = smsc smsc = at smsc-id = motorola allowed-smsc-id = motorola modemtype = motorola device = /dev/ttyACM0 speed = 115200 my-number = 13616961548 log-file = "/var/log/kannel/gsm-smsc.log" log-level = 0 sim-buffering = false connect-allow-ip = "*.*.*.*" group = modems id = motorola name = "motorola" detect-string = "MOTOROLA" speed = 115200 init-string = "AT&F Q0 V1 E0 S0=0 &D2 &C1;+CNMI=3,2,0,0,0;+CMEE=2" need-sleep = true #init-string = "AT+CGDCONT=1,IP,slogic.t-mobile.net" group = smsbox bearerbox-host = 127.0.0.1 sendsms-port = 13013 global-sender = 13616961548 #sendsms-chars = "0123456789 +-" log-file = "/var/log/kannel/smsbox.log" log-level = 0 access-log = "/var/log/kannel/smsbox-access.log" group = sendsms-user username = kannelsms password = password 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"
