Problem with sending messages via http
Matthew McCabe <[email protected]>
| Newsgroups | gmane.comp.mobile.kannel.devel |
|---|---|
| Message-ID | <[email protected]> |
I am having trouble sending messages with Kannel via http. When I try to
use the web URL to send a message, I get a generic "Firefox can't establish
a connection to the server at localhost:13013" error. I am using a link
like this:
http://localhost:13013/cgi-bin/sendsms?username=kannel&password=rL4y&to=0123456&text=Hello+world
I am able to access the admin interface and status page from
http://localhost:13000/status - here are the results:
Kannel bearerbox version `1.4.3'. Build `Feb 14 2009 16:26:23', compiler
`4.3.3'. System Linux, release 2.6.31-20-generic, version #58-Ubuntu SMP Fri
Mar 12 05:23:09 UTC 2010, machine i686. Hostname ubuntu, IP 127.0.1.1.
Libxml version 2.6.32. Using OpenSSL 0.9.8g 19 Oct 2007. Compiled with MySQL
5.0.75, using MySQL 5.0.83. Using native malloc.
Status: running, uptime 0d 0h 9m 46s
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,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec
DLR: 0 queued, using internal storage
No boxes connected
SMSC connections:
unknown AT2[/dev/ttyACM0] (online 548s, rcvd 0, sent 0, failed 0,
queued 0 msgs)
I have attached my kannel.config (built from the example config) and the
kannel log file.
Any ideas on what is going on?
Thanks,
Matt
kannel.conf
(application/octet-stream, 4.4 KB)
# # THIS IS A SAMPLE CONFIGURATION FOR KANNEL # # For any modifications to this file, see Kannel User Guide # If that does not help, send email to [email protected] # group = core admin-port = 13000 admin-password = bar log-file = "/var/log/kannel/kannel.log" smsbox-port = 13001 #status-password = foo #admin-deny-ip = "" #admin-allow-ip = "" #log-file = "/tmp/kannel.log" #log-level = 0 #access-log = "access.log" #http-proxy-host = "127.0.0.1" #http-proxy-port = 8080 #http-proxy-exceptions = "127.0.0.1" #http-proxy-username = "user" #http-proxy-password = "password" #ssl-certkey-file = "mycertandprivkeyfile.pem" # Smsbox related #smsbox-port = 13001 #box-deny-ip = "*.*.*.*" #box-allow-ip = "127.0.0.1" #unified-prefix = "00358,0" #white-list = "http://127.0.0.1/white-list.txt" #black-list = "http://127.0.0.1/black-list.txt" #store-file = "kannel.store" # Wapbox related #wapbox-port = 13002 #udp-deny-ip = "*.*.*.*" #udp-allow-ip = "127.0.0.1" #wdp-interface-name = "*" # SMSC CONNECTIONS - GLOBAL FIELDS #group = smsc #smsc = #smsc-id = ID #denied-smsc-id = "X;Y" #allowed-smsc-id = "Z" #preferred-smsc-id = "W" #allowed-prefix = "040;050" #denied-prefix = "060;070" #alt-charset = # SMSC Nokia CIMD2 #group = smsc #smsc = cimd2 #host = #port = #smsc-username = #smsc-password = #keepalive = #sender-prefix = # SMSC EMI #group = smsc #smsc = emi2 #smsc = emi_ip to use the old implementation #host = #port = #smsc-username = #smsc-password = #device = /dev/ #phone = #our-port = #receive-port = #connect-allow-ip = #keepalive = #flow-control = # SMSC SMPP #group = smsc #smsc = smpp #host = #port = #receive-port = #smsc-username = #smsc-password = #system-type = #address-range = # SMSC SEMA #group = smsc #smsc = sema #device = /dev/tty0 #smsc_nua = (X121 smsc address) #home_nua = (x121 radio pad address) #wait_report = 0/1 (0 means false, 1 means true) # SMSC OIS #group = smsc #smsc = ois #host = 103.102.101.100 #port = 10000 #receive-port = 10000 #ois-debug-level = 0 # SMSC GSM #group = smsc #smsc = at #modemtype = wavecom | premicell | siemens | siemens-tc35 | falcom | nokiaphone | ericsson #device = /dev/ttyS0 #pin = 2345 #validityperiod = 167 # SMSC Fake #group = smsc #smsc = fake #host = #port = #connect-allow-ip = # SMSC HTTP #group = smsc #smsc = http #system-type = kannel #send-url = #port = #connect-allow-ip = #username = #password = # sms center config group = smsc smsc = at modemtype = samba75 device = /dev/ttyACM0 # Falcom Samba 75 modem config group = modems id = samba75 name = "SAMBA75" detect-string = "SAMBA75" speed = 230400 init-string = "AT+CGATT=1" # SMSBOX SETUP group = smsbox bearerbox-host = localhost sendsms-port = 13013 #sendsms-chars = "0123456789 +-" #global-sender = 12345 #log-file = "/tmp/smsbox.log" #log-level = 0 #access-log = "access.log" #white-list = #black-list = #reply-couldnotfetch = #reply-couldnotrepresent = #reply-requestfailed = #reply-emptymessage = # SEND-SMS USERS 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" #name = service_kannel #forced-smsc = ID #default-smsc = ID #faked-sended = #max-messages = 1 #concatenation = 1 #split-chars = #split-suffix = #omit-empty = #header = #footer = #allowed-prefix = #denied-prefix = #white-list = #black-list = # SMS SERVICES #group = sms-service #name = nothing #keyword = nop #aliases = "noppy;niente" #text = "You asked nothing and I did it!" #get-url = "http://" #post-url = "http://" #file = "/tmp/" #accepted-smsc = ID #allowed-prefix = #denied-prefix = #catch-all = false #send-sender = false #strip-keyword = false #faked-sender = #max-messages = 1 #accept-x-kannel-headers = false #assume-plain-text = false #concatenation = false #split-chars = #split-suffix = "+" #omit-empty = true #header = #footer = #prefix = #suffix = #white-list = #black-list = # SMS SERVICE GET-URL EXAMPLE #group = sms-service #keyword = relay #get-url = "http://localhost/service?phone=%p&text=%r&binary=%b&smsc=$i&time=%t # SMS SERVICE black-list #group = sms-service #keyword = black-list #text = "You are not alowed to use this service, Go away!" # SMS SERVICE Default # there should be default always group = sms-service keyword = default text = "No service specified"
kannel.log
(application/octet-stream, 5.7 KB)
2010-04-07 17:33:37 [10319] [0] INFO: Added logfile `/var/log/kannel/kannel.log' with level `0'. 2010-04-07 17:33:37 [10319] [0] INFO: HTTP: Opening server at port 13000. 2010-04-07 17:33:37 [10319] [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller) 2010-04-07 17:33:37 [10319] [0] DEBUG: Started thread 2 (gwlib/http.c:server_thread) 2010-04-07 17:33:37 [10319] [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_run) 2010-04-07 17:33:37 [10319] [0] DEBUG: starting smsbox connection module 2010-04-07 17:33:37 [10319] [0] INFO: BOXC: 'smsbox-max-pending' not set, using default (100). 2010-04-07 17:33:37 [10319] [0] DEBUG: Started thread 4 (gw/bb_boxc.c:sms_to_smsboxes) 2010-04-07 17:33:37 [10319] [0] DEBUG: Started thread 5 (gw/bb_boxc.c:smsboxc_run) 2010-04-07 17:33:37 [10319] [0] INFO: Set SMS resend frequency to 60 seconds. 2010-04-07 17:33:37 [10319] [0] INFO: SMS resend retry set to unlimited. 2010-04-07 17:33:37 [10319] [0] DEBUG: smsbox MO concatenated message handling enabled 2010-04-07 17:33:37 [10319] [0] INFO: DLR rerouting for smsc id <(null)> disabled. 2010-04-07 17:33:37 [10319] [0] INFO: AT2[/dev/ttyACM0]: configuration shows modemtype <samba75> 2010-04-07 17:33:37 [10319] [0] DEBUG: AT2[/dev/ttyACM0]: Reading modem definitions from </etc/kannel/kannel.conf> 2010-04-07 17:33:37 [10319] [0] DEBUG: AT2[/dev/ttyACM0]: Found <1> modems in config 2010-04-07 17:33:37 [10319] [0] INFO: AT2[/dev/ttyACM0]: read modem definition for <SAMBA75> 2010-04-07 17:33:37 [10319] [0] DEBUG: Started thread 6 (gw/smsc/smsc_at.c:at2_device_thread) 2010-04-07 17:33:37 [10319] [0] DEBUG: Started thread 7 (gw/bb_smscconn.c:sms_router) 2010-04-07 17:33:37 [10319] [0] INFO: ---------------------------------------- 2010-04-07 17:33:37 [10319] [0] INFO: Kannel bearerbox II version 1.4.3 starting 2010-04-07 17:33:37 [10319] [1] DEBUG: Thread 1 (gwlib/fdset.c:poller) maps to pid 10319. 2010-04-07 17:33:37 [10319] [5] DEBUG: Thread 5 (gw/bb_boxc.c:smsboxc_run) maps to pid 10319. 2010-04-07 17:33:37 [10319] [0] INFO: MAIN: Start-up done, entering mainloop 2010-04-07 17:33:37 [10319] [0] DEBUG: AT2[/dev/ttyACM0]: start called 2010-04-07 17:33:37 [10319] [3] DEBUG: Thread 3 (gw/bb_http.c:httpadmin_run) maps to pid 10319. 2010-04-07 17:33:37 [10319] [6] DEBUG: Thread 6 (gw/smsc/smsc_at.c:at2_device_thread) maps to pid 10319. 2010-04-07 17:33:37 [10319] [6] INFO: AT2[/dev/ttyACM0]: trying to use speed <230400> from modem definition 2010-04-07 17:33:37 [10319] [6] INFO: AT2[/dev/ttyACM0]: opening device 2010-04-07 17:33:37 [10319] [2] DEBUG: Thread 2 (gwlib/http.c:server_thread) maps to pid 10319. 2010-04-07 17:33:37 [10319] [7] DEBUG: Thread 7 (gw/bb_smscconn.c:sms_router) maps to pid 10319. 2010-04-07 17:33:37 [10319] [4] DEBUG: Thread 4 (gw/bb_boxc.c:sms_to_smsboxes) maps to pid 10319. 2010-04-07 17:33:37 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: device opened. Telnet mode = 0 2010-04-07 17:33:37 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: device opened 2010-04-07 17:33:37 [10319] [6] INFO: AT2[/dev/ttyACM0]: speed set to 230400 2010-04-07 17:33:37 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: --> ^M 2010-04-07 17:33:39 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT^M 2010-04-07 17:33:39 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2010-04-07 17:33:39 [10319] [6] INFO: AT2[/dev/ttyACM0]: Closing device 2010-04-07 17:33:39 [10319] [6] INFO: AT2[/dev/ttyACM0]: speed is 230400 2010-04-07 17:33:39 [10319] [6] INFO: AT2[/dev/ttyACM0]: opening device 2010-04-07 17:33:39 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: device opened. Telnet mode = 0 2010-04-07 17:33:39 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: device opened 2010-04-07 17:33:39 [10319] [6] INFO: AT2[/dev/ttyACM0]: Logging in 2010-04-07 17:33:39 [10319] [6] INFO: AT2[/dev/ttyACM0]: init device 2010-04-07 17:33:39 [10319] [6] INFO: AT2[/dev/ttyACM0]: speed set to 230400 2010-04-07 17:33:39 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: --> ATZ^M 2010-04-07 17:33:39 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2010-04-07 17:33:39 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT^M 2010-04-07 17:33:39 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: <-- AT 2010-04-07 17:33:39 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2010-04-07 17:33:39 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT&F^M 2010-04-07 17:33:40 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: <-- AT&F 2010-04-07 17:33:40 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2010-04-07 17:33:40 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: --> ATE0^M 2010-04-07 17:33:40 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: <-- ATE0 2010-04-07 17:33:40 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2010-04-07 17:33:40 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+IFC=2,2^M 2010-04-07 17:33:40 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2010-04-07 17:33:40 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+CPIN?^M 2010-04-07 17:33:40 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: <-- +CPIN: READY 2010-04-07 17:33:40 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2010-04-07 17:33:40 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+CMGF=0^M 2010-04-07 17:33:40 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2010-04-07 17:33:40 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+CSMS=?^M 2010-04-07 17:33:40 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: <-- +CSMS: (0,1) 2010-04-07 17:33:40 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2010-04-07 17:33:40 [10319] [6] INFO: AT2[/dev/ttyACM0]: Phase 2+ is supported 2010-04-07 17:33:40 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+CSMS=1^M 2010-04-07 17:33:40 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: <-- +CSMS: 1,1,1 2010-04-07 17:33:40 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2010-04-07 17:33:40 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: --> AT+CGATT=1^M 2010-04-07 17:33:42 [10319] [6] DEBUG: AT2[/dev/ttyACM0]: <-- OK 2010-04-07 17:33:42 [10319] [6] INFO: AT2[/dev/ttyACM0]: AT SMSC successfully opened.