Hi all, Thanks for answers, I solved it.
Willy was right, I put wrong port. Also, Tharanga's suggestion for user/pass was right, so I sent sms using: lynx --dump "http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar&to=+1111111&text=Hello+world" Best regards, Dusan On Thu, Apr 2, 2009 at 11:27 AM, sangprabv <[email protected]> wrote: > I think it should be http://localhost:13013/sendsms?........ > You defined 13013 as your sendsms port, while 13001 is your smsbox port. > > > > Willy > > > ---------- Forwarded message ---------- > From: Dusan Djordjevic <[email protected]> > To: [email protected] > Date: Thu, 2 Apr 2009 11:15:18 +0200 > Subject: Problem sending SMS > Hi all, > > I have problem sending SMS. I suppose it is misconfiguration, but I > cannot detect it. I am running Ubuntu 8.04, Kannel 1.41, phone is > Nokia 6085 connected to USB. > > Here is my kannel.conf: > > group = core > admin-port = 13000 > admin-password = bar > admin-deny-ip = "*.*.*.*" > admin-allow-ip = "127.0.0.1" > log-file = "/var/log/kannel/bearerbox.log" > log-level = 0 > smsbox-port = 13001 > box-deny-ip = "*.*.*.*" > box-allow-ip = "127.0.0.1" > > # SMSC > > group = smsc > smsc = at > modemtype = AT2 > device = /dev/ttyACM0 > speed = 0 > smsc-id = Nokia_smsc > port = 13131 > log-level = 0 > > # Nokia mobile phone setup > > group = modems > id = AT2 > name = "Nokia 6085 config" > detect-string="Nokia" > detect-string2="Nokia 6085" > init-string = "ATZ" > speed = 19200 > enable-hwhs = "AT+IFC=2,2" > message-storage = "SM" > > group = smsbox > bearerbox-host = localhost > sendsms-port = 13013 > global-sender = 13013 > log-level=0 > sendsms-chars="0123456789 +-" > > # SEND-SMS USERS > > group = sendsms-user > username = tester > password = foobar > > # SMS Service > > group = sms-service > keyword = > keyword-regex = .* > catch-all = yes > max-messages = 0 > get-url = "http://localhost/sms?phone=%p&text=%a" > > > It seems, according to log file that it starts without problems. > > Here is status: > > r...@kannel:/etc/kannel# lynx -dump > "http://localhost:13000/status?password=bar" Kannel bearerbox > version `1.4.1'. Build `Mar 29 2008 11:04:25', > compiler `4.2.3 (Ubuntu 4.2.3-2ubuntu6)'. System Linux, release > 2.6.24-23-server, version #1 SMP Mon Jan 26 00:55:21 UTC 2009, machine > i686. Hostname kannel.sc.charter.com, IP 127.0.1.1. Libxml version > 2.6.31. Using OpenSSL 0.9.8g 19 Oct 2007. Compiled with MySQL 5.0.51a, > using MySQL 5.0.51a. Using native malloc. > > Status: running, uptime 0d 0h 5m 22s > > WDP: received 0 (0 queued), sent 0 (0 queued) > > SMS: received 0 (0 queued), sent 0 (0 queued), store size -1 > > SMS: inbound 0.00 msg/sec, outbound 0.00 msg/sec > > DLR: 0 queued, using internal storage > > Box connections: > smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 0h 5m 21s) > > SMSC connections: > Nokia_smsc AT2[Nokia_smsc] (online 319s, rcvd 0, sent 0, failed > 0, queued 0 msgs) > > > But when I try to send SMS: > lynx "http://localhost:13001/sms?phone=+111111111111&text=blah+blah" > (my number, of course, instead of 1111...) > > i just have hanging: > > HTTP request sent; waiting for response. > > Thank you in advance for answers. > > Best regards, > Dusan > > -- > Dusan Djordjevic > http://dj-dule.blogspot.com | http://www.mravojed.com > > > -- Dusan Djordjevic http://dj-dule.blogspot.com | http://www.mravojed.com
