I am newbie in kannel. so i am wandering how to sends sms from client pass
to
opensmppbox then delivered to client..

i want to create connection like this..


SMPP client (kannel)---------->opensmppbox---------------->SMPP
client(kannel)
(dev server: 192.168.1.59)                          (dev-server:
192.168.0.29)

the following are my config files:

opensmppbox config: (1.59)

group = core
dlr-storage = internal

group = opensmppbox
opensmppbox-id = SMPPserver
opensmppbox-port = 16400
bearerbox-host = 192.168.1.59
bearerbox-port = 13401
our-system-id = mysmsbox
smpp-logins = /home/lui/jeck/gateway/smppbox/gw/smpplogins.txt
#use-smppboxid = yes
use-systemid-as-smsboxid = yes
route-to-smsc = SMPP
log-file = /tmp/smppbox.log
log-level = 1

smppkannel.conf (1.59)
#
# THIS IS A SAMPLE CONFIGURATION FOR SMS KANNEL -- SMPP 59
#


group = core
admin-port = 13400
smsbox-port = 13401
admin-password = bar
#status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
log-file = "/tmp/bearerbox.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "192.168.1.59;192.168.*.*"
#unified-prefix = "+358,00358,0;+,00"
#access-log = "/tmp/access2.log"
#store-file = "/tmp/kannel2.store"
#ssl-server-cert-file = "cert.pem"
#ssl-server-key-file = "key.pem"
#ssl-certkey-file = "mycertandprivkeyfile.pem"
#dlr-storage = mysql


# 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 = 20000
connect-allow-ip = 192.168.1.59


group=smsc
smsc=smpp
smsc-id=SMPPserver
interface-version=34
host= 192.168.1.59
port= 16400
receive-port = 16400
smsc-username = tester
smsc-password = foobar
system-type = VMA
#service-type = smpp
idle-timeout = 30
transceiver-mode = true
throughput = 50
address-range = ""
enquire-link-interval = 10
reconnect-delay = 1
keepalive = 55


group = smsbox-route
smsbox-id = mysmsbox
smsc-id = SMPPclient


# SMSBOX SETUP

group = smsbox
smsbox-id = mysmsbox
bearerbox-host = 192.168.1.59
sendsms-port = 19200
global-sender = 19200
#sendsms-chars = "0123456789 +-"
log-file = "/tmp/smsbox.log"
log-level = 0
access-log = "/tmp/access.log"



# SEND-SMS USERS

group = sendsms-user
username = tester
password = foobar
#default-smsc = SMPPserver
#user-deny-ip = ""
user-allow-ip = 192.168.0.29


# SERVICES

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

# there should be default always

group = sms-service
keyword = default
text = "No Service!"


smppkannel.conf (0.29)

#
# THIS IS A SAMPLE CONFIGURATION FOR SMS KANNEL -- SMPP CLIENT
#


group = core
admin-port = 13400
smsbox-port = 13401
admin-password = bar
#status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
log-file = "/tmp/bearerbox.log"
log-level = 0
box-deny-ip = "*.*.*.*"
box-allow-ip = "192.168.0.29"
#unified-prefix = "+358,00358,0;+,00"
#access-log = "/tmp/access2.log"
#store-file = "/tmp/kannel2.store"
#ssl-server-cert-file = "cert.pem"
#ssl-server-key-file = "key.pem"
#ssl-certkey-file = "mycertandprivkeyfile.pem"
#dlr-storage = mysql


# 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 = 192.168.1.59


group=smsc
smsc=smpp
smsc-id=SMPPclient
interface-version=34
allowed-smsc-id = "SMPPclient"
host= 192.168.1.59
port= 16400
receive-port = 16400
smsc-username = tester
smsc-password = foobar
system-type = VMA
#service-type = smpp
idle-timeout = 30
transceiver-mode = true
throughput = 50
address-range = ""
enquire-link-interval = 50
reconnect-delay = 1
keepalive = 55
connect-allow-ip = 192.168.1.59

#group = smsbox-route
#smsc-id = SMPPclient
#smsbox-id = smppclient

# SMSBOX SETUP

group = smsbox
smsbox-id = smppclient
bearerbox-host = 192.168.0.29
sendsms-port = 19200
global-sender = 19200
#sendsms-chars = "0123456789 +-"
log-file = "/tmp/smsbox.log"
log-level = 0
access-log = "/tmp/access.log"



# SEND-SMS USERS

group = sendsms-user
username = tester
password = foobar
#default-smsc = SMPP
#user-deny-ip = ""
#user-allow-ip = ""

# SERVICES

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

# there should be default always

group = sms-service
keyword = default
text = "No Service!"


-----------------------------------------------------------
i want to send sms from 1.59 SMPP pass through OPENSMPPBOX then delivered
to 0.29 SMPP using the browser :
http://192.168.1.59:19200/cgi-bin/sendsms?username=tester&password=foobar&from=12345&to=09163747451&text=hello+world

Tell me if there is something wrong to my config files.

Thanks,
JECK

Reply via email to