diff options
author | Marco A Rojas | 2018-05-03 01:12:50 -0500 |
---|---|---|
committer | Marco A Rojas | 2018-05-03 01:12:50 -0500 |
commit | 775fc761397b279e8d628d13b29d7b8fd4e89462 (patch) | |
tree | 141b6c4d7a6f8470044955e154d617ddd724d4d7 | |
download | aur-775fc761397b279e8d628d13b29d7b8fd4e89462.tar.gz |
First commit, contains all modules except docs
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | PKGBUILD | 39 | ||||
-rw-r--r-- | default | 2 | ||||
-rw-r--r-- | kannel.conf | 125 | ||||
-rw-r--r-- | modems.conf | 134 |
5 files changed, 322 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..ac96c34fe710 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = kannel + pkgdesc = Kannel is a compact and very powerful open source WAP and SMS gateway + pkgver = 1.4.4 + pkgrel = 1 + url = https://www.kannel.org/ + arch = any + groups = base-devel + license = custom + depends = bison2 + depends = libxml2 + conflicts = bison + source = http://www.kannel.org/download/1.4.4/gateway-1.4.4.tar.gz + source = kannel.conf + source = modems.conf + source = default + md5sums = 0048dab467931eb8472c31d5e1257401 + md5sums = 7090740f6f82d8973bf07ba538a3dd80 + md5sums = 24ae1183521fe871e39f499eed27b93a + md5sums = 7575cd21bcd397bcc02a01b57fb4d429 + +pkgname = kannel + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3159d5f15805 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# $Id$ +# Maintainer: Marco A Rojas <marco.rojas@zentek.com.mx> + +pkgname=kannel +PACKAGE=gateway +pkgver=1.4.4 +pkgrel=1 +pkgdesc="Kannel is a compact and very powerful open source WAP and SMS gateway" +arch=('any') +license=('custom') +url="https://www.kannel.org/" +depends=('bison2' 'libxml2') +conflicts=('bison') +groups=('base-devel') +source=(http://www.kannel.org/download/${pkgver}/${PACKAGE}-${pkgver}.tar.gz kannel.conf modems.conf default) +md5sums=('0048dab467931eb8472c31d5e1257401' '7090740f6f82d8973bf07ba538a3dd80' '24ae1183521fe871e39f499eed27b93a' '7575cd21bcd397bcc02a01b57fb4d429') + +build() { + cd ${srcdir}/${PACKAGE}-${pkgver} + ./configure --prefix=/usr/local --mandir=/usr/local/man --enable-start-stop-daemon + make all +} + +check() { + cd ${srcdir}/${PACKAGE}-${pkgver} + make check +} + +package() { + cd ${srcdir} + install -Dm644 kannel.conf "$pkgdir/etc/kannel/kannel.conf" + install -Dm644 modems.conf "$pkgdir/etc/kannel/modems.conf" + install -Dm644 default "$pkgdir/etc/default/kannel" + + cd ${PACKAGE}-${pkgver} + make DESTDIR=${pkgdir} install install-test install-checks install-contrib + + install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/default b/default new file mode 100644 index 000000000000..87259408a278 --- /dev/null +++ b/default @@ -0,0 +1,2 @@ +START_WAPBOX=1 +START_SMSBOX=1 diff --git a/kannel.conf b/kannel.conf new file mode 100644 index 000000000000..57d325179f75 --- /dev/null +++ b/kannel.conf @@ -0,0 +1,125 @@ +# CONFIGURATION FOR USING SMS KANNEL WITH RAPIDSMS +# +# For any modifications to this file, see Kannel User Guide +# If that does not help, see Kannel web page (http://www.kannel.org) and +# various online help and mailing list archives +# +# Notes on those who base their configuration on this: +# 1) check security issues! (allowed IPs, passwords and ports) +# 2) groups cannot have empty rows inside them! +# 3) read the user guide + +include = "/etc/kannel/modems.conf" + +#--------------------------------------------- +# CORE +# +# There is only one core group and it sets all basic settings +# of the bearerbox (and system). You should take extra notes on +# configuration variables like 'store-file' (or 'store-dir'), +# 'admin-allow-ip' and 'access.log' + +group = core +admin-port = 13000 +smsbox-port = 13001 +admin-password = password +status-password = password +admin-deny-ip = "*.*.*.*" +admin-allow-ip = "127.0.0.1" +box-deny-ip = "*.*.*.*" +box-allow-ip = "127.0.0.1" +log-file = "/var/log/kannel/bearerbox.log" +log-level = 0 + +#--------------------------------------------- +# SMSC CONNECTIONS +# +# SMSC connections are created in bearerbox and they handle SMSC specific +# protocol and message relying. You need these to actually receive and send +# messages to handset, but can use GSM modems as virtual SMSCs + +# Here is a sample SMSC for use with the /usr/lib/kannel/test/fakesmsc command + +#group = smsc +#smsc = fake +#smsc-id = FAKE +#port = 10000 +#connect-allow-ip = 127.0.0.1 + +group = smsc +smsc = at +smsc-id = usb0-modem +my-number = 1234 +modemtype = auto +device = /dev/ttyUSB0 + +#--------------------------------------------- +# SMSBOX SETUP + +# Smsbox(es) do higher-level SMS handling after they have been received from +# SMS centers by bearerbox, or before they are given to bearerbox for delivery + +group = smsbox +bearerbox-host = 127.0.0.1 +sendsms-port = 13013 +sendsms-chars = "0123456789 +-" +log-file = "/var/log/kannel/smsbox.log" +log-level = 0 +access-log = "/var/log/kannel/smsbox-access.log" +reply-couldnotfetch = "Your message could not be processed at this time. Please try again later. (err=couldnotfetch)" +reply-requestfailed = "Your message could not be processed at this time. Please try again later. (err=requestfailed)" +reply-couldnotrepresent = "Your message could not be processed at this time. Please try again later. (err=couldnotrepresent)" +http-request-retry = 3 +http-queue-delay = 10 + +# SEND-SMS USERS +# +# These users are used when Kannel smsbox sendsms interface is used to +# send PUSH sms messages, i.e. calling URL like +# http://kannel.machine:13013/cgi-bin/sendsms?username=tester&password=foobar... + +# This is the username and password that RapidSMS uses to deliver SMSes to +# Kannel. It must also set the 'smsc' variable in the query string, so that +# Kannel knows which SMSC to use to route the message. + +group = sendsms-user +username = rapidsms +password = password +user-deny-ip = "*.*.*.*" +user-allow-ip = "127.0.0.1;" + +#--------------------------------------------- +# SERVICES +# +# These are 'responses' to sms PULL messages, i.e. messages arriving from +# handsets. The response is based on message content. Only one sms-service is +# applied, using the first one to match. + +# The 'ping-kannel' service let's you check to see if Kannel is running, +# even if RapidSMS is offline for some reason. + +group = sms-service +keyword = ping-kannel +text = "Kannel is online and responding to messages." + +# There should be always a 'default' service. This service is used when no +# other 'sms-service' is applied. These relay incoming messages from any +# configured SMSCs to the appropriate HTTP backend URLs in RapidSMS. +# By setting 'accepted-smsc', we are assured that messages are routed to +# the appropriate backend in RapidSMS. + +group = sms-service +keyword = default +catch-all = yes +accepted-smsc = FAKE +# don't send a reply here (it'll come through sendsms): +max-messages = 0 +get-url = http://127.0.0.1:8000/backend/kannel-fake-smsc/?id=%p&text=%a&charset=%C&coding=%c + +group = sms-service +keyword = default +catch-all = yes +accepted-smsc = usb0-modem +# don't send a reply here (it'll come through sendsms): +max-messages = 0 +get-url = http://127.0.0.1:8000/backend/kannel-usb0-smsc/?id=%p&text=%a&charset=%C&coding=%c diff --git a/modems.conf b/modems.conf new file mode 100644 index 000000000000..563d7bd12cab --- /dev/null +++ b/modems.conf @@ -0,0 +1,134 @@ +# 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=3,2,0,1,1" +speed = 19200 +enable-hwhs = "AT\\Q3" +need-sleep = true +reset-string = "AT+CFUN=1" +keepalive-cmd = "AT+CSQ" + +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 + +group = modems +id = sonyericsson_p1i +name = "Sony Ericsson P1i" +detect-string = "Sony Ericsson P1i" +init-string = "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0" +message-storage = "SM" +reset-string = "ATZ" +broken = true |