Hi all;

I was able to get the SMSBOX to not crash when sending a message by putting the smsc stuff in kannel.conf. I noticed in other maisl others did not all need to do this. But it helped part of the problem for me. However now, while nothing crashes the SMS from HTTP are not sent and still any messages incoming are received int he phone rather than kannel. Below is the bearerbox output.

The only thing that looks weird to me is "AT2[/dev/ttyS0]: --> AT^M" because modems.conf shows "AT+CNMI=3,2,0,0"

*** start of bearerbox output ***
2003-03-16 16:17:22 [0] INFO: AT2[/dev/ttyS0]: configuration shows modemtype <ericsson_r520m>
2003-03-16 16:17:22 [0] DEBUG: AT2[/dev/ttyS0]: Reading modem definitions from <kannel.conf>
2003-03-16 16:17:22 [0] DEBUG: Loading include file `modems.conf' (on line 35 of file kannel.conf).
2003-03-16 16:17:22 [0] DEBUG: AT2[/dev/ttyS0]: Found <10> modems in config
2003-03-16 16:17:22 [0] INFO: AT2[/dev/ttyS0]: read modem definition for <Ericsson R520m>
2003-03-16 16:17:22 [0] DEBUG: Started thread 5 (gw/smsc/smsc_at2.c:at2_device_thread)
2003-03-16 16:17:22 [5] INFO: AT2[/dev/ttyS0]: opening device
2003-03-16 16:17:22 [5] DEBUG: AT2[/dev/ttyS0]: device opened
2003-03-16 16:17:22 [5] DEBUG: AT2[/dev/ttyS0]: device opened
2003-03-16 16:17:22 [5] INFO: AT2[/dev/ttyS0]: init device
2003-03-16 16:17:22 [5] INFO: AT2[/dev/ttyS0]: speed set to 9600
2003-03-16 16:17:22 [5] DEBUG: AT2[/dev/ttyS0]: --> AT^M


**** and here is when SMSBOX connects ***
2003-03-16 16:17:27 [12] INFO: Client connected from <127.0.0.1>
2003-03-16 16:17:27 [12] DEBUG: Started thread 13 (gw/bb_boxc.c:boxc_sender)
2003-03-16 16:17:27 [12] DEBUG: boxc_receiver: unlocking sender
2003-03-16 16:17:27 [13] DEBUG: boxc_sender: sender unlocked

*** and here is the output when I send SMS ***
2003-03-16 16:17:34 [12] DEBUG: boxc_receiver: sms received
2003-03-16 16:17:34 [6] DEBUG: sms_router: time to sleep

Thanks for any help you can provide.

TimS
group = core
admin-port = 13000
admin-password = spybar
status-password = foo
#admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1"
smsbox-port = 13001
#wapbox-port = 13004
#box-deny-ip = "*.*.*.*"
box-allow-ip = "*.*.*.*"
#box-allow-ip = "127.0.0.1"
wdp-interface-name = "*"
log-file = "kannel.log"
log-level = 1
access-log = "kannel.access"
unified-prefix = "+20,0020,0;+,00"
#white-list = "http://localhost/whitelist.txt";
#store-file = "message.store"

group = smsbox
bearerbox-host = localhost

#group = wapbox
#bearerbox-host = localhost

group = smsc
smsc = at2
#smsc-id = ericsson_r520m
modemtype = ericsson_r520m
device = /dev/ttyS0
speed = 9600
pin = 1515
sms-center = +20105996500
#sim-buffering = true
include = "modems.conf"
# 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 = "sms_kannel.log"
log-level = 1
#box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
#unified-prefix = "+20,0020,0;+,00"      
#access-log = "access.log"
#store-file = "kannel.store"
#ssl-certkey-file = "mycertandprivkeyfile.pem"


# SMSC CONNECTIONS FOR ERICSSON T28
group = smsc
smsc = at2
modemtype = ericsson_r520m
device = /dev/ttyS0
speed = 9600
keepalive = 10
#sim-buffering = true
#pin = 1515
include = modems.conf

# SMSBOX SETUP

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


# SEND-SMS USERS

group = sendsms-user
username = test
password = test
#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