Hello all.

I have a problem setup of Kannel. I�m using a Ericsson T28 as SMSC for some 
testing. My problem is that I can�t get bearerbox to deliver my SMS to the 
phone. First I call sendsms with:

http://localhost:13013/cgi-bin/sendsms?username=tester&password=***&to=%2B4670577****&text=foobar&;

 From smsbox log all looks OK. (See below.)
But bearerbox fails with AT: AT+CMGS=20^M, but retries 2 times before 
quiting. Anyone had the same problem or any advice what to do?

I have no problem recieving SMS from the phone only sending them.
I am using Kannel-1.2.0. config-files are attached.

Thanks in advance. Tobias

<smsbox>
2002-08-01 16:46:23 [2] DEBUG: HTTP: Creating HTTPClient for `127.0.0.1'.
2002-08-01 16:46:23 [3] INFO: smsbox: Got HTTP request </cgi-bin/sendsms> 
from <127.0.0.1>
2002-08-01 16:46:23 [3] INFO: sendsms used by <tester>
2002-08-01 16:46:23 [3] INFO: sendsms sender:<tester:4670577****> 
(127.0.0.1) to:<+467057*****> msg:<foobar>
2002-08-01 16:46:23 [3] DEBUG: message length 6, sending 1 messages
2002-08-01 16:46:23 [3] DEBUG: Status: 202 Answer: <Sent.>
2002-08-01 16:46:23 [3] DEBUG: HTTP: Resetting HTTPClient for `127.0.0.1'.
</smsbox>


<bearerbox startup>
2002-08-01 16:39:46 [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl = 0
2002-08-01 16:39:46 [0] DEBUG: Loading include file 
`/home/tobiash/kannel/gateway-1.2.0/doc/modems.conf' (on line 57 of file 
smskannel.conf).
2002-08-01 16:39:46 [0] WARNING: DLR: using default 'internal' for storage 
type.
2002-08-01 16:39:46 [0] DEBUG: Kannel bearerbox version `1.2.0'.
System Linux, release 2.4.4-4GB, version #1 Fri May 18 14:11:12 GMT 2001, 
machine i686.
Hostname anakin.*****.**, IP ***.73.4.***.
Libxml version 20421.
Using native malloc.
</bearerbox startup>

<bearerbox>
2002-08-01 16:46:23 [8] DEBUG: boxc_receiver: sms received
2002-08-01 16:46:24 [6] DEBUG: AT2[/dev/ttyS0]: international starting with 
+ (+4670577****)
2002-08-01 16:46:24 [6] DEBUG: AT2[/dev/ttyS0]: TP-Validity-Period: 24.0 hours
2002-08-01 16:46:24 [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CMGS=20^M
2002-08-01 16:46:24 [6] DEBUG: AT2[/dev/ttyS0]: <--
2002-08-01 16:46:24 [6] DEBUG: AT2[/dev/ttyS0]: <-- ERROR
2002-08-01 16:46:24 [6] DEBUG: AT2[/dev/ttyS0]: send command status: -1
2002-08-01 16:46:24 [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CMGS=20^M
2002-08-01 16:46:24 [6] DEBUG: AT2[/dev/ttyS0]: <--
2002-08-01 16:46:24 [6] DEBUG: AT2[/dev/ttyS0]: <-- ERROR
2002-08-01 16:46:24 [6] DEBUG: AT2[/dev/ttyS0]: send command status: -1
2002-08-01 16:46:24 [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CMGS=20^M
2002-08-01 16:46:24 [6] DEBUG: AT2[/dev/ttyS0]: <--
2002-08-01 16:46:24 [6] DEBUG: AT2[/dev/ttyS0]: <-- ERROR
2002-08-01 16:46:24 [6] DEBUG: AT2[/dev/ttyS0]: send command status: -1
2002-08-01 16:46:32 [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CPMS?^M
2002-08-01 16:46:32 [6] DEBUG: AT2[/dev/ttyS0]: <-- +CPMS: 
"ME",0,15,"SM",1,20,"ME",0,15
2002-08-01 16:46:32 [6] DEBUG: AT2[/dev/ttyS0]: <-- OK
2002-08-01 16:46:36 [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CBC;+CSQ^M
2002-08-01 16:46:36 [6] DEBUG: AT2[/dev/ttyS0]: <-- +CBC: 0,91
2002-08-01 16:46:36 [6] DEBUG: AT2[/dev/ttyS0]: <-- +CSQ: 27,99
2002-08-01 16:46:36 [6] DEBUG: AT2[/dev/ttyS0]: <-- OK
2002-08-01 16:46:44 [6] DEBUG: AT2[/dev/ttyS0]: --> AT+CPMS?^M
2002-08-01 16:46:44 [6] DEBUG: AT2[/dev/ttyS0]: <-- +CPMS: 
"ME",0,15,"SM",1,20,"ME",0,15
2002-08-01 16:46:44 [6] DEBUG: AT2[/dev/ttyS0]: <-- OK

</bearerbox>







# Modems configuration
#
# Example and default values
# 
# group = modems
# id = "my-id"
# name = "my-name"
# detect-string = "MODEM"
# detect-string2 = "" [Default]
# init-string = "AT+CNMI=1,2,0,0,0" [Default]
# speed = 9600 [Default]
# enable-hwhs = "AT+IFC=2,2" [Default]
# need-sleep = false [Default]
# no-pin = false [Default]
# no-smsc = false [Default]
# sendline-sleep = 100 [Default, miliseconds]
# keepalive-cmd = "AT" [Default]
# broken = false [Default]
# message-storage = "SM"
# enable-mms = false [Default]


# If modemtype=auto, try everyone and defaults to this one
group = modems
id = generic
name = "Generic Modem"

group = modems
id = wavecom
name = Wavecom
detect-string = "WAVECOM"

group = modems
id = premicell
name = Premicell
detect-string = "PREMICEL"
no-pin = true
no-smsc = true

group = modems
id = siemens_tc35
name = "Siemens TC35"
detect-string = "SIEMENS"
detect-string2 = "TC35"
init-string = "AT+CNMI=1,2,0,0,1"
speed = 19200
enable-hwhs = "AT\\Q3"
need-sleep = true

group = modems
id = siemens_m20
name = "Siemens M20"
detect-string = "SIEMENS"
detect-string2 = "M20"
speed = 19200
enable-hwhs = "AT\\Q3"
need-sleep = true

group = modems
id = nokiaphone
name = "Nokia Phone"
detect-string = "Nokia Mobile Phone"
need-sleep = true
keepalive-cmd = "AT+CBC;+CSQ"
enable-mms = true

group = modems
id = falcom
name = "Falcom"
detect-string = "Falcom"
no-smsc = true

group = modems
id = ericsson_r520m
name = "Ericsson R520m"
detect-string = "R520m"
init-string = "AT+CNMI=3,2,0,0"


group = modems
id = ericsson_t28
name = Ericsson T28
init-string = "AT+CNMI=3,3,2"
keepalive-cmd = "AT+CBC;+CSQ"
enable-hwhs = ""
no-pin = true
message-storage = "ME"

group = modems
id = ericsson_t68
name = "Ericsson T68"
detect-string = "T68"
init-string = "AT+CNMI=3,3"
keepalive-cmd = "AT+CBC;+CSQ"
broken = true

group = modems
id = alcatel
name = "Alcatel"
detect-string = "Alcatel"
init-string = "AT+CNMI=3,2,0,0"

#
# THIS IS A SAMPLE CONFIGURATION FOR SMS KANNEL
#
# It is run like this:
#
#  1% gw/bearerbox gw/smskannel.conf
#  2% gw/smsbox gw/smskannel.conf
#  3% test/fakesmsc -p 10000 -H localhost -i 1 -m 100 "123 345 text nop"
#
# ..all 3 commands in separate shells (or screen sessions)
#
# For any modifications to this file, see Kannel User Guide 
# If that does not help, send email to [EMAIL PROTECTED]
#
#   Kalle Marjola May 2000
#   Changed for new fakesmsc version by Uoti Urpala Jan 2001
#   Added service and sendsms for HTTP SMSC by Kalle Marjola Mar 2001
#

group = core
admin-port = 13000
smsbox-port = 13001
admin-password = spybar
#status-password = foo
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1"
#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 = "+467,00467,0;+,00"      
#unified-prefix = "00358,0"
#access-log = "access.log"
#store-file = "kannel.store"
#ssl-certkey-file = "mycertandprivkeyfile.pem"


# SMSC CONNECTIONS

group = smsc
smsc = fake
smsc-id = FAKE
port = 10000
connect-allow-ip = 127.0.0.1

# SMSC CONNECTIONS FOR ERICSSON T28
group = smsc
smsc = at2
modemtype = ericsson_t28
device = /dev/ttyS0
speed = 9600
keepalive = 10
sim-buffering = true
#pin = 1915
include = /home/tobiash/kannel/gateway-1.2.0/doc/modems.conf



# SMSC CONNECTIONS FOR ERICSSON T68
#group = smsc
#smsc = at2
#modemtype = ericsson_t68
#device = /dev/ttyS0
#speed = 9600
#keepalive = 10
#sim-buffering = true
#pin = 1915
#include = /home/tobiash/kannel/gateway-1.2.0/doc/modems.conf

# SMSBOX SETUP

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


# SEND-SMS USERS

group = sendsms-user
username = tester
password = ****
user-deny-ip = "*.*.*.*"
user-allow-ip = "127.0.0.1"
#user-deny-ip = ""
#user-allow-ip = ""

# this sender is for Kannel relay testing (http_smsc)

group = sendsms-user
username = kannel
password = rL4y
user-deny-ip = "*.*.*.*"
user-allow-ip = "127.0.0.1"


# SERVICES

group = sms-service
keyword = nop
text = "You asked nothing and I did it!"

# this service is for Kannel relay testing, when this Kannel
# works as relay gateway

group = sms-service
keyword = relay
get-url = "http://localhost:15130/sms?user=kannel&pass=rL4y&from=%p&to=%P&text=%r";
max-messages = 0



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

Reply via email to