Hi,

I made a simple configuration (attached) with comments for you. It should get 
you going with no surprises. Actual configuration that fully suits your needs 
could depart from this slightly or wildly and can be quite more complex.

BR,
Davor
From: Mardo Jeghalian [mailto:m.jeghal...@aplimedia.net]
Sent: 12 July 2017 13:55
To: Davor Spasoski <davor.spaso...@onevip.mk>
Cc: users@kannel.org
Subject: Re: Facing issues while configuring Kannel

Hi Davor,

What i have now is direct smpp connection with the GSM operator , i want to 
learn how to install kannel, bind as transceiver to receive and send messages.

Hope you can help me with this task.

Best Regards,

On Wed, Jul 12, 2017 at 1:32 PM, Davor Spasoski 
<davor.spaso...@onevip.mk<mailto:davor.spaso...@onevip.mk>> wrote:
Hi Mardo,

It would help if you explain how you want to use kannel, as sms gateway or smpp 
proxy? (Because you mention crating new SMPPs)
I will help you with the configuration, but I advise you to read the manual in 
order to understand what effect the directives in the configuration mean.

Davor

From: users [mailto:users-boun...@kannel.org<mailto:users-boun...@kannel.org>] 
On Behalf Of Mardo Jeghalian
Sent: 12 July 2017 13:04
To: users@kannel.org<mailto:users@kannel.org>
Subject: Facing issues while configuring Kannel

Dear,
I'm new to Linux, trying to install Kannel on Ubuntu, but i'm facing some 
problems in configuring your service. Kindly may I have a configuration done by 
your behalf for kannel.conf? Our SMSC is on the network with IP 172.16.100.10, 
on port 6000, username is 'nour' and password 'nour'. We don't use modem or 
GSM. Please may you help with this issue? Furthermore, can you assist me in how 
to create new SMPPs and how to send and receive SMS? Thank you in advance...



[http://aplimedia.net/images/joomlart/logo/logo1.png]
 Mardiros Jeghalian

Mobile: +961 <tel:+961%2076%20913%20392> 70 660611
Web: www.aplimedia.net<http://www.aplimedia.net/>
Aplimedia S.A.L. (Off-Shore) | P.O. Box 13-5412, Beirut, Lebanon
Tel:  +961 1 785383<tel:+961%201%20785%20383>

________________________________

Disclaimer: one.Vip DOO Skopje
This e-mail (including any attachments) is confidential and may be protected by 
legal privilege. If you are not the intended recipient, you should not copy it, 
re-transmit it, use it or disclose its contents, but should return it to the 
sender immediately and delete your copy from your system. Any unauthorized use 
or dissemination of this message in whole or in part is strictly prohibited. 
Please note that e-mails are susceptible to change. one.Vip DOO Skopje shall 
not be liable for the improper or incomplete transmission of the information 
contained in this communication nor for any delay in its receipt or damage to 
your system.
Please, do not print this e-mail unless it is necessary! Think about saving the 
environment!

Напомена: оне.Вип ДОО Скопје
Оваа електронска порака (вклучувајќи ги и прилозите) е доверлива и може да биде 
заштитена со правни привилегии. Доколку не сте лицето на кое таа му е наменета 
пораката, не треба да ја копирате, дистрибуирате или да ја откривате нејзината 
содржина, туку веднаш да ја препратите до испраќачот и да ја избришете 
оригиналната порака и сите нејзини копии од Вашиот компјутерски систем. Секое 
неовластено користење на оваа порака во целост или делови од истата е строго 
забрането. Ве молиме да забележите дека електронските пораки се подложни на 
промени. оне.Вип ДОО Скопје не презема одговорност за несоодветно или нецелосно 
пренесување на информациите содржани во оваа комуникација, ниту пак за било 
какво задоцнување на приемот или оштетувања на вашиот систем.
Ве молиме не ја печатете оваа порака освен ако не е неопходно! Зачувајте ја 
природата!



--
[http://aplimedia.net/images/joomlart/logo/logo1.png]

Mardiros Jeghalian
Mobile: +961 70 660 611<tel:+961%2070%20660%20611>
Web: www.aplimedia.net<http://www.aplimedia.net/>
Aplimedia S.A.L. (Off-Shore) | P.O. Box 13-5412, Beirut, Lebanon
Tel:  +961 1 785 383<tel:+961%201%20785%20383>

________________________________

Disclaimer: one.Vip DOO Skopje
This e-mail (including any attachments) is confidential and may be protected by 
legal privilege. If you are not the intended recipient, you should not copy it, 
re-transmit it, use it or disclose its contents, but should return it to the 
sender immediately and delete your copy from your system. Any unauthorized use 
or dissemination of this message in whole or in part is strictly prohibited. 
Please note that e-mails are susceptible to change. one.Vip DOO Skopje shall 
not be liable for the improper or incomplete transmission of the information 
contained in this communication nor for any delay in its receipt or damage to 
your system.
Please, do not print this e-mail unless it is necessary! Think about saving the 
environment!

Напомена: оне.Вип ДОО Скопје
Оваа електронска порака (вклучувајќи ги и прилозите) е доверлива и може да биде 
заштитена со правни привилегии. Доколку не сте лицето на кое таа му е наменета 
пораката, не треба да ја копирате, дистрибуирате или да ја откривате нејзината 
содржина, туку веднаш да ја препратите до испраќачот и да ја избришете 
оригиналната порака и сите нејзини копии од Вашиот компјутерски систем. Секое 
неовластено користење на оваа порака во целост или делови од истата е строго 
забрането. Ве молиме да забележите дека електронските пораки се подложни на 
промени. оне.Вип ДОО Скопје не презема одговорност за несоодветно или нецелосно 
пренесување на информациите содржани во оваа комуникација, ниту пак за било 
какво задоцнување на приемот или оштетувања на вашиот систем.
Ве молиме не ја печатете оваа порака освен ако не е неопходно! Зачувајте ја 
природата!
#==========================================================================================
# 1. bearer-box configuration. mandatory
#==========================================================================================
group = core
#Bearerbox http admin interface port. Must be > 1024
admin-port = 13000
#Password for bearerbox commands that require administrative level
admin-password = admin
#Password for kannel status check
status-password = stauts
smsbox-port = 13001
#Use below if you want to limit the smsbox connection from certain addresses. 
The below limits smsbox to localhost
box-allow-ip = "127.0.0.1"
#bearerbox log location. 
#Note: this location must be writtable for the user running the bearerbox and 
smsbox process. 
#/var/log is not, so change it appropratelly. Ex: /home/user/kannel/ is OK or 
you  chmod your /var/log/kannel folder
log-file = "/var/log/kannel/bearerbox.log"
#log-level 0 = debug, 1 = info, 2 = warning, 3 = error, 4 = panic
log-level = 1
#Access log location. You find all your incomming and outgoing SMS and DLR 
entries here
access-log = "/var/log/kannel/access.log"
#Use the below directive if you want to remove - or + sign that is prefixed to 
the MSISDNs when TON/NPI = 1/1
unified-prefix = "-,+"
#Your store type and location. Store file keeps messages that are yet to be 
processed. Same applies as the log location
store-type = file
store-location = "/etc/kannel/kannel.store"
store-dump-freq = 10
#Use internal storage if you are just starting to get to know kannel. But then 
you must use a DB because
#you will loose all your DLRs when kannel is restarted
dlr-storage = internal
#Retry mechanism for AO -> MT SMS
sms-resend-freq = 300
sms-resend-retry = 10
#Should kannel combine contcatenad SMS before forwarding to smsbox? I advise 
you to use this only for smsbox.
#If you plan to use opensmppbox, don't concatenate, as opensmppbox will have to 
split again.
sms-combine-concatenated-mo = true
sms-combine-concatenated-mo-timeout = 60
#==========================================================================================


#==========================================================================================
# 2. SMSC connection
#==========================================================================================
group = smsc
smsc = smpp
#the name of your smsc connection. Use your own designation, but then be 
carefull to match it in the other sections 
#calling your smsc
smsc-id = "smsc1"
reconnect-delay = 10
host = "172.16.100.10"
port = 6000
transceiver-mode = true
smsc-username = "nour"
smsc-password = "nour"
system-type ="SMS"
interface-version = 34
address-range = ""
enquire-link-interval = 15
max-pending-submits = 50
#The below is optional. These TON/NPIs will be assigned as defaults
source-addr-ton = 0
source-addr-npi = 1
dest-addr-ton = 0
dest-addr-npi = 1
#==========================================================================================


#===========================================================================================
# 3. SMS box defintion
#===========================================================================================
group = smsbox
#Host IP where bearerbox is running
bearerbox-host = localhost
smsbox-id = "smsbox1"
#Your http SMS sending interface port.
sendsms-port = 13131
#Allowed characters in the recipient address. You use space to separate 
mutliple recipients
sendsms-chars = "0123456789 +-"
#Use the below as a default source address if you don't state on
#global-sender = "something"
log-level = 1
#smsboxaccess log location. Same applies as for other log's location
access-log = "/var/log/kannel/smsboxaccess.log"
#This will convert your MO SMS to UTF-8 and make life easier to content 
providers where you forward the SMS
mo-recode = 1
#Some reply for your customers that send SMS to non-existing service number
reply-requestfailed = "Some text here"
#Number of retries to call the content provider's service
http-request-retry = 10
#Period between two retries
http-queue-delay = 60
#==========================================================================================

#==========================================================================================
# 4. SMS box routing
#==========================================================================================
#This will route all your incomming (MO) SMS to smsbox1. It might be more 
complex if you have more smsboxes
group = smsbox-route
smsbox-id = smsbox1
smsc-id = "smsc1"
#=========================================================================================

#=========================================================================================
# 5. Defintion of services. There are two types. Services with keyword and 
services without keyword
#=========================================================================================
#keyword based service example
group = sms-service
keyword = myservice
aliases = " myservice; Myservice; MYSERVICE;MYSERVICE;"
#The url to the web server hosting the service
get-url = "http://somewhere/srv1/myservice.php?name=%s&MSISDN=%p";
#Your service shortcode. Kannel will only serve you if the keyword and 
receiver-prefix are correct
allowed-receiver-prefix = "123456"
catch-all = 1
max-messages = 4
concatenation = 1

#keywordless service example
group = sms-service
keyword = default
#The url to the web server hosting the service
get-url = "http://somewhere/srv2/myservice.php?name=%s&MSISDN=%p";
#Your service shortcode. Kannel will only serve you if thre receiver-prefix is 
matched
allowed-receiver-prefix = "123456"
catch-all = 1
max-messages = 4
concatenation = 1
#==========================================================================================

#==========================================================================================
# 6. SEND-SMS USERS
#==========================================================================================
group = sendsms-user
username = user
password = password
user-allow-ip = "*.*.*.*"
#which SMSC to use for MT SMS
default-smsc = smsc1
#Limit the text length to n x 140 octets. 
max-messages = 4
#Allow concatenation
concatenation = 1
#==========================================================================================

Reply via email to