I'm using iTegno WM1080A+ GPRS modem. I built kannel from source, version is 1.3.1.
The configuration file is:
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1;192.168.0.*"
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1;192.168.0.*"
log-file = "/tmp/kannel.log"
log-level = 0
access-log = "/tmp/kannel.access"
unified-prefix = "0,86;0,+86"
group = smsc
smsc = at2
smsc-id = GSMModem
modemtype = auto
device = /dev/ttyUSB0
#device = /dev/modem
speed = 115200
sim-buffering = true
my-number = 86138xxxxxxxx
sms-center = 8613800210500
validityperiod = 168
pin = 1234
group = modems
id = iTegno
detect-string = "WAVECOM"
detect-string2 = "MODEM"
speed = 115200
need-sleep = true
group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = "86138xxxxxxxx"
sendsms-chars = "0123456789 +-"
access-log = "/tmp/kannel.access"
log-file = "/tmp/smsbox.log"
log-level = 0
group = sendsms-user
username = foo
password = bar
user-deny-ip = "*.*.*.*"
user-allow-ip = "192.168.0.*;127.0.0.1"
max-messages = 3
concatenation = true
group = sms-service
keyword = default
text = "No service specified"
group = sms-service
keyword = www
get-url = "http://%S";;
group = sms-service
keyword = complex
get-url = "http://host/service?sender=%p&text=%r";;
accept-x-kannel-headers = true
max-messages = 3
I started the kannel from the command line.
bearerbox -v 1 kannel.conf &
smsbox -v 1 kannel.conf &
The log information is:
2004-03-01 15:05:16 [0] INFO: Kannel bearerbox II version 1.3.1 starting
2004-03-01 15:05:16 [5] DEBUG: AT2[GSMModem]: detecting modem type
2004-03-01 15:05:16 [5] INFO: AT2[GSMModem]: opening device
2004-03-01 15:05:16 [0] INFO: MAIN: Start-up done, entering mainloop
2004-03-01 15:05:16 [0] DEBUG: AT2[GSMModem]: start called
2004-03-01 15:05:16 [6] DEBUG: sms_router: time to sleep
2004-03-01 15:05:16 [6] DEBUG: sms_router: list_len = 0
2004-03-01 15:05:16 [5] DEBUG: AT2[GSMModem]: device opened
2004-03-01 15:05:16 [5] INFO: AT2[GSMModem]: speed set to 115200
2004-03-01 15:05:16 [5] DEBUG: AT2[GSMModem]: --> ^M
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: --> AT^M
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: <-- OK
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: --> AT&F^M
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: <-- OK
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: --> ATE0^M
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: <-- OK
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: --> ATI^M
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: <-- WAVECOM MODEM
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: <-- MULTIBAND 900E 1800
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: <-- OK
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: found string <WAVECOM> plus <MODEM>,
using modem definition <iTegno>
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: --> AT+CSMS=?^M
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: <-- +CSMS: (0,1)
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: <-- OK
2004-03-01 15:05:18 [5] INFO: AT2[GSMModem]: Phase 2+ is supported
2004-03-01 15:05:18 [5] INFO: AT2[GSMModem]: closing device
2004-03-01 15:05:18 [5] INFO: AT2[GSMModem]: opening device
2004-03-01 15:05:18 [5] DEBUG: AT2[GSMModem]: device opened
2004-03-01 15:05:19 [5] DEBUG: AT2[GSMModem]: device opened
2004-03-01 15:05:19 [5] INFO: AT2[GSMModem]: init device
2004-03-01 15:05:19 [5] INFO: AT2[GSMModem]: speed set to 115200
2004-03-01 15:05:19 [5] DEBUG: AT2[GSMModem]: --> AT^M
2004-03-01 15:05:19 [5] DEBUG: AT2[GSMModem]: <-- OK
2004-03-01 15:05:19 [5] DEBUG: AT2[GSMModem]: --> AT&F^M
2004-03-01 15:05:19 [5] DEBUG: AT2[GSMModem]: <-- OK
2004-03-01 15:05:19 [5] DEBUG: AT2[GSMModem]: --> ATE0^M
2004-03-01 15:05:20 [5] DEBUG: AT2[GSMModem]: <-- OK
2004-03-01 15:05:20 [5] DEBUG: AT2[GSMModem]: --> AT+IFC=2,2^M
2004-03-01 15:05:20 [5] DEBUG: AT2[GSMModem]: <-- OK
2004-03-01 15:05:20 [5] DEBUG: AT2[GSMModem]: --> AT+CPIN?^M
2004-03-01 15:05:20 [5] DEBUG: AT2[GSMModem]: <-- +CPIN: READY
2004-03-01 15:05:27 [4] DEBUG: Started thread 7 (gw/bb_boxc.c:function)
2004-03-01 15:05:27 [7] INFO: Client connected from <127.0.0.1>
2004-03-01 15:05:27 [7] DEBUG: Started thread 8 (gw/bb_boxc.c:boxc_sender)
2004-03-01 15:05:27 [7] DEBUG: boxc_receiver: unlocking sender
2004-03-01 15:05:27 [8] DEBUG: boxc_sender: sender unlocked
2004-03-01 15:05:31 [5] DEBUG: AT2[GSMModem]: --> AT+CSCA="8613800210500"^M
2004-03-01 15:05:31 [5] DEBUG: AT2[GSMModem]: <-- OK
2004-03-01 15:05:31 [5] DEBUG: AT2[GSMModem]: --> AT+CMGF=0^M
2004-03-01 15:05:31 [5] DEBUG: AT2[GSMModem]: <-- OK
2004-03-01 15:05:31 [5] DEBUG: AT2[GSMModem]: --> AT+CSMS=?^M
2004-03-01 15:05:31 [5] DEBUG: AT2[GSMModem]: <-- +CSMS: (0,1)
2004-03-01 15:05:31 [5] DEBUG: AT2[GSMModem]: <-- OK
2004-03-01 15:05:31 [5] INFO: AT2[GSMModem]: Phase 2+ is supported
2004-03-01 15:05:31 [5] DEBUG: AT2[GSMModem]: --> AT+CSMS=1^M
2004-03-01 15:05:31 [5] DEBUG: AT2[GSMModem]: <-- +CSMS: 1,1,1
2004-03-01 15:05:31 [5] DEBUG: AT2[GSMModem]: <-- OK
2004-03-01 15:05:31 [5] DEBUG: AT2[GSMModem]: --> AT+CNMI=1,2,0,1,0^M
2004-03-01 15:05:31 [5] DEBUG: AT2[GSMModem]: <-- OK
2004-03-01 15:05:31 [5] INFO: AT2[GSMModem]: AT SMSC successfully opened.
2004-03-01 15:05:33 [5] DEBUG: AT2[GSMModem]: --> AT+CPMS?^M
2004-03-01 15:05:33 [5] DEBUG: AT2[GSMModem]: <-- +CPMS: "SM",0,25,"SM",0,25
2004-03-01 15:05:33 [5] DEBUG: AT2[GSMModem]: <-- OK
I got the following information when I try to send an sms through web browser using
following command
http://192.168.0.201:13013/cgi-bin/s...xx&text=heheaa
2004-03-01 15:05:42 [7] DEBUG: boxc_receiver: sms received
2004-03-01 15:05:43 [5] DEBUG: AT2[GSMModem]: TP-Validity-Period: 2 days
2004-03-01 15:05:43 [5] DEBUG: AT2[GSMModem]: --> AT+CMGS=20^M
2004-03-01 15:05:43 [5] DEBUG: AT2[GSMModem]: <--
2004-03-01 15:05:43 [5] DEBUG: AT2[GSMModem]: <-- >
2004-03-01 15:05:43 [5] DEBUG: AT2[GSMModem]: send command status: 1
2004-03-01 15:05:43 [5] DEBUG: AT2[GSMModem]: -->
0011000C811083613601620000A806E832BA1C0E03
2004-03-01 15:05:43 [5] DEBUG: AT2[GSMModem]: --> ^Z
2004-03-01 15:05:43 [5] DEBUG: AT2[GSMModem]: <-- ERROR 2004-03-01 15:05:43 [5] DEBUG:
AT2[GSMModem]: send command status: -1
2004-02-25 17:34:39 [2] DEBUG: HTTP: Creating HTTPClient for `192.168.0.17'.
2004-02-25 17:34:39 [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> from
<192.168.0.17>
2004-02-25 17:34:39 [3] INFO: sendsms used by <foo>
2004-02-25 17:34:39 [3] INFO: sendsms sender:<foo:13013> (192.168.0.17)
to:<138xxxxxxxx> msg:<heheaa>
2004-02-25 17:34:39 [3] DEBUG: message length 6, sending 1 messages
2004-02-25 17:34:39 [3] DEBUG: Status: 202 Answer: <Sent.>
2004-02-25 17:34:39 [3] DEBUG: HTTP: Resetting HTTPClient for `192.168.0.17'.
2004-02-25 17:35:39 [1] ERROR: Error reading from fd 23:
2004-02-25 17:35:39 [1] ERROR: System error 104: Connection reset by peer
2004-02-25 17:35:39 [1] DEBUG: HTTP: Destroying HTTPClient area 0x80a2c70.
2004-02-25 17:35:39 [1] DEBUG: HTTP: Destroying HTTPClient for `192.168.0.17'.