It seems like you�re running kannel on Windows through Cygwin.
Try to run "netstat /a" and look for the LISTENING lines.
Here you should be able to see if you're listening on port 13013.

Best regards,
Jacob Vennervald

On Fri, 2003-10-10 at 01:06, Jarl Cornell wrote:
> Thanks for everyones help, almost got it all now I think...
> (kannel.conf in at end of mail)
> 
> My main problem is that I'm not sure how to send a message, in the documentation it 
> says to use the http commands:
> http://smsbox.host.name:13013/cgi-bin/sendsms?
> username=foo&password=bar&to=0123456&text=Hello+world
> 
> I've tried exchanging host.name with both jarl, 127.0.0.1, localhost and 
> 192.168.0.10 however it still doesn't want to work, it returns: "smsbox.localhost" 
> (or any of the others above) "could not be found"
> 
> Is something wrong when I start my boxes? or is something wrong in my kannel.conf? 
> or is my http command just wrong? is there another way of sending a message...?
> all info is supplied below:
> 
> Huge thanks to anyone who can help me with a reply to this, I know most of you 
> probably think people like me are fools for not understanding the system properly, 
> but trust me, I'm really trying to learn, I really really want to understand.
> 
> Thanks,
> Jarl
> 
> 
> -------------------------------------------
> I start my stuff like:
> 1
> gw/bearerbox gw/kannel.conf
>         2003-10-09 23:14:39 [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl =
> 2003-10-09 23:14:39 [0] WARNING: DLR: using default 'internal' for storage
> 
> 2003-10-09 23:14:39 [0] DEBUG: Kannel bearerbox version `1.3.1'.
> System CYGWIN_NT-5.1, release 1.5.5(0.94/3/2), version 2003-09-20 16:31, m
>  i686.
> Hostname JARL, IP 192.168.0.10.
> Libxml version 20511.
> Using OpenSSL 0.9.7c 30 Sep 2003.
> Using native malloc.
> 
> 2003-10-09 23:14:39 [0] DEBUG: HTTP: Opening server at port 13000.
> 2003-10-09 23:14:40 [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
> 2003-10-09 23:14:40 [0] DEBUG: Started thread 2 (gwlib/http.c:server_threa
> 2003-10-09 23:14:40 [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_ru
> 2003-10-09 23:14:40 [0] DEBUG: starting smsbox connection module
> 2003-10-09 23:14:40 [0] DEBUG: Started thread 4 (gw/bb_boxc.c:smsboxc_run)
> 2003-10-09 23:14:40 [0] INFO: AT2[wavecom_1]: configuration shows modemtyp
> ecom>
> 2003-10-09 23:14:40 [0] DEBUG: AT2[wavecom_1]: Reading modem definitions f
> w/kannel.conf>
> 2003-10-09 23:14:40 [0] DEBUG: AT2[wavecom_1]: Found <1> modems in config
> 2003-10-09 23:14:40 [0] INFO: AT2[wavecom_1]: read modem definition for <W
> >
> 2003-10-09 23:14:40 [0] DEBUG: Started thread 5 (gw/smsc/smsc_at2.c:at2_de
> hread)
> 2003-10-09 23:14:40 [0] DEBUG: Started thread 6 (gw/bb_smscconn.c:sms_rout
> 2003-10-09 23:14:40 [0] INFO: ----------------------------------------
> 2003-10-09 23:14:40 [0] INFO: Kannel bearerbox II version 1.3.1 starting
> 2003-10-09 23:14:40 [5] DEBUG: AT2[wavecom_1]: device opened
> 2003-10-09 23:14:40 [0] INFO: MAIN: Start-up done, entering mainloop
> 2003-10-09 23:14:40 [0] DEBUG: AT2[wavecom_1]: start called
> 2003-10-09 23:14:40 [6] DEBUG: sms_router: list_len = 0
> 2003-10-09 23:14:40 [5] DEBUG: AT2[wavecom_1]: device opened
> 2003-10-09 23:14:40 [5] INFO: AT2[wavecom_1]: init device
> 2003-10-09 23:14:40 [5] INFO: AT2[wavecom_1]: speed set to 9600
> 2003-10-09 23:14:40 [5] DEBUG: AT2[wavecom_1]: --> AT^M
> 2003-10-09 23:14:40 [5] DEBUG: AT2[wavecom_1]: <-- AT
> 2003-10-09 23:14:40 [5] DEBUG: AT2[wavecom_1]: <-- OK
> 2003-10-09 23:14:41 [5] DEBUG: AT2[wavecom_1]: --> AT&F^M
> 2003-10-09 23:14:41 [5] DEBUG: AT2[wavecom_1]: <-- AT&F
> 2003-10-09 23:14:41 [5] DEBUG: AT2[wavecom_1]: <-- OK
> 2003-10-09 23:14:41 [5] DEBUG: AT2[wavecom_1]: --> ATE0^M
> 2003-10-09 23:14:41 [5] DEBUG: AT2[wavecom_1]: <-- ATE0
> 2003-10-09 23:14:41 [5] DEBUG: AT2[wavecom_1]: <-- OK
> 2003-10-09 23:14:41 [5] DEBUG: AT2[wavecom_1]: --> AT+IFC=2,2^M
> 2003-10-09 23:14:41 [5] DEBUG: AT2[wavecom_1]: <-- OK
> 2003-10-09 23:14:41 [5] DEBUG: AT2[wavecom_1]: --> AT+CPIN?^M
> 2003-10-09 23:14:41 [5] DEBUG: AT2[wavecom_1]: <-- +CPIN: READY
> 2003-10-09 23:14:52 [5] DEBUG: AT2[wavecom_1]: --> AT+CMGF=0^M
> 2003-10-09 23:14:52 [5] DEBUG: AT2[wavecom_1]: <-- OK
> 2003-10-09 23:14:52 [5] DEBUG: AT2[wavecom_1]: --> AT+CSMS=?^M
> 2003-10-09 23:14:52 [5] DEBUG: AT2[wavecom_1]: <-- +CSMS: (0,1)
> 2003-10-09 23:14:52 [5] DEBUG: AT2[wavecom_1]: <-- OK
> 2003-10-09 23:14:52 [5] INFO: AT2[wavecom_1]: Phase 2+ is supported
> 2003-10-09 23:14:52 [5] DEBUG: AT2[wavecom_1]: --> AT+CSMS=1^M
> 2003-10-09 23:14:52 [5] DEBUG: AT2[wavecom_1]: <-- +CSMS: 1,1,1
> 2003-10-09 23:14:52 [5] DEBUG: AT2[wavecom_1]: <-- OK
> 2003-10-09 23:14:52 [5] DEBUG: AT2[wavecom_1]: --> AT+CNMI=1,2,0,1,0^M
> 2003-10-09 23:14:52 [5] DEBUG: AT2[wavecom_1]: <-- OK
> 2003-10-09 23:14:52 [5] INFO: AT2[wavecom_1]: AT SMSC successfully opened.
> 2003-10-09 23:14:54 [4] DEBUG: Started thread 7 (gw/bb_boxc.c:function)
> 2003-10-09 23:14:54 [7] INFO: Client connected from <127.0.0.1>
> 2003-10-09 23:14:54 [7] DEBUG: Started thread 8 (gw/bb_boxc.c:boxc_sender)
> 2003-10-09 23:14:55 [7] DEBUG: boxc_receiver: unlocking sender
> 2003-10-09 23:14:55 [8] DEBUG: boxc_sender: sender unlocked
> 
> 2
> gw/smsbox gw/kannel.conf
> 2003-10-09 23:14:39 [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl =
> 2003-10-09 23:14:39 [0] WARNING: DLR: using default 'internal' for storage
> 
> 2003-10-09 23:14:39 [0] DEBUG: Kannel bearerbox version `1.3.1'.
> System CYGWIN_NT-5.1, release 1.5.5(0.94/3/2), version 2003-09-20 16:31, m
>  i686.
> Hostname JARL, IP 192.168.0.10.
> Libxml version 20511.
> Using OpenSSL 0.9.7c 30 Sep 2003.
> Using native malloc.
> 
> 2003-10-09 23:14:39 [0] DEBUG: HTTP: Opening server at port 13000.
> 2003-10-09 23:14:40 [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
> 2003-10-09 23:14:40 [0] DEBUG: Started thread 2 (gwlib/http.c:server_threa
> 2003-10-09 23:14:40 [0] DEBUG: Started thread 3 (gw/bb_http.c:httpadmin_ru
> 2003-10-09 23:14:40 [0] DEBUG: starting smsbox connection module
> 2003-10-09 23:14:40 [0] DEBUG: Started thread 4 (gw/bb_boxc.c:smsboxc_run)
> 2003-10-09 23:14:40 [0] INFO: AT2[wavecom_1]: configuration shows modemtyp
> ecom>
> 2003-10-09 23:14:40 [0] DEBUG: AT2[wavecom_1]: Reading modem definitions f
> w/kannel.conf>
> 2003-10-09 23:14:40 [0] DEBUG: AT2[wavecom_1]: Found <1> modems in config
> 2003-10-09 23:14:40 [0] INFO: AT2[wavecom_1]: read modem definition for <W
> >
> 2003-10-09 23:14:40 [0] DEBUG: Started thread 5 (gw/smsc/smsc_at2.c:at2_de
> hread)
> 2003-10-09 23:14:40 [0] DEBUG: Started thread 6 (gw/bb_smscconn.c:sms_rout
> 2003-10-09 23:14:40 [0] INFO: ----------------------------------------
> 2003-10-09 23:14:40 [0] INFO: Kannel bearerbox II version 1.3.1 starting
> 2003-10-09 23:14:40 [5] DEBUG: AT2[wavecom_1]: device opened
> 2003-10-09 23:14:40 [0] INFO: MAIN: Start-up done, entering mainloop
> 2003-10-09 23:14:40 [0] DEBUG: AT2[wavecom_1]: start called
> 2003-10-09 23:14:40 [6] DEBUG: sms_router: list_len = 0
> 2003-10-09 23:14:40 [5] DEBUG: AT2[wavecom_1]: device opened
> 2003-10-09 23:14:40 [5] INFO: AT2[wavecom_1]: init device
> 2003-10-09 23:14:40 [5] INFO: AT2[wavecom_1]: speed set to 9600
> 2003-10-09 23:14:40 [5] DEBUG: AT2[wavecom_1]: --> AT^M
> 2003-10-09 23:14:40 [5] DEBUG: AT2[wavecom_1]: <-- AT
> 2003-10-09 23:14:40 [5] DEBUG: AT2[wavecom_1]: <-- OK
> 2003-10-09 23:14:41 [5] DEBUG: AT2[wavecom_1]: --> AT&F^M
> 2003-10-09 23:14:41 [5] DEBUG: AT2[wavecom_1]: <-- AT&F
> 2003-10-09 23:14:41 [5] DEBUG: AT2[wavecom_1]: <-- OK
> 2003-10-09 23:14:41 [5] DEBUG: AT2[wavecom_1]: --> ATE0^M
> 2003-10-09 23:14:41 [5] DEBUG: AT2[wavecom_1]: <-- ATE0
> 2003-10-09 23:14:41 [5] DEBUG: AT2[wavecom_1]: <-- OK
> 2003-10-09 23:14:41 [5] DEBUG: AT2[wavecom_1]: --> AT+IFC=2,2^M
> 2003-10-09 23:14:41 [5] DEBUG: AT2[wavecom_1]: <-- OK
> 2003-10-09 23:14:41 [5] DEBUG: AT2[wavecom_1]: --> AT+CPIN?^M
> 2003-10-09 23:14:41 [5] DEBUG: AT2[wavecom_1]: <-- +CPIN: READY
> 2003-10-09 23:14:52 [5] DEBUG: AT2[wavecom_1]: --> AT+CMGF=0^M
> 2003-10-09 23:14:52 [5] DEBUG: AT2[wavecom_1]: <-- OK
> 2003-10-09 23:14:52 [5] DEBUG: AT2[wavecom_1]: --> AT+CSMS=?^M
> 2003-10-09 23:14:52 [5] DEBUG: AT2[wavecom_1]: <-- +CSMS: (0,1)
> 2003-10-09 23:14:52 [5] DEBUG: AT2[wavecom_1]: <-- OK
> 2003-10-09 23:14:52 [5] INFO: AT2[wavecom_1]: Phase 2+ is supported
> 2003-10-09 23:14:52 [5] DEBUG: AT2[wavecom_1]: --> AT+CSMS=1^M
> 2003-10-09 23:14:52 [5] DEBUG: AT2[wavecom_1]: <-- +CSMS: 1,1,1
> 2003-10-09 23:14:52 [5] DEBUG: AT2[wavecom_1]: <-- OK
> 2003-10-09 23:14:52 [5] DEBUG: AT2[wavecom_1]: --> AT+CNMI=1,2,0,1,0^M
> 2003-10-09 23:14:52 [5] DEBUG: AT2[wavecom_1]: <-- OK
> 2003-10-09 23:14:52 [5] INFO: AT2[wavecom_1]: AT SMSC successfully opened.
> 2003-10-09 23:14:54 [4] DEBUG: Started thread 7 (gw/bb_boxc.c:function)
> 2003-10-09 23:14:54 [7] INFO: Client connected from <127.0.0.1>
> 2003-10-09 23:14:54 [7] DEBUG: Started thread 8 (gw/bb_boxc.c:boxc_sender)
> 2003-10-09 23:14:55 [7] DEBUG: boxc_receiver: unlocking sender
> 2003-10-09 23:14:55 [8] DEBUG: boxc_sender: sender unlocked
> 
> ---------------------------------------------------
> kannel.conf:
> -----------------------------------------------------
> group = core
> admin-port = 13000
> smsbox-port = 13001
> admin-password = bar
> #status-password = foo
> #admin-deny-ip = ""
> #admin-allow-ip = ""
> #log-file = "/tmp/kannel.log"
> #log-level = 0
> box-deny-ip = "*.*.*.*"
> box-allow-ip = "127.0.0.1"
> #unified-prefix = "+358,00358,0;+,00"
> #access-log = "/tmp/access.log"
> #store-file = "/tmp/kannel.store"
> #ssl-server-cert-file = "cert.pem"
> #ssl-server-key-file = "key.pem"
> #ssl-certkey-file = "mycertandprivkeyfile.pem"
> 
> #include = "kannel.conf"
> 
> # SMSC CONNECTIONS
> 
> group = smsc
> smsc = at2
> smsc-id = wavecom_1
> allowed-smsc-id = wavecom_1
> modemtype = wavecom
> device = /dev/ttyS0
> speed = 9600
> #pin = <your pin code>
> 
> group = modems
> id = wavecom
> name = Wavecom
> detect-string = "WAVECOM"
> 
> 
> # SMSBOX SETUP
> 
> group = smsbox
> bearerbox-host = localhost
> sendsms-port = 13013
> global-sender = 13013
> #sendsms-chars = "0123456789 +-"
> #log-file = "/tmp/smsbox.log"
> #log-level = 0
> #access-log = "/tmp/access.log"
> 
> 
> # SEND-SMS USERS
> 
> group = sendsms-user
> username = tester
> password = foobar
> #user-deny-ip = ""
> #user-allow-ip = ""
> 
> # SERVICES
> 
> group = sms-service
> keyword = nop
> text = "You asked nothing and I did it!"
> 
> # there should be default always
> 
> group = sms-service
> keyword = default
> text = "No service specified"
> 
> 
-- 
Venlig hilsen / Best regards,
Jacob Vennervald
System Developer
Proventum Solutions ApS
Tuborg Boulevard 12
2900 Hellerup
Denmark
Phone:  +45 36 94 41 66
Mobile: +45 61 68 58 51



Reply via email to