Just to get where to begin
|What would be my my configurtion for

|Kannel.conf
|smskannel.conf

use one file only say kannel.conf for all boxes.

| I don't don't have any idea how to setup kannel.conf file &
smskannel.conf
|file

read user's guide

that's from me

TM

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of suchith
Sent: Monday, February 02, 2004 8:47 AM
To: [EMAIL PROTECTED]
Subject: SMS gateway Configuration

Hello Sir,

I am new to Linux based installation for sms gateway,
I have installed Kannel sms gateway, i am able to run bearer box &
smsbox, But i have some configuration problem for sending messages, i
don't don't have any idea how to setup kannel.conf file & smskannel.conf
file, i am setting up this service in New Delhi , India

What would be my my configurtion for

Kannel.conf
smskannel.conf

These are the result which i get while i run the bearer box::::

2004-01-31 14:06:07 [0] INFO: Debug_lvl = -1, log_file = <none>, log_lvl
= 0
2004-01-31 14:06:07 [0] DEBUG: Loading include file `modems.conf' (on
line 32 of file ./kannel.conf).
2004-01-31 14:06:07 [0] WARNING: DLR: using default 'internal' for
storage type.2004-01-31 14:06:07 [0] DEBUG: Kannel bearerbox version
`1.2.1'.
System Linux, release 2.4.20-8, version #1 Thu Mar 13 17:54:28 EST 2003,
machine i686.
Hostname starith2, IP 127.0.0.1.
Libxml version 20504.
Using native malloc.

2004-01-31 14:06:07 [0] INFO: Added logfile `/tmp/kannel.log' with level
`0'.
2004-01-31 14:06:07 [0] INFO: Started access logfile `access.log'.
2004-01-31 14:06:07 [0] INFO: SSL not supported, no SSL initialization
done.
2004-01-31 14:06:07 [0] DEBUG: HTTP: Opening server at port 13000.
2004-01-31 14:06:07 [0] DEBUG: Started thread 1 (gwlib/fdset.c:poller)
2004-01-31 14:06:07 [0] DEBUG: Started thread 2
(gwlib/http.c:server_thread)
2004-01-31 14:06:07 [0] DEBUG: Started thread 3
(gw/bb_http.c:httpadmin_run)
2004-01-31 14:06:07 [0] DEBUG: starting smsbox connection module
2004-01-31 14:06:07 [0] ERROR: Missing smsbox-port variable, cannot
start smsboxes
2004-01-31 14:06:07 [0] DEBUG: Started thread 4 (gwlib/fdset.c:poller)
2004-01-31 14:06:07 [0] DEBUG: Started thread 5
(gwlib/http.c:write_request_thread)
2004-01-31 14:06:07 [5] DEBUG: HTTP: Opening connection to
`localhost:80' (fd=18).
2004-01-31 14:06:07 [5] DEBUG: HTTP: Sending request:
2004-01-31 14:06:07 [5] DEBUG: Octet string at 0x80d3338:
2004-01-31 14:06:07 [5] DEBUG:   len:  48
2004-01-31 14:06:07 [5] DEBUG:   size: 49
2004-01-31 14:06:07 [5] DEBUG:   immutable: 0
2004-01-31 14:06:07 [5] DEBUG:   data: 47 45 54 20 2f 77 68 69   GET
/whi
2004-01-31 14:06:07 [5] DEBUG:   data: 74 65 6c 69 73 74 2e 74
telist.t
2004-01-31 14:06:07 [5] DEBUG:   data: 78 74 20 48 54 54 50 2f   xt
HTTP/
2004-01-31 14:06:07 [5] DEBUG:   data: 31 2e 31 0d 0a 48 6f 73
1.1..Hos
2004-01-31 14:06:07 [5] DEBUG:   data: 74 3a 20 6c 6f 63 61 6c   t:
local
2004-01-31 14:06:07 [5] DEBUG:   data: 68 6f 73 74 0d 0a 0d 0a
host....
2004-01-31 14:06:07 [5] DEBUG: Octet string dump ends.
2004-01-31 14:06:07 [4] DEBUG: HTTP: Status line: <HTTP/1.1 404 Not
Found>
2004-01-31 14:06:07 [0] ERROR: Cannot load numhash!
2004-01-31 14:06:07 [0] INFO: AT2[/dev/ttyS0]: configuration shows
modemtype <nokiaphone>
2004-01-31 14:06:07 [0] DEBUG: AT2[/dev/ttyS0]: Reading modem
definitions from <./kannel.conf>
2004-01-31 14:06:07 [0] DEBUG: Loading include file `modems.conf' (on
line 32 of file ./kannel.conf).
2004-01-31 14:06:07 [0] DEBUG: AT2[/dev/ttyS0]: Found <10> modems in
config
2004-01-31 14:06:07 [0] INFO: AT2[/dev/ttyS0]: read modem definition for
<Nokia
Phone>
2004-01-31 14:06:07 [0] DEBUG: Started thread 6
(gw/smsc/smsc_at2.c:at2_device_thread)
2004-01-31 14:06:07 [0] DEBUG: Started thread 7
(gw/smsc/smsc_fake.c:fake_listener)
2004-01-31 14:06:07 [6] INFO: AT2[/dev/ttyS0]: trying to use speed
<9600> from modem definition
2004-01-31 14:06:07 [6] INFO: AT2[/dev/ttyS0]: opening device
2004-01-31 14:06:07 [6] DEBUG: AT2[/dev/ttyS0]: device opened
2004-01-31 14:06:07 [6] INFO: AT2[/dev/ttyS0]: speed set to 9600
2004-01-31 14:06:07 [6] DEBUG: AT2[/dev/ttyS0]: --> ^M
2004-01-31 14:06:07 [2] DEBUG: HTTP: Creating HTTPClient for
`127.0.0.1'.
2004-01-31 14:06:12 [7] INFO: Fakesmsc client connected from 127.0.0.1


When i run smsbox i get this :::


2004-01-31 15:46:33 [0] INFO: Debug_lvl = 1, log_file = <none>, log_lvl
= 0
2004-01-31 15:46:33 [0] INFO: Starting to log to file /tmp/smsbox.log 
level 0
2004-01-31 15:46:33 [0] INFO: Added logfile `/tmp/smsbox.log' with level

`0'.
2004-01-31 15:46:33 [0] INFO: Service global sender set as '13013'
2004-01-31 15:46:33 [0] INFO: Logging accesses to 'access.log'.
2004-01-31 15:46:33 [0] INFO: Started access logfile `access.log'.
2004-01-31 15:46:33 [0] INFO: Set up send sms service at port 13013
2004-01-31 15:46:33 [0] INFO: Connected to bearerbox at localhost port 
13001.
2004-01-31 15:46:57 [3] INFO: smsbox: Got HTTP request 
</cgi-bin/sendsms> from <127.0.0.1>
2004-01-31 15:46:57 [3] INFO: sendsms used by <tester>
2004-01-31 15:46:57 [3] INFO: sendsms sender:<tester:13013> (127.0.0.1) 
to:<9810491344> msg:<hello>


I am attaching My kannel.conf & smskannel

Hope that i get a positive response


Thank You

Suchith



#
# 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"
log-file = "/tmp/kannel.log"
log-level = 0
access-log = "access.log"
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"
white-list = "http://localhost/whitelist.txt";

# Smsbox related

group = smsc
smsc = at2
sim-buffering = yes
modemtype = nokiaphone
device = /dev/ttyS0
include = modems.conf

# SMSC CONNECTIONS

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

# SMSBOX SETUP

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

# Wapbox related
#wapbox-port = 13002
#udp-deny-ip = "*.*.*.*"
#udp-allow-ip = "127.0.0.1"
#wdp-interface-name = "*"


# SMSC CONNECTIONS - GLOBAL FIELDS
#group = smsc
#smsc =
#smsc-id = ID
#denied-smsc-id = "X;Y"
#allowed-smsc-id = "Z"
#preferred-smsc-id = "W"
#allowed-prefix = "040;050"
#denied-prefix = "060;070"
#alt-charset =


# SMSC Nokia CIMD2
group = smsc
smsc = cimd
host = 127.0.0.1
port = 13000
smsc-username = foo
smsc-password = bar

group = smsc
smsc = cimd2
host = 127.0.0.1
port = 13000
smsc-username = foo
smsc-password = bar
keepalive = 5


# SMSC EMI
group = smsc
smsc = emi_ip
host = 127.0.0.1
port = 13000
smsc-username = foo
smsc-password = bar
#our-port = 600 (optional bind in our end)
#receive-port = 700 (the port in which the SMSC will contact)

#group = smsc
#smsc = emi
#host = 127.0.0.1
#phone = ...
#device = /dev/tty0
#smsc-username = foo
#smsc-password = bar


# SMSC SMPP
group = smsc
smsc = smpp
host = 127.0.0.1
port = 13000
#receive-port = 700
#system-id = "param, ask from dealer.. 'same' as username"
smsc-password = foo
system-type = "param, ask from dealer"
address-range = "" (regex of received numbers)

# SMSC SEMA
#group = smsc
#smsc = sema
#device = /dev/tty0
#smsc_nua = (X121 smsc address)
#home_nua = (x121 radio pad address)
#wait_report = 0/1 (0 means false, 1 means true)


# SMSC OIS
#group = smsc
#smsc = ois
#host = 103.102.101.100
#port = 10000
#receive-port = 10000
#ois-debug-level = 0


# SMSC GSM
group = smsc
smsc = at
modemtype = wavecom | premicell | siemens | siemens-tc35 | falcom | 
nokiaphone | ericsson
device = /dev/ttyS0
pin = 2345
validityperiod = 167


# SMSC Fake
#group = smsc
#smsc = fake
#host =
#port =
#connect-allow-ip =


# SMSC HTTP
#group = smsc
#smsc = http
#system-type = kannel
#send-url =
#port = 12345
#connect-allow-ip = 127.0.0.1
#username = foo
#password = bar


# SMSBOX SETUP

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
sendsms-chars = "0123456789 +-"
global-sender = 12345
log-file = "/tmp/smsbox.log"
log-level = 0
access-log = "access.log"
white-list =
black-list =
reply-couldnotfetch =
reply-couldnotrepresent =
reply-requestfailed =
reply-emptymessage =


# SEND-SMS USERS

group = sendsms-user
username = tester
password = foobar
#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"
#name = service_kannel
#forced-smsc = ID
#default-smsc = ID
#faked-sended =
#max-messages = 1
#concatenation = 1
#split-chars =
#split-suffix =
#omit-empty =
#header =
#footer =
#allowed-prefix =
#denied-prefix =
#white-list =
#black-list =



# SMS SERVICES

group = sms-service
name = nothing
keyword = nop
aliases = "noppy;niente"
text = "You asked nothing and I did it!"
#get-url = "http://";
#post-url = "http://";
#file = "/tmp/"
#accepted-smsc = ID
#allowed-prefix =
#denied-prefix =
#catch-all = false
#send-sender = false
#strip-keyword = false
#faked-sender =
#max-messages = 1
#accept-x-kannel-headers = false
#assume-plain-text = false
#concatenation = false
#split-chars =
#split-suffix = "+"
#omit-empty = true
#header =
#footer =
#prefix =
#suffix =
#white-list =
#black-list =


# SMS SERVICE GET-URL EXAMPLE
group = sms-service
keyword = relay
get-url = 
"http://localhost/service?phone=%p&text=%r&binary=%b&smsc=$i&time=%t


# SMS SERVICE black-list
#group = sms-service
#keyword = black-list
#text = "You are not alowed to use this service, Go away!"


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

# HTTP SERVICE
group = smsc
smsc = http
system-type = kannel
smsc-username = nork
smsc-password = z0rK
port = 13015
send-url = "http://localhost:20022";



#
# 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 = bar
status-password = foo
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 = "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 = 13001
connect-allow-ip = 127.0.0.1


# SMSBOX SETUP

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


# SEND-SMS USERS

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


# there should be default always

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








Reply via email to