Skip to content

Instantly share code, notes, and snippets.

@vtypal
Forked from miclovich/kannel.conf
Created August 29, 2012 16:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vtypal/3515063 to your computer and use it in GitHub Desktop.
Save vtypal/3515063 to your computer and use it in GitHub Desktop.
kannel (adopted from daveycrokett's kannel conf file)
#
group = core
admin-port = 13000
smsbox-port = 13001
admin-password = maw
status-password = maw
admin-allow-ip = "127.0.0.1"
log-level = 1
box-allow-ip = "*.*.*.*"
access-log = "/var/log/kannel/access.log"
access-log-clean = true
access-log-format = "[[%t]], [[%l]], [[%i]], [[%n]], [[%A]], [[%B]], [[%p]], [[%P]], [[%m]], [[%c]], [[%M]], [[%C]], [[%d]], [[%L]], [[%b]], [[%U]], [[%u]], [[%I]]"
store-type = spool
store-location = /var/lib/kannel/spool
#store-dump-freq = 5
#sms-incoming-queue-limit = -1
#sms-outgoing-queue-limit = -1
#sms-resend-freq = 60
#sms-resend-retry = 10
#dlr-storage = mysql
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ F A K E
group = smsc
smsc = fake
smsc-id = FAKE
port = 10000
connect-allow-ip = 127.0.0.1
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
group = smsc
smsc = smpp
smsc-id = A
host = x.x.x.x
port = 17602
smsc-username = "joe"
smsc-password = "joe"
system-type = "VMA"
connect-allow-ip = *.*.*.*
dest-addr-ton = 0
dest-addr-npi = 1
source-addr-ton = 5
source-addr-npi = 0
throughput = 50
allowed-smsc-id = UFONE
transceiver-mode = true
reconnect-delay = 60
enquire-link-interval = 30
connection-timeout = 600
wait-ack = 60
validityperiod = 1200
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ROUTING
group = smsbox-route
smsbox-id = opensmpp
smsc-id = A
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ SMSBOX SETUP
group = smsbox
bearerbox-host = localhost
bearerbox-port = 13001
sendsms-port = 13013
sendsms-chars = "0123456789 +-"
#reply-couldnotfetch = "Could not fetch content"
#reply-couldnotrepresent = "Result could not be represented as an SMS message"
#reply-requestfailed = "Request Failed"
#http-request-retry = 10
#http-queue-delay = 60
max-pending-requests = 2048
# SEND-SMS USERS
group = sendsms-user
username = tester
password = foobar
#user-deny-ip = "*.*.*.*"
user-allow-ip = "127.0.0.1"
max-messages = 500
concatenation = true
# SERVICES
group = sms-service
keyword = default
get-url = "http://localhost:1091/smsapp2/ReceiveSMS?sender=%p&text=%r&all=%a&time=%t&smsc=%i&dlr=%d&dlrsmsc=%A&foreignid=%F&sendsmsusr=%n&msgcode=%c&msgchar=%C&udh=%u&recer=%P"
accept-x-kannel-headers = true
max-messages = 10
concatenation = true
catch-all = true
omit-empty = true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment