Hi,i succeeded in using Kannel in order to send a sms from a mobile phone to 
Kannel and store it inside a database.

Now i wanted to send a mms to Mbuni and then store it inside a database,so i 
tried to use Mbuni combining it with Kannel (following the provided 
documentation and related mailing list of course)
but i can't link Kannel with Mbuni (i mean these 2 can't communicate).

I'll paste there (1) my Kannel and Mbuni configuration files (2) Log files in 
order to help you.
[Because it may be a little long,i'm gonna create 2 posts].

Thank you in advance for your help =)
-------------
 KANNEL

-----------
(A)(core.conf)

#include = /etc/kannel/dlr-mysql.conf
include = /etc/kannel/modems.conf

group = core
admin-port = 13000
smsbox-port = 13001
admin-password = bar
#status-password = foo
#admin-deny-ip = "*.*.*.*"
admin-allow-ip = ""
log-file = "/etc/kannel/log/kannel.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
#unified-prefix = "+358,00358,0;+,00"
#access-log = "/tmp/access.log"
#store-file = "kannel.store"
#ssl-server-cert-file = "cert.pem"
#ssl-server-key-file = "key.pem"
#ssl-certkey-file = "mycertandprivkeyfile.pem"
#dlr-storage = mysql
wapbox-port = 13002
wdp-interface-name = "*"


#---------------------------------------------
# WAPBOX GROUP

# La sua presenza รจ necessaria per via della variabile wapbox-port presente nel 
gruppo core

group = wapbox  
bearerbox-host = localhost
#syslog = none
log-file = "/var/tmp/wapbox.log"
syslog-level = none
access-log = "/var/tmp/wapaccess.log"
timer-freq = 10
map-url = "http://mmsc/* http://localhost:1982/*";




#---------------------------------------------
# SMSC CONNECTIONS
#
# SMSC connections are created in bearerbox and they handle SMSC specific
# protocol and message relying. You need these to actually receive and send
# messages to handset, but can use GSM modems as virtual SMSCs
#
#
# This is a fake smsc connection, _only_ used to test the system and services.
# It really cannot relay messages to actual handsets!
#
#group = smsc
#smsc = fake
#smsc-id = FAKE
#port = 10000
#connect-allow-ip = 127.0.0.1
#
#---------------------------------------------
# SMSBOX SETUP
#
# Smsbox(es) do higher-level SMS handling after they have been received from
# SMS centers by bearerbox, or before they are given to bearerbox for delivery

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

#---------------------------------------------
# SEND-SMS USERS
#
# These users are used when Kannel smsbox sendsms interface is used to
# send PUSH sms messages, i.e. calling URL like
# http://kannel.machine:13013/cgi-bin/sendsms?username=tester&password=foobar...
# 
http://127.0.0.1:13013/cgi-bin/sendsms?username=tester&password=foobar&to=3921776176&text=ciccio


group = sendsms-user
username = diego
password = diego
#user-deny-ip = "*.*.*.*"
#user-allow-ip = "192.168.*.*"
#concatenation = true
#max-messages = 3


#---------------------------------------------
# SERVICES
#
# These are 'responses' to sms PULL messages, i.e. messages arriving from
# handsets. The response is based on message content. Only one sms-service is
# applied, using the first one to match.

group = sms-service
keyword =
catch-all = true
max-messages=0
#omit-empty = true
concatenation = true
get-url = "http://localhost/smsd.php?to=%p&text=%a&from=%P&sent=%t&smsc=%i";

(B)(kannel.conf)

include = /etc/kannel/core.conf

#Modem erco&gener
group = smsc
smsc=at
smsc-id = 3453361361
#smsc-id = 3454900989
modemtype = auto
speed = 9600
device=/dev/ttyS0
#my-number=347335914291
#log-level=0
#log-file = "/etc/kannel/log/modemerco.log" 
sim-buffering = true
-----------------------------
MBUNI
-----------------------------
(A)(mmsbox conf)

group = core
log-file = /var/log/mmsbox.log
access-log = /var/log/mmsbox-access.log
log-level = 0

group = mbuni
storage-directory = /var/spool/mbuni
max-send-threads = 5
maximum-send-attempts = 50
default-message-expiry = 360000
queue-run-interval = 5
send-attempt-back-off = 300
sendmms-port = 10001

group = mmsc
id = local
mmsc-url = http://mbuni:t...@localhost:1982/soap
incoming-username = user
incoming-password = pass
incoming-port = 12345
type = soap

group = mms-service
name = me
post-url = http://localhost/test-mbuni.php
catch-all = true
http-post-parameters = fx=true&images[]=%i&text[]=%t&skip=1
accept-x-mbuni-headers = true
pass-thro-headers = X-NOKIA-MMSC-Charging,X-NOKIA-MMSC-Charged-Party
keyword = test
omit-empty = no
suppress-reply = true
service-code = regular

group = mms-service
name = fullmessage
get-url = http://localhost/images/apache_pb.gif
# http-post-parameters = fx=true&image=%i&text=%t
accept-x-mbuni-headers = true
keyword = thixs

group = send-mms-user
username = tester
password = foobar
faked-sender = 100
--------------------
(B)(mmsc conf)

group = core
log-file = /var/log/mbuni-mmsc.log
access-log = /var/log/mmsc-access.log
log-level = 0

group = mbuni
name = "My MMSC"
hostname = kalilab.it
host-alias = mmsc
local-prefixes = 039;+39
storage-directory = /tmp/spool
max-send-threads = 5
send-mail-prog = /usr/sbin/sendmail -f '%f' '%t'
unified-prefix = "039,39"
maximum-send-attempts = 50
default-message-expiry = 360000
queue-run-interval = 5
send-attempt-back-off = 300
sendsms-url = http://localhost:13000/cgi-bin/sendsms
sendsms-username = tester
sendsms-password = foobar
mms-port = 1981
mm7-port = 1982
#allow-ip = 192.168.129.11
email2mms-relay-hosts = "mbuni.org;dsmagic.com;ds.co.ug"
billing-module-parameters = "/tmp/log/cdr.log"
# billing-library = billdemo.so
#prov-server-notify-script = ~/src/mmprov/provnotify.sh 
#prov-server-sub-status-script = ~/src/mmprov/rcptstatus.sh
content-adaptation = true
notify-unprovisioned = yes
mms-notify-text = "You have received a multimedia message from %S, go to XXX to 
view it"
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>Digital 
Solutions</emph>"
mms-to-email-default-subject = "This is a multimedia message"
mms-message-too-large-txt = "You have received a multimedia message from %S 
that 
is too large for your phone. Go to xxx to view it"
strip-prefixes = "1;2"

group = mms-vasp
vasp-id = newscorp
type = soap
short-code = 111,1234
vasp-username = mbuni
vasp-password = test
vasp-url = http://user:p...@localhost:12345/

group = mmsproxy
name = "A test mms proxy"
host = vodafone.it
allowed-prefix = "+39"
denied-prefix = "*"
-----------------------


      

Reply via email to