This is my whole proecdure what i have done till now for enabling the kannel
to work.
I have installed and compiled gateway-1.5.0 in /home/kannel/gateway-1.5.0
directory as:
./configure
make
make install

         Then i connected my nokia 3110 classic to ubuntu pc and selected
"nokia mode".
 lsusb gives:
Bus 005 Device 003: ID 0421:005e Nokia Mobile Phones
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 045e:00cb Microsoft Corp. Basic Optical Mouse v2.0
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

          Seems phone is connected now.Then i made a kannel.conf file and
sqlbox.conf file and placed it in /kannel/kannel.conf and
/kannel/sqlbox.conf (i.e outside the gateway-1.5.0 compiled and installed
directory)....:)

kannel.conf file all coding part of bearbox,wapbox ,smsbox and sqlbox.conf
has mysql connection stuff.see content of these file below:

1)kannel.conf looks like:

#Sample configuration file for Kannel bearerbox on Debian.
# See the documentation for explanations of fields.
#

# HTTP administration is disabled by default. Make sure you set the
# password if you enable it.

group = core
admin-port = 13015
admin-password = abc
#admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1"
dlr-storage = internal
smsbox-port = 13016
#wdp-interface-name = "*"
log-file = "/var/log/kannel/bearerbox.log"
access-log = "/var/log/kannel/access.log"
#box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1"
log-level = 0

#group = wapbox
#bearerbox-host = localhost
#log-file = "/var/log/kannel/wapbox.log"
group = smsc
smsc-id = Nokia 3110c
smsc = at
modemtype = Nokia 3110c
device= /dev/ttyUSB0
my-number = +917589124248
connect-allow-ip = 127.0.0.1
#sim-buffering = true
log-level = 0

# DLR with MySQL support configuration
group = mysql-connection
id = mydlr
host = localhost
username = root
password = GndeC
database = adbook

group = dlr-db
id = mydlr
table = dlr
field-smsc = smsc
field-timestamp = ts
field-source=source
field-destination = destination
field-service = service
field-url = url
field-mask = mask
field-status = status
field-boxc-id = boxc

group = modems
id = nokia
name = "Nokia"
detect-string = "huawei"
init-string = "ATZ"
#init-string = "AT+CMEE=1"
init-string = "AT Q0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
init-string = "AT+CNMI=0,1"
#message-storage = SM
message-start = 0
#speed = 460800
#message-start = 0

group = smsbox
smsbox-id = mysmsc
bearerbox-host = localhost
#bearerbox-port = 13018
sendsms-port = 13018
global-sender = +917589124248
access-log = "/var/log/kannel/smsbox-access.log"
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
mo-recode = true

group = sendsms-user
username = gndec
password = hard2guess
concatenation= true
max-messages = 10000

group = sms-service
keyword-regex = .*
catch-all = yes
accepted-smsc = Nokia 3110c
max-messages = 3
#get-url = "http://localhost/sms.php?phone=%p&text=%a";


2)sqlbox.conf looks like:

group = sqlbox
id = sqlbox-db
smsbox-id = mysmsc
global-sender = "+917589124248"
bearerbox-host = localhost
bearerbox-port = 13016
smsbox-port = 13017
smsbox-port-ssl = false
sql-log-table = sent_sms
sql-insert-table = send_sms
log-file = "/var/log/kannel/kannel-sqlbox.log"
log-level = 0
#ssl-client-certkey-file = ""
#ssl-server-cert-file = ""
#ssl-server-key-file = ""
#ssl-trusted-ca-file = ""

# Database connection examples. Please uncomment as needed

# Example MYSQL Connection
group = mysql-connection
id = sqlbox-db
host = localhost
username = root
password = 12345
database = adbook

# Example ORACLE Connection
#group = oracle-connection
#id = sqlbox-db
#username = myuser
#password = mypass
#tnsname  = //localhost:1521/XE

# Example POSTGRESQL Connection
#group = pgsql-connection
#id = sqlbox-db
#id = sqlbox-db
#username = myuser
#password = mypass
#database = kannel
#host = localhost

# Example SDB Connection with some database URL examples
# *** Note: Uncomment only _one_ "url" line ***
#group = sdb-connection
#id = sqlbox-db
#url = mysql:host=localhost:db=kannel:uid=myuser:pwd=mypass
#url = sqlite:db=/path/to/kannel.db
#url = sqlite3:db=/path/to/kannel3.db

# Example SQLITE 2 Connection
#group = sqlite-connection
#id = sqlbox-db
#database = /path/to/kannel.db
#max-connections = 1

# Example SQLITE 3 Connection
#group = sqlite3-connection
#id = sqlbox-db
#database = /path/to/kannel.db
#max-connections = 1

                                              Thats all.Please check out and
help me if i am missing something till here.If everything is ok then i can
move ahead with wisdom help and replies from you people.After doing
everything i will made a script for it or will document it on my blog so
that other can install and enable working it in 1-2 hours.

Thanks in advance.

amritpalpathakgne.wordpress.com

Reply via email to