RE: Kannel on Ubuntu server

2007-06-12 Thread Peter Lum
 
Hi
 
I am totally new to kannel. I manage to start kannel without errors but the
log files does not even exist so i can debug.
 
I am using a Ubuntu Linux box with a serial port GSM modem.
 
This is my config file:
 
#
# 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 users@kannel.org
#

group = core
admin-port = 13000
admin-password = bar
#status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
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"

# Smsbox related
smsbox-port = 13001
smsbox-port-ssl=false
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1;192.168.1.111"
#unified-prefix = "00358,0"
#white-list = "http://127.0.0.1/white-list.txt";
#black-list = "http://127.0.0.1/black-list.txt";
store-file = "/media/sdc1/share2/kannel/kannel.store"

# 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 = at
modemtype=auto
device= /dev/ttyS0
speed=115200
smsc-id = "Hotsource_SMS_Gateway1"
validityperiod=167
keepalive=60
my-number=6590909214
sim-buffering=false


#denied-smsc-id = "X;Y"
#allowed-smsc-id = "Z"
#preferred-smsc-id = "W"
#allowed-prefix = "040;050"
#denied-prefix = "060;070"
#alt-charset = 

###
include "modems.conf"
##


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


# SMSC EMI
#group = smsc
#smsc = emi2 
#smsc = emi_ip to use the old implementation
#host =
#port =
#smsc-username =
#smsc-password =
#device = /dev/
#phone = 
#our-port =
#receive-port =
#connect-allow-ip =
#keepalive = 
#flow-control =


# SMSC SMPP
#group = smsc
#smsc = smpp
#host =
#port =
#receive-port =
#smsc-username =
#smsc-password =
#system-type =
#address-range =


# 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 = 1
#receive-port = 1
#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 = 
#connect-allow-ip = 
#username = 
#password = 


# 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://localhost/index.php?msisdn=%p&keyword=%k&content=%r";
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"

 Hope to hear from you soon.

 

Regards,

Peter



Re: Kannel on Ubuntu server

2007-06-12 Thread Allison Almeida

Peter.


Check log files permissions. Include write permissions.

Could you created the file with a user and run kannel with other.


[]s
Allison Almeida.

2007/6/12, Peter Lum <[EMAIL PROTECTED]>:



Hi

I am totally new to kannel. I manage to start kannel without errors but
the log files does not even exist so i can debug.

I am using a Ubuntu Linux box with a serial port GSM modem.

This is my config file:


#
# 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 users@kannel.org
#

group = core
admin-port = 13000
admin-password = bar
#status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
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"

# Smsbox related
smsbox-port = 13001
smsbox-port-ssl=false
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1;192.168.1.111"
#unified-prefix = "00358,0"
#white-list = "http://127.0.0.1/white-list.txt";
#black-list = "http://127.0.0.1/black-list.txt";
store-file = "/media/sdc1/share2/kannel/kannel.store"

# 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 = at
modemtype=auto
device= /dev/ttyS0
speed=115200
smsc-id = "Hotsource_SMS_Gateway1"
validityperiod=167
keepalive=60
my-number=6590909214
sim-buffering=false


#denied-smsc-id = "X;Y"
#allowed-smsc-id = "Z"
#preferred-smsc-id = "W"
#allowed-prefix = "040;050"
#denied-prefix = "060;070"
#alt-charset =

###
include "modems.conf"
##


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


# SMSC EMI
#group = smsc
#smsc = emi2
#smsc = emi_ip to use the old implementation
#host =
#port =
#smsc-username =
#smsc-password =
#device = /dev/
#phone =
#our-port =
#receive-port =
#connect-allow-ip =
#keepalive =
#flow-control =


# SMSC SMPP
#group = smsc
#smsc = smpp
#host =
#port =
#receive-port =
#smsc-username =
#smsc-password =
#system-type =
#address-range =


# 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 = 1
#receive-port = 1
#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 =
#connect-allow-ip =
#username =
#password =


# 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://localhost/index.php?msisdn=%p&keyword=%k&content=%r
"
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 alwa

RE: Kannel on Ubuntu server

2007-06-12 Thread Peter Lum
Hi
 
Now I got a error message:
Starting WAP gateway: bearerbox/usr/sbin/run_kannel_box: open:
/var/run/kannel/kannel_bearerbox.pid: No such file or directory
 wapbox/usr/sbin/run_kannel_box: open: /var/run/kannel/kannel_wapbox.pid: No
such file or directory
 smsbox/usr/sbin/run_kannel_box: open: /var/run/kannel/kannel_smsbox.pid: No
such file or directory
.
I checked and there really are no such files on /var/run/.
 
Peter

  _  

From: Allison Almeida [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 12, 2007 8:42 PM
To: [EMAIL PROTECTED]; Kannel
Subject: Re: Kannel on Ubuntu server


Peter.


Check log files permissions. Include write permissions.

Could you created the file with a user and run kannel with other.


[]s
Allison Almeida.


2007/6/12, Peter Lum < [EMAIL PROTECTED]>: 

 
Hi
 
I am totally new to kannel. I manage to start kannel without errors but the
log files does not even exist so i can debug.
 
I am using a Ubuntu Linux box with a serial port GSM modem.
 
This is my config file:
 
#
# 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 users@kannel.org
#

group = core
admin-port = 13000
admin-password = bar
#status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
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"

# Smsbox related
smsbox-port = 13001
smsbox-port-ssl=false
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1;192.168.1.111"
#unified-prefix = "00358,0"
#white-list = "http://127.0.0.1/white-list.txt";
#black-list = "http://127.0.0.1/black-list.txt";
store-file = "/media/sdc1/share2/kannel/kannel.store"

# 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 = at
modemtype=auto
device= /dev/ttyS0
speed=115200
smsc-id = "Hotsource_SMS_Gateway1"
validityperiod=167
keepalive=60
my-number=6590909214
sim-buffering=false


#denied-smsc-id = "X;Y"
#allowed-smsc-id = "Z"
#preferred-smsc-id = "W"
#allowed-prefix = "040;050"
#denied-prefix = "060;070"
#alt-charset = 

###
include "modems.conf"
##


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


# SMSC EMI
#group = smsc
#smsc = emi2 
#smsc = emi_ip to use the old implementation
#host =
#port =
#smsc-username =
#smsc-password =
#device = /dev/
#phone = 
#our-port =
#receive-port =
#connect-allow-ip =
#keepalive = 
#flow-control =


# SMSC SMPP
#group = smsc
#smsc = smpp
#host =
#port =
#receive-port =
#smsc-username =
#smsc-password =
#system-type =
#address-range =


# 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 = 1
#receive-port = 1
#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 = 
#connect-allow-ip = 
#username = 
#password = 


# 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 aske

Re: Kannel on Ubuntu server

2007-06-12 Thread Davy Chan
**>From: "Peter Lum" <[EMAIL PROTECTED]>
**>To: "'Allison Almeida'" <[EMAIL PROTECTED]>,
**>    "'Kannel'" 
**>Subject: RE: Kannel on Ubuntu server
**>Date: Wed, 13 Jun 2007 11:48:49 +0800
**>Organization: Hotsource ESD
**>Message-ID: <[EMAIL PROTECTED]>
**>In-Reply-To: <[EMAIL PROTECTED]>
**>
**>Hi
**> 
**>Now I got a error message:
**>Starting WAP gateway: bearerbox/usr/sbin/run_kannel_box: open:
**>/var/run/kannel/kannel_bearerbox.pid: No such file or directory
**> wapbox/usr/sbin/run_kannel_box: open: /var/run/kannel/kannel_wapbox.pid: No
**>such file or directory
**> smsbox/usr/sbin/run_kannel_box: open: /var/run/kannel/kannel_smsbox.pid: No
**>such file or directory
**>.
**>I checked and there really are no such files on /var/run/.
**> 
**>Peter

Well, create the /var/run/kannel directory:

sudo mkdir -p /var/run/kannel
sudo chmod 1777 /var/run/kannel

See ya...

d.c.



Re: Kannel on Ubuntu server

2007-06-13 Thread Allison Almeida

Peter.


Seems like a problem with startup script.

Look at your script for this path.


[]s
Allison Almeida.

2007/6/13, Davy Chan <[EMAIL PROTECTED]>:


**>From: "Peter Lum" <[EMAIL PROTECTED]>
**>To: "'Allison Almeida'" <[EMAIL PROTECTED]>,
**>    "'Kannel'" 
**>Subject: RE: Kannel on Ubuntu server
**>Date: Wed, 13 Jun 2007 11:48:49 +0800
**>Organization: Hotsource ESD
**>Message-ID: <[EMAIL PROTECTED]>
**>In-Reply-To: <
[EMAIL PROTECTED]>
**>
**>Hi
**>
**>Now I got a error message:
**>Starting WAP gateway: bearerbox/usr/sbin/run_kannel_box: open:
**>/var/run/kannel/kannel_bearerbox.pid: No such file or directory
**> wapbox/usr/sbin/run_kannel_box: open:
/var/run/kannel/kannel_wapbox.pid: No
**>such file or directory
**> smsbox/usr/sbin/run_kannel_box: open:
/var/run/kannel/kannel_smsbox.pid: No
**>such file or directory
**>.
**>I checked and there really are no such files on /var/run/.
**>
**>Peter

Well, create the /var/run/kannel directory:

sudo mkdir -p /var/run/kannel
sudo chmod 1777 /var/run/kannel

See ya...

d.c.



RE: Kannel on Ubuntu server

2007-06-13 Thread Peter Lum
Hi Allison
 
I created the folders /var/run/kannel and there is no errors.
When I start kannel, these are the output
 
Stopping WAP gateway: smsbox wapbox bearerbox.
Starting WAP gateway: bearerbox wapbox smsbox.

Does the info above tells me that the SMS gateway is also started too,
(smsbox)?
 
Also, there are no log files in /tmp?
 
Peter

  _  

From: Allison Almeida [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 13, 2007 10:24 PM
To: Davy Chan
Cc: Peter Lum; Kannel
Subject: Re: Kannel on Ubuntu server


Peter.


Seems like a problem with startup script. 

Look at your script for this path.


[]s
Allison Almeida.


2007/6/13, Davy Chan < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> >: 

**>From: "Peter Lum" <  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]>
**>To: "'Allison Almeida'" <[EMAIL PROTECTED]>,
**>"'Kannel'" <  <mailto:users@kannel.org> users@kannel.org>
**>Subject: RE: Kannel on Ubuntu server
**>Date: Wed, 13 Jun 2007 11:48:49 +0800
**>Organization: Hotsource ESD
**>Message-ID: <[EMAIL PROTECTED] >
**>In-Reply-To:
<[EMAIL PROTECTED]>
**>
**>Hi
**>
**>Now I got a error message: 
**>Starting WAP gateway: bearerbox/usr/sbin/run_kannel_box: open:
**>/var/run/kannel/kannel_bearerbox.pid: No such file or directory
**> wapbox/usr/sbin/run_kannel_box: open: /var/run/kannel/kannel_wapbox.pid:
No 
**>such file or directory
**> smsbox/usr/sbin/run_kannel_box: open: /var/run/kannel/kannel_smsbox.pid:
No
**>such file or directory
**>.
**>I checked and there really are no such files on /var/run/. 
**>
**>Peter

Well, create the /var/run/kannel directory:

sudo mkdir -p /var/run/kannel
sudo chmod 1777 /var/run/kannel

See ya...

d.c.







Re: Kannel on Ubuntu server

2007-06-13 Thread Davy Chan
**>Reply-To: <[EMAIL PROTECTED]>
**>From: "Peter Lum" <[EMAIL PROTECTED]>
**>To: "'Allison Almeida'" <[EMAIL PROTECTED]>,
**>"'Davy Chan'" <[EMAIL PROTECTED]>
**>Cc: "'Kannel'" 
**>Subject: RE: Kannel on Ubuntu server
**>Date: Thu, 14 Jun 2007 10:18:14 +0800
**>Organization: Hotsource ESD
**>Message-ID: <[EMAIL PROTECTED]>
**>
**>Hi Allison
**> 
**>I created the folders /var/run/kannel and there is no errors.
**>When I start kannel, these are the output
**> 
**>Stopping WAP gateway: smsbox wapbox bearerbox.
**>Starting WAP gateway: bearerbox wapbox smsbox.
**>
**>Does the info above tells me that the SMS gateway is also started too,
**>(smsbox)?

  ps uw `sudo cat /var/run/kannel/kannel_smsbox.pid`

If the above command outputs a process description then that means
the smsbox is running.

**>Also, there are no log files in /tmp?

Are you sure your config files specify that the logfiles should be
in /tmp? Look for "log-file = ..." in the config files. For access
logs, look for "access-log = ..." in the config files.

See ya...

d.c.



RE: Kannel on Ubuntu server

2007-06-13 Thread Peter Lum
Hi Davy

I realised a strange problem...

The directory /var/run/kannel/ disappears everytime I reboot my Ubuntu
server!!
Dun know why??

Peter 

-Original Message-
From: Davy Chan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 14, 2007 11:59 AM
To: Peter Lum
Cc: 'Allison Almeida'; 'Kannel'
Subject: Re: Kannel on Ubuntu server

**>Reply-To: <[EMAIL PROTECTED]>
**>From: "Peter Lum" <[EMAIL PROTECTED]>
**>To: "'Allison Almeida'" <[EMAIL PROTECTED]>,
**>        "'Davy Chan'" <[EMAIL PROTECTED]>
**>Cc: "'Kannel'" 
**>Subject: RE: Kannel on Ubuntu server
**>Date: Thu, 14 Jun 2007 10:18:14 +0800
**>Organization: Hotsource ESD
**>Message-ID: <[EMAIL PROTECTED]>
**>
**>Hi Allison
**>
**>I created the folders /var/run/kannel and there is no errors.
**>When I start kannel, these are the output **> **>Stopping WAP gateway:
smsbox wapbox bearerbox.
**>Starting WAP gateway: bearerbox wapbox smsbox.
**>
**>Does the info above tells me that the SMS gateway is also started too,
**>(smsbox)?

  ps uw `sudo cat /var/run/kannel/kannel_smsbox.pid`

If the above command outputs a process description then that means the
smsbox is running.

**>Also, there are no log files in /tmp?

Are you sure your config files specify that the logfiles should be in /tmp?
Look for "log-file = ..." in the config files. For access logs, look for
"access-log = ..." in the config files.

See ya...

d.c.





Re: Kannel on Ubuntu server

2007-06-13 Thread Davy Chan
**>Reply-To: <[EMAIL PROTECTED]>
**>From: "Peter Lum" <[EMAIL PROTECTED]>
**>To: "'Davy Chan'" <[EMAIL PROTECTED]>
**>Cc: "'Allison Almeida'" <[EMAIL PROTECTED]>,
**>"'Kannel'" 
**>Subject: RE: Kannel on Ubuntu server
**>Date: Thu, 14 Jun 2007 12:18:46 +0800
**>Organization: Hotsource ESD
**>Message-ID: <[EMAIL PROTECTED]>
**>
**>Hi Davy
**>
**>I realised a strange problem...
**>
**>The directory /var/run/kannel/ disappears everytime I reboot my Ubuntu
**>server!!
**>Dun know why??

Some Linux distributions are configured with /var/run as a RAM disk
(tmpfs). As a result, any directory created inside of /var/run
will not persist between reboots.

You will need to modify your startup script to create the /var/run/kannel
directory if it does not already exist.

Peter, don't take this wrong but--I strongly recommend you get a
book about how to admin a linux box. These questions are more basic
admin questions rather than Kannel questions.

See ya...

d.c.



RE: Kannel on Ubuntu server

2007-06-14 Thread Peter Lum
Hi Davy

Yes, I an see the pid in kannel_smsbox.pid

I checked and the log files should be in /var/log/kannel/
But there are no files...
I create blank text files of access.log, kannel.log etc and change ownership
to kannel,
Also chmod to 0666 but still there are the log entries in the files. I do
not what is wrong as there are no logs at all.

Help!!

**>
**>Hi Allison
**>
**>I created the folders /var/run/kannel and there is no errors.
**>When I start kannel, these are the output **> **>Stopping WAP gateway:
smsbox wapbox bearerbox.
**>Starting WAP gateway: bearerbox wapbox smsbox.
**>
**>Does the info above tells me that the SMS gateway is also started too,
**>(smsbox)?

  ps uw `sudo cat /var/run/kannel/kannel_smsbox.pid`

If the above command outputs a process description then that means the
smsbox is running.

**>Also, there are no log files in /tmp?

Are you sure your config files specify that the logfiles should be in /tmp?
Look for "log-file = ..." in the config files. For access logs, look for
"access-log = ..." in the config files.

See ya...

d.c.





Re: Kannel on Ubuntu server

2007-06-15 Thread Allison Almeida

Peter.


Something wrong with this:

1 -  In the kannel.conf that you send in your first email, the "log-file"
directive shows /tmp/kannel.log, don't /var/log/kannel.
2 - Send us the script that you use to start/stop the kannel. It's will
facilitate so much the debug from your problem.


[]s
Allison Almeida.


2007/6/14, Peter Lum <[EMAIL PROTECTED]>:


Hi Davy

Yes, I an see the pid in kannel_smsbox.pid

I checked and the log files should be in /var/log/kannel/
But there are no files...
I create blank text files of access.log, kannel.log etc and change
ownership
to kannel,
Also chmod to 0666 but still there are the log entries in the files. I do
not what is wrong as there are no logs at all.

Help!!

**>
**>Hi Allison
**>
**>I created the folders /var/run/kannel and there is no errors.
**>When I start kannel, these are the output **> **>Stopping WAP gateway:
smsbox wapbox bearerbox.
**>Starting WAP gateway: bearerbox wapbox smsbox.
**>
**>Does the info above tells me that the SMS gateway is also started too,
**>(smsbox)?

  ps uw `sudo cat /var/run/kannel/kannel_smsbox.pid`

If the above command outputs a process description then that means the
smsbox is running.

**>Also, there are no log files in /tmp?

Are you sure your config files specify that the logfiles should be in
/tmp?
Look for "log-file = ..." in the config files. For access logs, look for
"access-log = ..." in the config files.

See ya...

d.c.





RE: Kannel on Ubuntu server

2007-06-15 Thread Peter Lum
Hi Allison
 
This is my startup script:
#!/bin/sh
# Start/stop the Kannel boxes: One bearer box and one WAP box.
 
# This is the default init.d script for Kannel.  Its configuration is
# appropriate for a small site running Kannel on one machine.
 
# Make sure that the Kannel binaries can be found in $BOXPATH or somewhere
# else along $PATH.  run_kannel_box has to be in $BOXPATH.
 
### BEGIN INIT INFO
# Provides:  kannel
# Required-Start:$syslog
# Required-Stop: $syslog
# Should-Start:  $local_fs $network
# Should-Stop:   $local_fs $network
# Default-Start: 2 3 4 5
# Default-Stop:  0 1 6
# Short-Description: SMS and WAP gateway
# Description:   Kannel is a gateway for connecting WAP phones to the
#Internet. It also works as an SMS gateway.
### END INIT INFO
 
BOXPATH=/usr/sbin
PIDFILES=/var/kannel
CONF=/etc/kannel/kannel.conf
 
PATH=$BOXPATH:$PATH
 
# On Debian, the most likely reason for the bearerbox not being available
# is that the package is in the "removed" or "unconfigured" state, and the
# init.d script is still around because it's a conffile.  This is normal,
# so don't generate any output.
test -x $BOXPATH/bearerbox || exit 0
 
test -r /etc/default/kannel && . /etc/default/kannel
 
case "$1" in
  start)
echo -n "Starting WAP gateway:"
echo -n " bearerbox"
start-stop-daemon --start --quiet \
--pidfile $PIDFILES/kannel_bearerbox.pid \
--chuid kannel \
--exec $BOXPATH/run_kannel_box \
-- \
--pidfile $PIDFILES/kannel_bearerbox.pid \
--no-extra-args \
$BOXPATH/bearerbox -v 4 -- $CONF
sleep 1 # Wait for bearerbox
test ! -z $START_WAPBOX && (
echo -n " wapbox"
start-stop-daemon --start --quiet \
--pidfile $PIDFILES/kannel_wapbox.pid \
--chuid kannel \
--exec $BOXPATH/run_kannel_box \
-- \
--pidfile $PIDFILES/kannel_wapbox.pid \
--no-extra-args \
$BOXPATH/wapbox -v 4 -- $CONF
)
test ! -z $START_SMSBOX && (
echo -n " smsbox"
start-stop-daemon --start --quiet \
--pidfile $PIDFILES/kannel_smsbox.pid \
--chuid kannel \
--exec $BOXPATH/run_kannel_box \
-- \
--pidfile $PIDFILES/kannel_smsbox.pid \
--no-extra-args \
$BOXPATH/smsbox -v 4 -- $CONF
)
echo "."
;;
 
  stop)
echo -n "Stopping WAP gateway:"
test ! -z $START_SMSBOX && (
echo -n " smsbox"
start-stop-daemon --stop --retry 5 --quiet \
--pidfile $PIDFILES/kannel_smsbox.pid \
--exec $BOXPATH/run_kannel_box
)
test ! -z $START_WAPBOX && (
echo -n " wapbox"
start-stop-daemon --stop --retry 5 --quiet \
--pidfile $PIDFILES/kannel_wapbox.pid \
--exec $BOXPATH/run_kannel_box
)
echo -n " bearerbox"
start-stop-daemon --stop --retry 5 --quiet \
--pidfile $PIDFILES/kannel_bearerbox.pid \
--exec $BOXPATH/run_kannel_box
echo "."
;;
 
  reload)
# We don't have support for this yet.
exit 1
;;
 
  restart|force-reload)
$0 stop
sleep 1
$0 start
;;
 
  *)
echo "Usage: $0 {start|stop|restart|force-reload}"
exit 1
 
esac
 
exit 0

Thanks!
Peter
 
 

  _  

From: Allison Almeida [mailto:[EMAIL PROTECTED] 
Sent: Saturday, June 16, 2007 12:39 AM
To: [EMAIL PROTECTED]
Cc: Davy Chan; Kannel
Subject: Re: Kannel on Ubuntu server


Peter.


Something wrong with this:

1 -  In the kannel.conf that you send in your first email, the "log-file"
directive shows /tmp/kannel.log, don't /var/log/kannel. 
2 - Send us the script that you use to start/stop the kannel. It's will
facilitate so much the debug from your problem.


[]s
Allison Almeida.



2007/6/14, Peter Lum < [EMAIL PROTECTED]>: 

Hi Davy

Yes, I an see the pid in kannel_smsbox.pid 

I checked and the log files should be in /var/log/kannel/
But there are no files...
I create blank text files of access.log, kannel.log etc and change ownership
to kannel,
Also chmod to 0666 but still there are the log entries in the files. I do 
not what is wrong as there are no logs at all.

Help!!

**>
**>Hi Allison
**>
**>I created the folders /var/run/kannel and there is no errors.
**>When I start kannel, these are the output **> **>Stopping WAP gateway: 
smsbox wapbox bearerbox.
**>Starting WAP gateway: bearerbox wapbox smsbox.
**>
**>Does the info above tells me that the SMS gateway is also started too,
**>(smsbox)?

  ps uw `sudo cat /var/run/kannel/kannel_smsbox.pid` 

If the above command outputs a process description then that means the
smsbox is running.

**>Also, there are no log files in /tmp?

Are you sure your config files specify that the logfiles should be in /tmp? 
Look for "log-file = ..." in the config files. For access logs, look for
"access-log = ..." in the config files.

See ya...

d.c.








RE: Kannel on Ubuntu server

2007-06-15 Thread Peter Lum
Hi Allison
 
And this is my conf file:
 
#
# 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 users@kannel.org
#
 
group = core
admin-port = 13000
admin-password = bar
#status-password = foo
#admin-deny-ip = ""
#admin-allow-ip = ""
log-file = "/var/log/kannel/kannel.log"
log-level = 0
access-log = "/var/log/kannel/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"
smsbox-port=13001
smsbox-port-ssl=false
box-deny-ip="*.*.*.*"
box-allow-ip="127.0.0.1;192.168.1.111"
store-file="/var/log/kannel/kannel.store"
 

# Smsbox related
# SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
bearerbox-port=13001
sendsms-port = 13013
#sendsms-chars = "0123456789 +-"
global-sender = 12345
log-file = "/var/log/kannel/smsbox.log"
log-level = 0
access-log = "/var/log/kannel/smsaccess.log"
#white-list =
#black-list =
#reply-couldnotfetch =
#reply-couldnotrepresent =
#reply-requestfailed =
#reply-emptymessage =
 

# 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 = at
modemtype=auto
device= /dev/ttyS0
speed=115200
smsc-id = "Hotsource_SMS_Gateway1"
validityperiod=167
keepalive=60
my-number=6590909214
sim-buffering=false
connect-allow-ip = 127.0.0.1
 

#denied-smsc-id = "X;Y"
#allowed-smsc-id = "Z"
#preferred-smsc-id = "W"
#allowed-prefix = "040;050"
#denied-prefix = "060;070"
#alt-charset =
 
###
include "modems.conf"
##
 

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

# SMSC EMI
#group = smsc
#smsc = emi2
#smsc = emi_ip to use the old implementation
#host =
#port =
#smsc-username =
#smsc-password =
#device = /dev/
#phone =
#our-port =
#receive-port =
#connect-allow-ip =
#keepalive =
#flow-control =
 
# SMSC SMPP
#group = smsc
#smsc = smpp
#host =
#port =
#receive-port =
#smsc-username =
#smsc-password =
#system-type =
#address-range =
 

# 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 = 1
#receive-port = 1
#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 =
#connect-allow-ip =
#username =
#password =
# 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://localhost/index.php?msisdn=%p
<http://localhost/index.php?msisdn=%p&keyword=%k&content=%r>
&keyword=%k&content=%r"
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
<http://localhost/service?phone=%p&text=%r&binary=%b&smsc=$i&time=%t>
&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

Re: Kannel on Ubuntu server

2007-06-20 Thread Allison Almeida
ET-URL EXAMPLE
#group = sms-service
#keyword = relay
#get-url = "
http://localhost/service?phone=%p&text=%r&binary=%b&smsc=$i&time=%t<http://localhost/service?phone=%25p&text=%25r&binary=%25b&smsc=$i&time=%25t>


# 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"



 --
*From:* Allison Almeida [mailto:[EMAIL PROTECTED]
*Sent:* Saturday, June 16, 2007 12:39 AM
*To:* [EMAIL PROTECTED]
*Cc:* Davy Chan; Kannel
*Subject:* Re: Kannel on Ubuntu server

Peter.


Something wrong with this:

1 -  In the kannel.conf that you send in your first email, the "log-file"
directive shows /tmp/kannel.log, don't /var/log/kannel.
2 - Send us the script that you use to start/stop the kannel. It's will
facilitate so much the debug from your problem.


[]s
Allison Almeida.


2007/6/14, Peter Lum < [EMAIL PROTECTED]>:
>
> Hi Davy
>
> Yes, I an see the pid in kannel_smsbox.pid
>
> I checked and the log files should be in /var/log/kannel/
> But there are no files...
> I create blank text files of access.log, kannel.log etc and change
> ownership
> to kannel,
> Also chmod to 0666 but still there are the log entries in the files. I
> do
> not what is wrong as there are no logs at all.
>
> Help!!
>
> **>
> **>Hi Allison
> **>
> **>I created the folders /var/run/kannel and there is no errors.
> **>When I start kannel, these are the output **> **>Stopping WAP
> gateway:
> smsbox wapbox bearerbox.
> **>Starting WAP gateway: bearerbox wapbox smsbox.
> **>
> **>Does the info above tells me that the SMS gateway is also started
> too,
> **>(smsbox)?
>
>   ps uw `sudo cat /var/run/kannel/kannel_smsbox.pid`
>
> If the above command outputs a process description then that means the
> smsbox is running.
>
> **>Also, there are no log files in /tmp?
>
> Are you sure your config files specify that the logfiles should be in
> /tmp?
> Look for "log-file = ..." in the config files. For access logs, look for
> "access-log = ..." in the config files.
>
> See ya...
>
> d.c.
>
>
>