Инструменты пользователя

Инструменты сайта


kannel_conf_gsm

Конфигурационный файл (GSM)

Работа по протоколу GSM через gsm-модем Siemens TC-65.

# CORE
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = PASSWORD
admin-deny-ip = "*.*.*.*"
admin-allow-ip = "127.0.0.1;192.168.100.111;192.168.100.99;192.168.100.100;192.168.100.101"
log-file = "/var/log/kannel/kannel.log"
log-level = 0
access-log = "/var/log/kannel/access.log"
store-type = file
store-file = "/var/log/kannel/kannel.store"
box-deny-ip = "*.*.*.*"
box-allow-ip = "127.0.0.1;192.168.100.*"
smsbox-max-pending = 100

group = smsc
smsc = at
modemtype = tc65
device = /dev/cuaU0
my-number = 79265557755
sms-center = 79262909090
connect-allow-ip = *.*.*.*
log-level = 0

group = smsbox
bearerbox-host = 127.0.0.1
sendsms-port = 13013
log-file = "/var/log/kannel/smsbox.log"
log-level = 1
access-log = "/var/log/kannel/access.log"

group = sendsms-user
username = USERNAME
password = PASSWORD
max-messages = 3
concatenation = true

group = sms-service
keyword-regex = .*
keyword = default
catch-all = yes
max-messages = 1
text = "siemens_tc65"
get-url = "http://localhost/playsms/index.php?app=call&cat=gateway&plugin=kannel&access=geturl&t=%t&q=%q&a=%a"

# MODEM CONF
group = modems
id = tc65
name = "siemens TC65"
detect-string = "SIEMENS"
detect-string2 = "TC65"
init-string = "AT+CNMI=1,2,0,1,1"
keepalive-cmd = "AT+CBC;+CSQ"
speed = 115200
enable-hwhs = "AT\\Q3"
need-sleep = true
reset-string = "AT+CFUN=1,1"
message-storage = SM
kannel_conf_gsm.txt · Последние изменения: 2014/05/23 15:55 — Alex