I have actually managed to solve the problem with some more trial and error.  
It turns out that I was connecting to the wrong com port.  However, since the 
port I was connecting to was apparently active and didn't send back a response, 
the modem initialization simply hung without throwing any errors.

Once I changed to the correct port, everything initialized smoothly and I can 
successfully send sms messages.

-Lloyd

-----Original Message-----
From: Lloyd Engebretsen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, February 14, 2007 1:27 PM
To: [email protected]
Subject: Unable to send SMS with Sierra Aircard 750

I am trying to set up kannel to act as an smsc on a windows XP machine
using cygwin.  I have successfully built and installed kannel 1.4.1 and
I'm able to start both the bearerbox and smsbox without (obvious)
problems.  I am able to send sms messages from a terminal connection to
the modem so I know at least that the hardware seems to work.  However,
when I try to send a simple "Hello World" sms message through kannel I
always receive the following output from smsbox:

2007-02-14 12:41:30 [2728] [3] INFO: sendsms used by <tester>
2007-02-14 12:41:30 [2728] [3] INFO: sendsms
sender:<tester:+16781111111> (192.168.2.180) to:<+14041111111>
msg:<HelloWorld>
2007-02-14 12:41:30 [2728] [3] DEBUG: Stored UUID
7f44c352-5897-4442-863d-c01dd5f56ca6
2007-02-14 12:41:30 [2728] [3] DEBUG: message length 11, sending 1
messages
2007-02-14 12:41:30 [2728] [3] DEBUG: Status: 202 Answer: <Sent.>
2007-02-14 12:41:30 [2728] [3] DEBUG: Delayed reply - wait for bearerbox
2007-02-14 12:41:30 [2728] [0] DEBUG: Got ACK (3) of
7f44c352-5897-4442-863d-c01dd5f56ca6

And the output from my test client (just opens up a socket to the smsbox
port and sends the appropriate http request) is always:

HTTP/1.0 202 Accepted
Server: Kannel/1.4.1
Content-Length: 28
Content-type: text/html
Pragma: no-cache
Cache-Control: no-cache

3: Queued for later delivery


I have scanned through the mailing list archives for the past day or so
without finding a solution though I think I may have found the root of
the problem.  From the bearerbox output, it appears that perhaps my
modem is not correctly setting up the SMSC driver??  I would expect to
see a line like "AT2[sierra]: AT SMSC successfully opened." somewhere if
this were being configured correctly.

2007-02-14 12:41:36 [3644] [0] INFO:
----------------------------------------
2007-02-14 12:41:36 [3644] [0] INFO: Kannel bearerbox II version 1.4.1
starting
2007-02-14 12:41:36 [3644] [0] INFO: MAIN: Start-up done, entering
mainloop
2007-02-14 12:41:36 [3644] [0] DEBUG: AT2[sierra]: start called
2007-02-14 12:41:36 [3644] [7] DEBUG: sms_router: gwlist_len = 0
2007-02-14 12:41:37 [3644] [6] DEBUG: AT2[sierra]: device opened
2007-02-14 12:41:37 [3644] [6] INFO: AT2[sierra]: speed set to 115200
2007-02-14 12:41:37 [3644] [6] DEBUG: AT2[sierra]: --> ^M

I have tried many different configuration setups without any success but
I must be missing something.  Any help that you can offer is greatly
appreciated.  (Kannel configuration follows)

Thanks,

-Lloyd


Here is my current kannel configuration:

#CORE
group = core
admin-port = 13000
wapbox-port=13002
smsbox-port=13001
admin-password = bar
wdp-interface-name="*"
log-file = "/tmp/kannel.log"
log-level = 1
#unified-prefix = "+1,01,0"
#white-list="http://localhost/logs/whitelist.txt";
#black-list="http://localhost/logs/blacklist.txt";
#white-list-regex=^(.)[0-9]+$
#allowed-prefix="1"
#box-deny-ip="*.*.*.*"
box-allow-ip="*.*.*.*"
udp-allow-ip="*.*.*.*"
access-log = "/tmp/access.log"

#WAPBOX SETUP
group=wapbox
bearerbox-host=localhost
log-file="/tmp/wapbox.log"
log-level=1
syslog-level=none
access-log="/tmp/wapaccess.log"

#SMSBOX SETUP
group=smsbox
bearerbox-host=localhost
sendsms-port=13013
global-sender= 16781111111
sendsms-chars="0123456789 +-"
log-file="/tmp/smsbox.log"
log-level=0
access-log="/tmp/access.log"

#GSM SMSC
group = smsc
smsc = at
smsc-id = sierra
modemtype = auto
device =/dev/ttyS0
speed = 115200
my-number = +16781111111
sms-center = +12063130004
#log-file = "/tmp/modem.log"
#log-level = 0


#MODEM
group = modems
id = sierra_750
name = "Sierra Wireless AirCard 750"
detect-string = "Sierra Wireless Inc."
init-string = "AT+CNMI=1,2,0,1,0"
#speed = 57600
#need-sleep = true
#no-pin = true
#no-smsc = true

# SEND-SMS USERS
group = sendsms-user
username = tester
password = foobar
user-allow-ip = "*.*.*.*"
#default-sender = +16781111111

#DEFAULT SERVICE - RECEIVE MESSAGE FROM CLIENT 
group = sms-service
keyword=default
keyword-regex=^(.)+$
get-url =
"http://localhost:8080/process/ReceiveSMS?from=%p&to=%P&text=%k+%r";
accepted-smsc=sierra
max-messages=0

#SERVICE REPLY TO CLIENT
group = sms-service
keyword=www
keyword-regex=^(.)+$
get-url =
"http://localhost:13013/cgi-bin/sendsms?username=tester&password=foobar&;
from=%p&to=%P&text=%r"


-- 
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.17.35/680 - Release Date: 2/10/2007 9:15 
PM
 

-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.441 / Virus Database: 268.17.35/680 - Release Date: 2/10/2007 9:15 
PM
 

Reply via email to