Hi
I am pretty new to kannel and i have to use kannel in conjunction with
mbuni. My goal is to receive an mms or alternativly an sms and post back an
special mms.
I have the following setup
Debian Linux
GNU C Library stable release version 2.2.5
Kannel bearerbox version `1.4.0'
mbuni 0.9.7
motorola E1000 attached to the usb port.

i start the bearer box with the following configuration
#
# THIS IS A SAMPLE CONFIGURATION FOR KANNEL
#
# For any modifications to this file, see Kannel User Guide
# If that does not help, send email to [email protected]
#

group = core
admin-port = 13000
admin-password = bar
status-password = foo
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1;192.168.15.*"
smsbox-port = 13005
wapbox-port = 13004
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
wdp-interface-name = "*"
log-file = "/home/marcus/projects/mms/smsc/log/kannel.log"
log-level = 0
access-log = "/home/marcus/projects/mms/smsc/log/kannel-access.log"
include = "/home/marcus/projects/mms/smsc/etc/modems.conf"
#http-proxy-host = "127.0.0.1"
#http-proxy-port = 8080
#http-proxy-exceptions = "127.0.0.1"
#http-proxy-username = "user"
#http-proxy-password = "password"
#ssl-certkey-file = "mycertandprivkeyfile.pem"

# Smsbox related
group = smsc
smsc = at
device = /dev/ttyACM0
modemtype = motorola
speed = 9600
#pin = xxxx
smsc-id = motorola
port = 10000
connect-allow-ip = 127.0.0.1
log-file = "/home/marcus/projects/mms/smsc/log/smsc.log"
log-level = 0


# Wapbox related
group = wapbox
bearerbox-host = localhost
log-file = "/home/marcus/projects/mms/smsc/log/wapbox.log"
log-level = 0
map-url = "http://mmsc/* http://localhost:1981/*


#wap push proxy

# SMSC Nokia CIMD2
#group = smsc
#smsc = cimd2
#host =
#port =
#smsc-username =
#smsc-password =
#keepalive =
#sender-prefix =



#changed on 05.09.2005
group = smsc
smsc = at
modemtype =  motorola
device = /dev/ttyACM0
speed=9600
smsc-id = motorola
port = 10000
connect-allow-ip = 127.0.0.1
log-file = "/home/marcus/projects/mms/smsc/log/smsc.log"
log-level = 0

# SMSBOX SETUP

group = smsbox
bearerbox-host = localhost
log-file = "/tmp/smsbox.log"
log-level = 0
sendsms-port = 13003

# SEND-SMS USERS

group = sendsms-user
username = tester
password = foobar

# 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"
name = foobar
forced-smsc = motorola
default-sender=+49173573609
concatenation=true


# SMS SERVICES

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

# SMS SERVICE Default
# there should be default always
group = sms-service
keyword = default
text = "No service specified"

group = mmsbox
name = "MMSC"
hostname = localhost
host-alias = mmsc
local-mmsc-domains = vodafone.com
local-prefixes = "1"
send-queue-directory =
/home/marcus/projects/mms/mmsc/mbuni-0.9.7/log/mms_log
mm1-queue-directory =
/home/marcus/projects/mms/mmsc/mbuni-0.9.7/spool/global/mm1
mm4-queue-directory =
/home/marcus/projects/mms/mmsc/mbuni-0.9.7/spool/global/mm4
max-send-threads = 5
send-mail-prog = /usr/sbin/sendmail -f '%f' '%t'
unified-prefix = "0049; +49"
maximum-send-attempts = 50
default-message-expiry = 36000
queue-run-interval = 0.1
send-attempt-back-off = 300
sendsms-url = http://localhost:13003/cgi-bin/sendsms
sendsms-username = foo
sendsms-password = bar
#sendsms-global-sender = 198
mms-port = 1981
#allow-ip = 127.0.0.1
#email2mms-relay-prefixes = "5917;7"
ua-profile-cache-directory = /home/marcus/projects/mms/smsc/log/cache
#billing-module-parameters = "/home/marcus/projects/mms/smsc/log/cdr.log"
# billing-library = billdemo.so
#prov-server-notify-script = ~/src/mmprov/provnotify.sh
#prov-server-sub-status-script = ~/src/mmprov/rcptstatus.sh
notify-unprovisioned = yes
mms-notify-text = "You have received a multimedia message from %S"
#mm-box-host = localhost
mms-notify-unprovisioned-text = "No mms support"
mms-to-email-txt = "This is a multimedia message (HTML suppressed)"
mms-to-email-html = "multimedia message powered by X-Factory VOD service"
mms-message-too-large-txt = "mms from %S too large"

group = mmsproxy
name = "MMS proxy"
host = localhost
allowed-prefix = "1"
#denied-prefix = "034"

# OTA config (necessary for WAP push?)
group = ota-setting
location = http://<myprovider>
ipaddress = 10.55.14.75
phonenumber = +32477151927
bearer = data
calltype = isdn
connection = cont
pppsecurity = off
authentication = normal
login = wap
secret = wap

Kannel comes up in debug mode 0 with no obvious problems

i have the following modem configuration

group = modems
 id = "motorola"
 name = "motorola"
 detect-string = "MODEL=E1000"
 detect-string2 = "MOTOROLA"
 init-string = "AT+CNMI=1,2,0,0,0"
 speed = 9600
 enable-hwhs = "AT+IFC=2,2"
 need-sleep = false
 no-pin = false
 no-smsc = false
 sendline-sleep = 100
 keepalive-cmd = "AT"
 broken = false
 message-storage = "SM"
 enable-mms = true

the smsc.log always gives me the following log messages:
2005-05-27 02:20:01 [4420] [7] ERROR: AT2[motorola]: Opening failed.
Terminating
2005-05-27 02:20:01 [4420] [7] INFO: AT2[motorola]: closing device
2005-05-27 02:20:01 [4420] [7] INFO: AT2[motorola]: opening device
2005-05-27 02:20:01 [4420] [7] DEBUG: AT2[motorola]: device opened
2005-05-27 02:20:01 [4420] [7] DEBUG: AT2[motorola]: device opened
2005-05-27 02:20:01 [4420] [7] INFO: AT2[motorola]: init device
2005-05-27 02:20:01 [4420] [7] INFO: AT2[motorola]: speed set to 9600
2005-05-27 02:20:01 [4420] [7] DEBUG: AT2[motorola]: --> ATZ^M
2005-05-27 02:20:01 [4419] [6] DEBUG: AT2[motorola]: <-- ATZ
2005-05-27 02:20:01 [4419] [6] DEBUG: AT2[motorola]: <-- OK

I also started the other boxes with the same connfiguratio.

The next step i started mbuni (mobilssender, globalsender, proxy) with each
the same configuration see below.


i use also to test my config, the following command to see an mms. But this
is not a successful service invoke either.

group = core
log-file = /home/marcus/projects/mms/mmsc/mbuni-0.9.7/log/ours.log
log-level = 0

group = mmsbox
name = "My MMSC"
hostname = localhost
host-alias = mmsc
local-mmsc-domains = localhost
local-prefixes = 049;+2841;+49
send-queue-directory =
/home/marcus/projects/mms/mmsc/mbuni-0.9.7/spool/global
mm1-queue-directory =
/home/marcus/projects/mms/mmsc/mbuni-0.9.7/spool/global/mm1
mm4-queue-directory =
/home/marcus/projects/mms/mmsc/mbuni-0.9.7/spool/global/mm4
max-send-threads = 5
send-mail-prog = /usr/sbin/sendmail -f '%f' '%t'
unified-prefix = "+25634,034,34"
maximum-send-attempts = 50
default-message-expiry = 360000
queue-run-interval = 0.1
send-attempt-back-off = 300
sendsms-url = http://localhost:13013/cgi-bin/sendsms
sendsms-username = tester
sendsms-password = foobar
#sendsms-global-sender = 198
mms-port = 1981
#allow-ip = 192.168.129.11
email2mms-relay-prefixes = "049;49;25634"
ua-profile-cache-directory =
/home/marcus/projects/mms/mmsc/mbuni-0.9.7/misc/profiles
billing-module-parameters = "log/cdr.log"
# billing-library = billdemo.so
prov-server-notify-script = ~/src/mmprov/provnotify.sh
prov-server-sub-status-script = ~/src/mmprov/rcptstatus.sh
notify-unprovisioned = yes
mms-notify-text = "You have received a multimedia message from %S, go to XXX
to view it"
mm-box-host = test.ds.co.ug
mms-notify-unprovisioned-text = "This is a test"
mms-to-email-txt = "This is a multimedia message (HTML suppressed)"
mms-to-email-html = "This is a multimedia message powered by
<emph>Test</emph>


group = mmsproxy
name = "A test mms proxy"
host = test.com
allowed-prefix = "049"
denied-prefix = "034"

I Do not have a tcp connection to carriers smsc. I am trying to this running
all on my machine.



Is this possible ?
1. with a motorola phone acting a gsm smsc within kannel(it reacts correctly
to the AT commands in the configuration.)?
2. Is the possible anyway,that all neccessary components work together as i
mentioned it in the beginning ?


I could not manage so far to receive an sms from another mobile. I set the
msisdn of message centre to the one attached on the machine where kannel
resides.

best regards to all and thanks in advance for your effort and helps


Marcus

-- 
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse f�r Mail, Message, More +++

Reply via email to