Just create multiple smsc groups in your kannel.conf

Possibly this articles may help you:
http://www.rattler.kiev.ua/articles/kannel-backup-connections
http://www.rattler.kiev.ua/articles/kannel-connecting-smsc-smpp

Short example (not tested):
> group = core
> admin-port = 13000
> smsbox-port = 13001
> admin-password = bar
> box-deny-ip = "*.*.*.*"
> box-allow-ip = "127.0.0.1"
>
> group = smsc
> smsc = fake
> smsc-id = fake1
> allowed-smsc-id = fake1
> port = 20001
> connect-allow-ip = 127.0.0.1
>
> group = smsc
> smsc = fake
> smsc-id = fake2
> allowed-smsc-id = fake2
> port = 20002
> connect-allow-ip = 127.0.0.1
>
> group = smsbox
> bearerbox-host = 127.0.0.1
> sendsms-port = 13013
> global-sender = 1234
>
> group = sendsms-user
> username = tester
> password = foobar




8/3/2012 11:43 AM, Komil Gulboev wrote:
> Hi Michael.
>
> Thank you for detail information, I think u have great experience in
> Kannel.
> May u provide us some simple for multiple connection?
>
> With best regards,
> Komil
>
> 8/3/2012 12:54 PM, Michael Bochkaryov ?????:
>> Hi Komil,
>>
>> To route messages between SMSC you can use "smsc" parameter in
>> sendsms HTTP interface.
>> Also you can use (allowed/preferred/denied)-prefix parameters for
>> MSISDN prefix based routing.
>>
>> Group smsbox-route is for routing between multiple smsbox'es.
>>
>>
>> 8/3/2012 12:00 AM, Komil Gulboev wrote:
>>> Hi Daniel,
>>>
>>> thank u very much for supporting,  I think for separating messages
>>> should be use routing like this:
>>>
>>>
>>> group = smsbox-route
>>> smsbox-id = babilone
>>> smsc-id = babilon
>>>
>>> or not?
>>>
>>> 8/3/2012 12:44 AM, Olutoyin Daniel ?????:
>>>> Hello Komil,
>>>> You are on the right path. 
>>>> Just uncomment the second SMSC group and ensure it has all the
>>>> parameter given to you by the second network.
>>>> You can have as many smsc group in your config file as much as you
>>>> have many networks to connect to.
>>>>
>>>> A good practice is to break each smsc into a seperate file and put
>>>> all the files in a folder and simply include that folder.
>>>>
>>>> I hope this helps you.
>>>> Toyin Daniel
>>>>
>>>> ------------------------------------------------------------------------
>>>> *From:* Komil Gulboev <[email protected]>
>>>> *To:* [email protected]
>>>> *Sent:* Thursday, August 2, 2012 8:10 PM
>>>> *Subject:* Multiple SMSC integaration
>>>>
>>>> Hi guys,
>>>>
>>>> now I have connection via SMPP with one provider but need also
>>>> connecting with another how can I do it?
>>>> For example if receive message from one provider should be send to
>>>> subscriber with received providers settings.
>>>> Now I have this kind of settings:
>>>>
>>>> group = core
>>>> #admin-port-ssl = true
>>>> admin-port = 13000
>>>> admin-password = xxx
>>>> status-password = xxx
>>>> log-file = "/var/log/kannel/kannel.log"
>>>> log-level = 0
>>>> access-log = "/var/log/kannel/access.log"
>>>> smsbox-port = 13001
>>>> #store-file = "/var/log/kannel/kannel.store"
>>>> dlr-storage = internal
>>>> sms-resend-retry = 1
>>>>
>>>> #This is main settings which already working
>>>> group = smsc
>>>> smsc-id = babilon
>>>> smsc = smpp
>>>> host = xxx.xxx.xxx.xxx
>>>> port = 2775
>>>> receive-port = 2775
>>>> smsc-username = "xxx"
>>>> smsc-password = "xxxx"
>>>> source-addr-ton = 0
>>>> source-addr-npi = 0
>>>> dest-addr-ton = 1
>>>> dest-addr-npi = 1
>>>> system-type = VMA
>>>> throughput = 1000
>>>> reconnect-delay = 5
>>>> connection-timeout = 120
>>>> transceiver-mode = true
>>>> denied-smsc-id = tcell
>>>> allowed-smsc-id = babilon
>>>> preferred-smsc-id = babilon
>>>>
>>>> #This section I`ll modify today but not sure for correcting and
>>>> need attention from you
>>>> #group = smsc
>>>> #smsc-id = tcell
>>>> #smsc = smpp
>>>> #host =
>>>> #port =
>>>> #receive-port =
>>>> #smsc-username = "tcell"
>>>> #smsc-password = "tcell"
>>>> #source-addr-ton = 0
>>>> #source-addr-npi = 1
>>>> #dest-addr-ton = 1
>>>> #dest-addr-npi = 1
>>>> #reconnect-delay = 5
>>>> #system-type = VMA
>>>> #throughput = 1000
>>>> #connection-timeout = 120
>>>> #transceiver-mode = true
>>>> #denied-smsc-id = babilon
>>>> #allowed-smsc-id = tcell
>>>>
>>>> group = smsbox
>>>> smsbox-id=babilone
>>>> bearerbox-host = localhost
>>>> sendsms-port = 13131
>>>> global-sender = 3333
>>>> log-file = /var/log/kannel/smsbox.log
>>>> log-level = 0
>>>> access-log = /var/log/kannel/access_smsbox.log
>>>>
>>>> group = sendsms-user
>>>> username = "xxxxxxx"
>>>> password = "xxxxxxx"
>>>> user-deny-ip = "*.*.*.*"
>>>> user-allow-ip = "*.*.*.*"
>>>> concatenation = true
>>>> max-messages = 20
>>>> default-smsc = babilon
>>>>
>>>> group = smsbox-route
>>>> smsbox-id = babilone
>>>> smsc-id = babilon
>>>>
>>>> #group = sendsms-user
>>>> #username = "tcell"
>>>> #password = "tcell"
>>>> #concatenation = true
>>>> #max-messages = 20
>>>> #default-smsc = tcell
>>>>
>>>> # SMS SERVICE 'default'
>>>> group = sms-service
>>>> keyword = default
>>>> omit-empty = true
>>>> max-messages = 0
>>>> get-url =
>>>> "http://localhost/playsms/index.php?app=call&cat=gateway&plugin=kannel&access=geturl&t=%t&q=%q&a=%a&Q=%Q";
>>>> #get-url =
>>>> "http://localhost/~playsms/plugin/gateway/kannel/geturl.php?t=%t&q=%q&a=%a
>>>> <http://localhost/%7Eplaysms/plugin/gateway/kannel/geturl.php?t=%t&q=%q&a=%a>"
>>>>
>>>> Please pay attention to comment line (#) this my settings true or not?
>>>>
>>>>
>>>>
>>>
>>
>>
>> -- 
>> Regards,
>> Michael Bochkaryov
>> www.rattler.kiev.ua
>


-- 
Regards,
Michael Bochkaryov
www.rattler.kiev.ua

Reply via email to