Hi,

I try to use iTegno 3000/WM1080A as virtual SMSC in Kannel.
Apparently it can't send SMS more than 19 chars. When I used another
application (gsmlib, http://www.pxh.de/fs/gsmlib/download/), it was
successfully send SMS at any length of chars.
I try to trace the problem using minicom, and retype manually whatever
Kannel sent (I look at the log) to modem. And surprisingly, it can send
the encoded PDU, without no problem.

This is my set:
- Redhat 8.0, heavily upgrade through apt
- Linux pandora 2.4.22, run on laptop (Dell Inspiron 500m), Centrino
1.3G and 256MB mem
- Kannel 1.3.1
- ./configure --with-malloc-native
- libxml-1.8.17-5, libxml2-2.5.11-0.fdr.0.rh80
- /etc/kannel/sms.conf
========================START OF CONFIG==============================
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"

# SMSC CONNECTIONS
group = smsc
smsc = at2
smsc-id = GSMModem
modemtype = iTegno
device = /dev/ttyUSB0
speed = 115200
sim-buffering = true
#my-number = xxxxxxxxxx
sms-center = 
validityperiod = 168

group = modems
id = iTegno
detect-string = "WAVECOM"
detect-string2 = "MODEM"
speed = 115200
need-sleep = true
message-storage = "SM"
enable-mms = true


# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 13013

# SEND-SMS USERS
group = sendsms-user
username = tester
password = foobar

# SERVICES
group = sms-service
keyword = T
text = "Wola!"

group = sms-service
keyword = 1
text = "1234567890"

group = sms-service
keyword = 1a
text = "123456789012345"

group = sms-service
keyword = 1b
text = "1234567890123456"

group = sms-service
keyword = 1c
text = "12345678901234567"

group = sms-service
keyword = 1d
text = "123456789012345678"

group = sms-service
keyword = 1e
text = "1234567890123456789"

# above sevices => work
# below services => won't work

group = sms-service
keyword = 2
text = "12345678901234567890"

group = sms-service
keyword = 3
text = "123456789012345678901234567890"

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...."
========================END OF CONFIG==================================

- Log comparison between Kannel and minicom:
=========================START OF KANNEL LOG============================
2003-11-09 11:10:00 [5] DEBUG: AT2[GSMModem]: --> AT^M
2003-11-09 11:10:00 [5] DEBUG: AT2[GSMModem]: <-- T
2003-11-09 11:10:00 [5] DEBUG: AT2[GSMModem]: <-- OK
2003-11-09 11:10:00 [5] DEBUG: AT2[GSMModem]: --> AT&F^M
2003-11-09 11:10:00 [5] DEBUG: AT2[GSMModem]: <-- AT&F
2003-11-09 11:10:00 [5] DEBUG: AT2[GSMModem]: <-- OK
2003-11-09 11:10:00 [5] DEBUG: AT2[GSMModem]: --> ATE0^M
2003-11-09 11:10:00 [5] DEBUG: AT2[GSMModem]: <-- ATE0
2003-11-09 11:10:00 [5] DEBUG: AT2[GSMModem]: <-- OK
2003-11-09 11:10:00 [5] DEBUG: AT2[GSMModem]: --> AT+IFC=2,2^M
2003-11-09 11:10:00 [5] DEBUG: AT2[GSMModem]: <-- OK
2003-11-09 11:10:00 [5] DEBUG: AT2[GSMModem]: --> AT+CPIN?^M
2003-11-09 11:10:00 [5] DEBUG: AT2[GSMModem]: <-- +CPIN: READY
2003-11-09 11:10:11 [5] DEBUG: AT2[GSMModem]: --> AT+CMGF=0^M
2003-11-09 11:10:11 [5] DEBUG: AT2[GSMModem]: <-- OK
2003-11-09 11:10:11 [5] DEBUG: AT2[GSMModem]: --> AT+CSMS=?^M
2003-11-09 11:10:11 [5] DEBUG: AT2[GSMModem]: <-- +CSMS: (0,1)
2003-11-09 11:10:11 [5] DEBUG: AT2[GSMModem]: <-- OK
2003-11-09 11:10:11 [5] INFO: AT2[GSMModem]: Phase 2+ is supported
2003-11-09 11:10:11 [5] DEBUG: AT2[GSMModem]: --> AT+CSMS=1^M
2003-11-09 11:10:11 [5] DEBUG: AT2[GSMModem]: <-- +CSMS: 1,1,1
2003-11-09 11:10:11 [5] DEBUG: AT2[GSMModem]: <-- OK
2003-11-09 11:10:11 [5] DEBUG: AT2[GSMModem]: --> AT+CNMI=1,2,0,1,0^M
2003-11-09 11:10:11 [5] DEBUG: AT2[GSMModem]: <-- OK
2003-11-09 11:10:11 [5] DEBUG: AT2[GSMModem]: --> AT+CPMS="SM"^M
2003-11-09 11:10:11 [5] DEBUG: AT2[GSMModem]: <-- +CPMS: 1,20,1,20
2003-11-09 11:10:11 [5] DEBUG: AT2[GSMModem]: <-- OK
2003-11-09 11:10:11 [5] INFO: AT2[GSMModem]: AT SMSC successfully
opened.
2003-11-09 11:10:13 [5] DEBUG: AT2[GSMModem]: --> AT+CPMS?^M
2003-11-09 11:10:13 [5] DEBUG: AT2[GSMModem]: <-- +CPMS:
"SM",1,20,"SM",1,20
2003-11-09 11:10:13 [5] DEBUG: AT2[GSMModem]: <-- OK
2003-11-09 11:10:13 [5] DEBUG: AT2[GSMModem]: 1 messages waiting in
memory
2003-11-09 11:10:13 [5] DEBUG: AT2[GSMModem]: --> AT+CMGR=1^M
2003-11-09 11:10:13 [5] DEBUG: AT2[GSMModem]: <-- +CMGR: 0,,20
2003-11-09 11:10:13 [5] DEBUG: AT2[GSMModem]: <--
07xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx133
2003-11-09 11:10:13 [5] DEBUG: AT2[GSMModem]: Numeric sender
(international) <+xxxxxxxxxxx>
2003-11-09 11:10:13 [5] DEBUG: AT2[GSMModem]: <-- OK
2003-11-09 11:10:13 [5] DEBUG: AT2[GSMModem]: --> AT+CMGD=1^M
2003-11-09 11:10:14 [5] DEBUG: AT2[GSMModem]: <-- OK
2003-11-09 11:10:14 [5] DEBUG: AT2[GSMModem]: TP-Validity-Period: 2 days
2003-11-09 11:10:14 [5] DEBUG: AT2[GSMModem]: --> AT+CMGS=41^M
2003-11-09 11:10:14 [5] DEBUG: AT2[GSMModem]: <-- >
2003-11-09 11:10:14 [5] DEBUG: AT2[GSMModem]: send command status: 1
2003-11-09 11:10:14 [5] DEBUG: AT2[GSMModem]: -->
001xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx301
2003-11-09 11:10:14 [5] DEBUG: AT2[GSMModem]: --> ^Z
2003-11-09 11:10:14 [5] DEBUG: AT2[GSMModem]: <-- >
2003-11-09 11:10:14 [5] DEBUG: AT2[GSMModem]: <-- ERROR
2003-11-09 11:10:14 [5] DEBUG: AT2[GSMModem]: send command status: -1
2003-11-09 11:10:14 [5] DEBUG: AT2[GSMModem]: --> AT+CMGS=41^M
2003-11-09 11:10:15 [5] DEBUG: AT2[GSMModem]: <-- >
2003-11-09 11:10:15 [5] DEBUG: AT2[GSMModem]: send command status: 1
2003-11-09 11:10:15 [5] DEBUG: AT2[GSMModem]: -->
001xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx301
2003-11-09 11:10:15 [5] DEBUG: AT2[GSMModem]: --> ^Z
2003-11-09 11:10:15 [5] DEBUG: AT2[GSMModem]: <-- >
2003-11-09 11:10:15 [5] DEBUG: AT2[GSMModem]: <-- ERROR
2003-11-09 11:10:15 [5] DEBUG: AT2[GSMModem]: send command status: -1
=============================END OF KANNEL LOG=========================

=============================START OF MINICOM LOG======================
ATZ
OK
AT+IFC=2,2
OK
AT+CPIN?
+CPIN: READY
AT+CMGF=0
OK
AT+CSMS=?
+CSMS: (0,1)

OK
AT+CSMS=1
+CSMS: 1,1,1

OK
AT+CNMI=1,2,0,1,0
OK
AT+CPMS="SM"
+CPMS: 0,20,0,20

OK
AT+CPMS?
+CPMS: "SM",0,20,"SM",0,20

OK
AT+CMGS=41
>
001xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx301
+CMGS: 49

OK
=============================END OF MINICOM LOG========================

-- 
cogito ergo sum

Reply via email to