Hello all!

I'm quite new to Kannel, so what follows might seem a bit foolish for some
people. Please bear with me though :)

What I am using:
1. Cygwin version 2.416 under WinXP
2. iRwave device with SigmaTel USB-IrDA Dongle driver
3. Nokia 7110 V 04.88; Win sees this on COM6.

I use the following .conf file for both bearerbox and smsbox:

group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
status-password = foo
log-file = "kannel.log"
log-level = 0
box-allow-ip = "127.0.0.1"

# SMSC CONNECTIONS

group = smsc
smsc = at
modemtype = nokiaphone
device = /dev/ttyS5
speed = 115200
connect-allow-ip = 127.0.0.1


# SMSBOX SETUP

group = smsbox
bearerbox-host = localhost
sendsms-port = 13001
global-sender = 0040744654321
sendsms-chars = "0123456789 +-"
log-file = "smsbox.log"
log-level = 0
access-log = "access.log"


# SEND-SMS USERS

group = sendsms-user
username = tester
password = foobar

# SERVICES

# there should be default always

group = sms-service
keyword = default
text = "No service specified"


Output from bearerbox:

2004-03-25 11:40:57 [0] INFO: Added logfile `kannel.log' with level `0'.
2004-03-25 11:40:57 [0] INFO: SSL not supported, no SSL initialization
done.
2004-03-25 11:40:57 [0] DEBUG: HTTP: Opening server at port 13000.
2004-03-25 11:40:57 [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2004-03-25 11:40:57 [0] DEBUG: Started thread 2
(gwlib/http.c:server_thread)
2004-03-25 11:40:57 [0] DEBUG: Started thread 3
(gw/bb_http.c:httpadmin_run)
2004-03-25 11:40:57 [0] DEBUG: starting smsbox connection module
2004-03-25 11:40:57 [0] DEBUG: Started thread 4 (gw/bb_boxc.c:smsboxc_run)
2004-03-25 11:41:03 [0] DEBUG: AT: Command: AT
2004-03-25 11:41:03 [0] DEBUG: Read from modem: 'OK'
2004-03-25 11:41:03 [0] DEBUG: AT: Command: AT&F
2004-03-25 11:41:04 [0] DEBUG: Read from modem: 'OK'
2004-03-25 11:41:04 [0] DEBUG: AT: Command: AT
2004-03-25 11:41:04 [0] DEBUG: Read from modem: 'AT   OK'
2004-03-25 11:41:04 [0] DEBUG: AT: Command: ATE0
2004-03-25 11:41:04 [0] DEBUG: Read from modem: 'ATE0   OK'
2004-03-25 11:41:04 [0] DEBUG: AT: Command: ATI
2004-03-25 11:41:04 [0] DEBUG: Read from modem: 'Nokia Mobile Phones    OK'
2004-03-25 11:41:05 [0] DEBUG: AT: Command: ATI1
2004-03-25 11:41:05 [0] DEBUG: Read from modem: '449313103580003    OK'
2004-03-25 11:41:06 [0] DEBUG: AT: Command: ATI2
2004-03-25 11:41:06 [0] DEBUG: Read from modem: 'SW04.88    OK'
2004-03-25 11:41:07 [0] DEBUG: AT: Command: ATI3
2004-03-25 11:41:07 [0] DEBUG: Read from modem: 'NSE-5    OK'
2004-03-25 11:41:08 [0] DEBUG: AT: Command: ATI4
2004-03-25 11:41:08 [0] DEBUG: Read from modem: 'OK'
2004-03-25 11:41:09 [0] DEBUG: AT: Command: AT+CPIN?
2004-03-25 11:41:10 [0] DEBUG: Read from modem: '+CPIN: READY    OK'
2004-03-25 11:41:10 [0] DEBUG: AT: Command: AT+CMGF=0
2004-03-25 11:41:10 [0] DEBUG: Read from modem: 'OK'
2004-03-25 11:41:11 [0] DEBUG: AT: Command: AT+CNMI=1,2,0,0,0
2004-03-25 11:41:11 [0] DEBUG: Read from modem: 'OK'
2004-03-25 11:41:11 [0] INFO: AT SMSC successfully opened.
2004-03-25 11:41:11 [0] DEBUG: Started thread 5
(gw/smsc/smsc_wrapper.c:wrapper_receiver)
2004-03-25 11:41:11 [0] DEBUG: Started thread 6
(gw/smsc/smsc_wrapper.c:wrapper_sender)
2004-03-25 11:41:11 [7] DEBUG: sms_router: time to sleep
2004-03-25 11:41:11 [0] DEBUG: Started thread 7
(gw/bb_smscconn.c:sms_router)
2004-03-25 11:41:11 [0] INFO: ----------------------------------------
2004-03-25 11:41:11 [0] INFO: Kannel bearerbox II version 1.2.1 starting
2004-03-25 11:41:11 [0] INFO: MAIN: Start-up done, entering mainloop
2004-03-25 11:41:11 [0] DEBUG: Starting wrapper
2004-03-25 11:41:11 [7] DEBUG: sms_router: list_len = 0 

Output from smsbox:

2004-03-25 11:43:58 [0] INFO: Added logfile `smsbox.log' with level `0'.
2004-03-25 11:43:58 [0] INFO: Service global sender set as '0040744900361'
2004-03-25 11:43:58 [0] INFO: Logging accesses to 'access.log'.
2004-03-25 11:43:58 [0] INFO: Started access logfile `access.log'.
2004-03-25 11:43:58 [0] DEBUG: HTTP: Opening server at port 13001.
2004-03-25 11:43:58 [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2004-03-25 11:43:58 [0] DEBUG: Started thread 2
(gwlib/http.c:server_thread)
2004-03-25 11:43:58 [0] INFO: Set up send sms service at port 13001
2004-03-25 11:43:58 [0] DEBUG: Started thread 3
(gw/smsbox.c:sendsms_thread)
2004-03-25 11:43:58 [0] DEBUG:
----------------------------------------------
2004-03-25 11:43:58 [0] DEBUG: Kannel smsbox version 1.2.1 starting
2004-03-25 11:43:59 [0] DEBUG: Started thread 4
(gw/smsbox.c:obey_request_thread)
2004-03-25 11:43:59 [0] DEBUG: Started thread 5
(gw/smsbox.c:url_result_thread)
2004-03-25 11:43:59 [0] DEBUG: Started thread 6
(gw/smsbox.c:http_queue_thread)
2004-03-25 11:43:59 [0] INFO: Connected to bearerbox at localhost port
13001.
2004-03-25 11:43:59 [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'.
2004-03-25 11:43:59 [0] DEBUG: Started thread 7
(gw/heartbeat.c:heartbeat_thread)
2004-03-25 11:44:37 [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'.
2004-03-25 11:44:37 [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms>
from <127.0.0.1>
2004-03-25 11:44:37 [3] INFO: sendsms used by <tester>
2004-03-25 11:44:37 [3] INFO: sendsms sender:<tester:0040744654321>
(127.0.0.1) to:<0040744123456> msg:<Hello world>
2004-03-25 11:44:37 [3] DEBUG: message length 11, sending 1 messages
2004-03-25 11:44:37 [3] DEBUG: Status: 202 Answer: <Sent.>
2004-03-25 11:44:37 [3] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'. 
2004-03-25 11:46:48 [1] ERROR: Error reading from fd 24:
2004-03-25 11:46:48 [1] ERROR: System error 104: Connection reset by peer
2004-03-25 11:46:48 [1] ERROR: Error reading from fd 24:
2004-03-25 11:46:48 [1] ERROR: System error 104: Connection reset by peer
2004-03-25 11:46:48 [1] DEBUG: HTTP: Destroying HTTPClient area 0x10143d00.
2004-03-25 11:46:48 [1] DEBUG: HTTP: Destroying HTTPClient for `127.0.0.1'.


The output from smsbox came after issuing a HTTP request like this:
http://localhost:13001/cgi-bin/sendsms?username=tester&password=foobar&to=0040740123456&text=Hello+world

And now the problem. Well, although it says "Sent." the phone didn't
actually send any message!! And I can't figure out the problem. If I use
fakesms, it works, so I guess the bearerbox and smsbox are set up
correctly. Why doesn't it work with the actual phone though?

ANY help would be greatly appreciated, so don't hesitate to write back ;)

Thanks, 
Andrei.




 
---------------------------------
Castiga 1000 de dolari! 
Inscrie-te acum pe http://castiga.neogen.ro/





Reply via email to