Skip to content

Instantly share code, notes, and snippets.

SUBSYSTEM=="usb", SYSFS{idProduct}=="1446", SYSFS{idVendor}=="12d1", RUN+="/lib/udev/usb_modeswitch --vendo 0x12d1 --product 0x1446 --type option-zerocd"
SUBSYSTEMS=="usb", ATTRS{modalias}=="usb:v12D1p1003*", KERNEL=="ttyUSB*", ATTRS{bInterfaceNumber}=="00", ATTRS{bInterfaceProtocol}=="ff", NAME="ttyUSB_utps_modem"
SUBSYSTEMS=="usb", ATTRS{modalias}=="usb:v12D1p1003*", KERNEL=="ttyUSB*", ATTRS{bInterfaceNumber}=="01", ATTRS{bInterfaceProtocol}=="ff", NAME="ttyUSB_utps_pcui"
cat /etc/passwd | grep kannel
ls -l /dev/ | grep ttyUSB_utps_pcui
crw-rw---- 1 root dialout 188, 1 Jan 18 12:40 ttyUSB_utps_pcui
crw-rw---- 1 root dialout 188, 1 Jan 18 12:40 ttyUSB_utps_pcui
sudo usermod -a -G dialout kannel
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = p@ssw0rd
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1"
#wapbox-port = 13002
#wdp-interface-name = "*"
log-file = "/var/log/kannel/kannel.log"
log-level = 0
#group configures interfacing
group = smsc
smsc = at
modemtype = auto
device = /dev/ttyUSB_utps_pcui
my-number = +254723572302
sms-center = +254722500029
connect-allow-ip = 127.0.0.1
log-level = 0
include = /etc/kannel/modems.conf
#group configures kannel module that sends SMSs
group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
global-sender = +254723572302
log-level = 0
#group that allows web apps to send SMSs using kannel (security)
#use http://127.0.0.1:13013/cgi-bin/sendsms?username=kannel&password=kannel&text=inserttexthere
group = sendsms-user
username = kannel
password = kannel
concatenation = true
max-messages = 1000
#group that configures how kannel sends messages to web apps
group = sms-service
keyword-regex = .*
catch-all = yes
max-messages = 0
#sms-resend-retry = 0
get-url = "http://localhost/~jason/ngombe_planner/WebServer/php/kannel/sms_router.php?phone=%p&text=%a"