Sunday, September 12, 2010

Kannel configuration file

Here is my current Kannel SMS gateway configuration file for use with a GSM modem.

--------------- kannel.conf ------------

#
# 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 users@...
#
# 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 = "127.0.0.1"
log-file = "/var/log/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"
dlr-storage = mysql


# SMSC CONNECTIONS
#
#group = smsc
#smsc = fake
#smsc-id = FAKE
#port = 10001
#connect-allow-ip = 127.0.0.1

#NOKIA 7110
#group = smsc
#smsc = at2
#smsc-id = 7110
#modemtype=nokiaphone
#device=/dev/ttyS0
#speed = 19200
#pin=1234
#include=/usr/local/etc/modems.conf

#NOKIA N70-1
group = smsc
smsc = at
smsc-id = N70
modemtype = auto
device = /dev/ttyACM0
my-number = 0725529969
connect-allow-ip = 127.0.0.1
log-level = 0
speed = 460800
pin = 6594
include = /etc/kannel/modems.conf

#AUTO_CONF
#group = smsc
#smsc = at
#modemtype = auto
#device=/dev/ttyACM0
#my-number = 254725529969
#connect-allow-ip = 127.0.0.1
#log-level = 0

# SMSBOX SETUP

group = smsbox
bearerbox-host = localhost
sendsms-port = 13013
global-sender = 13013
sendsms-chars = "0123456789 +-"
log-file = "/var/log/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"

#
# DLR with MySQL support configuration
#
# Example defining a MySQL database connection resource and
# the required table and field values.
#

group = mysql-connection
id = mydlr
host = localhost
username = root
password = "xxxxxx"
database = kannel
# max count of connections that will be opened for dbpool
# default is 1
max-connections = 1

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


#Modem Detection
group = modems
id = sonyericsson_k800
name = "Sony Ericsson K800"
detect-string = "Sony Ericsson"
detect-string2 = "K800"
init-string = "AT+CNMI=2,3"
#message-storage = "SM"
enable-mms = true

#Modem Detection
group = modems
id = nokia_6610
name = "Nokia 6610"
detect-string = "Nokia"
detect-string2 = "6610"
init-string = "AT+CNMI=1,2,0,1,0"
message-storage = "SM"
enable-mms = true





-------- modems.conf ---------------


# Modems configuration
#
# Example and default values
#
# group = modems
# id = "my-id"
# name = "my-name"
# detect-string = "MODEM"
# detect-string2 = "" [Default]
# init-string = "AT+CNMI=1,2,0,0,0" [Default]
# speed = 9600 [Default]
# enable-hwhs = "AT+IFC=2,2" [Default]
# need-sleep = false [Default]
# no-pin = false [Default]
# no-smsc = false [Default]
# sendline-sleep = 100 [Default, miliseconds]
# keepalive-cmd = "AT" [Default]
# broken = false [Default]
# message-storage = "SM"
# enable-mms = false [Default]


# If modemtype=auto, try everyone and defaults to this one
group = modems
id = generic
name = "Generic Modem"

group = modems
id = wavecom
name = Wavecom
detect-string = "WAVECOM"

group = modems
id = premicell
name = Premicell
detect-string = "PREMICEL"
no-pin = true
no-smsc = true

group = modems
id = siemens_tc35
name = "Siemens TC35"
detect-string = "SIEMENS"
detect-string2 = "TC35"
init-string = "AT+CNMI=1,2,0,1,1"
speed = 19200
enable-hwhs = "AT\\Q3"
need-sleep = true

group = modems
id = siemens_m20
name = "Siemens M20"
detect-string = "SIEMENS"
detect-string2 = "M20"
speed = 19200
enable-hwhs = "AT\\Q3"
keepalive-cmd = "AT+CBC;+CSQ"
need-sleep = true

group = modems
id = siemens_sl45
name = "Siemens SL45"
detect-string = "SIEMENS"
detect-string2 = "SL45"
init-string = "AT+CNMI=1,2,2,2,1"
keepalive-cmd = "AT+CBC;+CSQ"
speed = 19200
enable-hwhs = "AT\\Q3"
need-sleep = true
message-storage = "SM"

group = modems
id = nokiaphone
name = "Nokia Phone"
detect-string = "Nokia Mobile Phone"
need-sleep = true
keepalive-cmd = "AT+CBC;+CSQ"
enable-mms = true

group = modems
id = falcom
name = "Falcom"
detect-string = "Falcom"
#no-smsc = true

group = modems
id = ericsson_r520m
name = "Ericsson R520m"
detect-string = "R520m"
init-string = "AT+CNMI=3,2,0,0"

group = modems
id = ericsson_t68
name = "Ericsson T68"
detect-string = "T68"
init-string = "AT+CNMI=3,3"
keepalive-cmd = "AT+CBC;+CSQ"
broken = true

group = modems
id = sonyericsson_gr47
name = "Sony Ericsson GR47"
detect-string = "GR47"
message-storage = "ME"
# use this init-string for non sim-buffering
init-string = "AT+CNMI=3,2,0,0"
# use this init-string for sim-buffering
#init-string = "AT+CNMI=3,1,0,0"
reset-string = "ATZ"
broken = true

group = modems
id = alcatel
name = "Alcatel"
detect-string = "Alcatel"
init-string = "AT+CNMI=3,2,0,0"

group = modems
id = sonyericsson_T630-T628
name = "Sony Ericsson T630-T628?
init-string = "AT+CNMI=2,3,2,0,0;+CMGF=0?
keepalive-cmd = "AT+CBC;+CSQ;+CMGF=0?
broken = true

Tuesday, May 4, 2010

Blank screen loading xorg on Debian Lenny on iMac 3G

Solved via this link: http://forums.debian.net/viewtopic.php?f=7&t=36188&start=0

Wednesday, March 31, 2010

The system cannot find specified file. (0x80070002) error, Windows 7

The system cannot find specified file. (0x80070002) error, Windows 7

The solution to this problem is to reload/reinstall registry entries for your services. It seems some critical services were turned off, etc, causing a generic backup error.


Download your proper registry files here: http://www.blackviper.com/Windows_7/registry.htm

Wednesday, March 10, 2010

Zend Optimizer and PHP 5.3.x

PHP files encoded with the zend engine for php version 2.5.x need to be recompiled to reflect changes in the 5.3.x interpreter, or will require reverting back to php 5.2.x.

Sunday, February 28, 2010

APXS was not found, so mod_suphp will not be built!

APXS was not found, so mod_suphp will not be built!


The trick was running "./configure --with-apxs=/usr/bin/apxs2", then "make", "make test", "make install"

Wednesday, December 23, 2009

host multiple domain SSL certificates with one ip address

Ha! I finally think I found a way to host multiple domain SSL certificates using just 1 ip address. One glance at the website gives you a headache though. Apparently the trick is a module for apache called SNI? Whatever, as long as it works for what I'm trying to do... - http://wiki.apache.org/httpd/NameBasedSSLVHostsWithSNI

Sunday, November 22, 2009

SparesMissing event on /dev/md0:server1

If you are getting emails from mdadm, like the one below:


This is an automatically generated mail message from mdadm
running on server1

A SparesMissing event had been detected on md device /dev/md0.

Faithfully yours, etc.

P.S. The /proc/mdstat file currently contains the following:

Personalities : [raid1]
md0 : active raid1 hda1[0] hdc1[1]
117788480 blocks [2/2] [UU]

unused devices:



the solution to the problem was to edit /etc/mdadm/mdadm.conf, and change spares=1 to spares=0

Monday, November 9, 2009

Hibernation on Windows 7 and Windows Vista

If you are curious on how to enable hibernation, check out this link.

Mac OS X on Windows

Ever wondered if you can install Mac OS X and run it outside of Apple hardware? Well, you can. I've found a wonderful tutorial on line that I can verify works correctly. Try it out yourself. :) - here

Monday, October 26, 2009

Amanda Linux backup utility

I highly recommend Amanda backup utility for linux. You can find more at http://www.amanda.org

Thursday, October 15, 2009

Microsoft's Readyboost

I finally get a chance to utilize Microsoft's Readyboost feature. - http://en.wikipedia.org/wiki/Readyboost

Sunday, August 9, 2009

Windows 7

I can't wait until Windows 7 comes released, and I'm able to purchase a new laptop with it......

It'll be here before I know it. :)

Monday, April 27, 2009

Setting up Bootlog for Debian

Edit file /etc/default/bootlogd


Change

# Run bootlogd at startup ?
BOOTLOGD_ENABLE=No

to

# Run bootlogd at startup ?
BOOTLOGD_ENABLE=Yes

Tuesday, April 14, 2009

Warning: SuexecUserGroup directive requires SUEXEC wrapper.

Apache is obviously complaining about suexec in the apache error logs. I finally found the solution.


apt-get install apache2-suexec

Sunday, April 12, 2009

ntpd[3122]: kernel time sync error 0001

The solution to this problem is updating the kernel because of a newer ntpd version.

Saturday, April 4, 2009

Upgrading Debian Etch to Debian Lenny

Ensure your Etch installation is up to date (aptitude update; aptitude dist-upgrade). Edit your /etc/apt/sources.list and change all non-local mentions of "etch" or "stable" to "lenny". aptitude update; aptitude install aptitude; aptitude safe-upgrade; aptitude full-upgrade.

warning: SASL authentication failure: cannot connect to saslauthd server: Permission denied

The solution to this problem is as follows:



adduser postfix sasl

Monday, March 16, 2009

updating debian / ubuntu

To update your debian/ubuntu system, you will need to run;

apt-get update


then


apt-get upgrade -y