Re: Installation of kannel and sqlbox in Ubuntu 22.04 to use as SMSbox

2023-04-16 Thread spameden
Ubuntu 22.04 uses bison 3.8.2 - https://packages.ubuntu.com/jammy/bison
In order to fix the issue you need to either try to compile from SVN or
apply this patch - https://redmine.kannel.org/issues/699#note-5
Best to use SVN code actually as it contains recent bug fixes and in most
cases very stable.

Checkout SVN repo with: svn co https://svn.kannel.org/gateway/trunk and
then proceed with usual compilation routing


On Sun, 16 Apr 2023 at 16:11, Antony Stone <
antony.st...@kannel.open.source.it> wrote:

> On Sunday 16 April 2023 at 13:42:04, Robin C wrote:
>
> > Dear Antony ,
> >
> > Have you successfully installed Kannel 1.4.5 in Ubuntu 22.04 from source
> > code??
>
> No; I use 1.4.5 under Debian, installed from the binary package.
>
>
> Antony.
>
> --
> Python is executable pseudocode.
> Perl is executable line noise.
>
>Please reply to the
> list;
>  please *don't* CC
> me.
>
>


Re: Kannel Won't Insert Message Delivery Record to MySQL

2018-12-31 Thread spameden
You need to use sqlbox plugin in order to store saved MT/MO/DLR or
implement the logic of saving those in your app.

Exactly, what Alvaro has said.

пн, 31 дек. 2018 г. в 17:33, Alvaro Cornejo :

> Hi
>
> Kannel uses mysql for storing sms temporarily and delete the record after
> confirmation it has been sent. That is why you usually does not see
> anything of your kannel table.
>
> If you do want to have a permanent store of that data, as well as sms
> status,, you need to do it at your app side or use sqlbox.
>
> Regards,
>
> Alvaro
>
>
> |-|
> Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
> celular y Nextel
> en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS
> y GPRS online
>   Visitenos en www.perusms.com
>
>
> Le dim. 30 déc. 2018 à 16:39,  a écrit :
>
>> Hi All,
>>
>>
>>
>> I have installed mysql and created database and tables on the same server
>> as Kannel. Also, according to the documents I have put the configuration
>> section to kannel config. Then I tested sending and receiving message using
>> FAKE SMSC, but Kannel didn’t insert delivery records to MySQL databased.
>>
>>
>>
>> The configuration section I put into kannel.conf is:
>>
>>
>>
>> group = core
>>
>> admin-port = 13130
>>
>> smsbox-port = 13131
>>
>> admin-password = italksms
>>
>> status-password = italksms
>>
>> admin-deny-ip = "*.*.*.*"
>>
>> admin-allow-ip = "127.0.0.1"
>>
>> log-file = "/var/log/kannel/kannel.log"
>>
>> log-level = 0
>>
>> box-deny-ip = "*.*.*.*"
>>
>> box-allow-ip = "127.0.0.1"
>>
>> access-log = "/var/log/kannel/kannel.access.log"
>>
>> dlr-storage = mysql
>>
>>
>>
>> group = mysql-connection
>>
>> id = mydlr
>>
>> host = localhost
>>
>> username = kannel
>>
>> password = kannel
>>
>> database = kannel
>>
>> # max count of connections that will be opened for dbpool
>>
>> # default is 1
>>
>> max-connections = 1
>>
>>
>>
>> group = dlr-db
>>
>> id = mydlr
>>
>> table = dlr
>>
>> field-smsc = smsc
>>
>> field-timestamp = ts
>>
>> field-destination = destination
>>
>> field-source = source
>>
>> field-service = service
>>
>> field-url = url
>>
>> field-mask = mask
>>
>> field-status = status
>>
>> field-boxc-id = boxc
>>
>>
>>
>> Did I miss steps somewhere?
>>
>>
>>
>> Thank you.
>>
>> Henry
>>
>


Re: Fake SMSC

2018-01-30 Thread spameden
Dear, Robin.

Spamming this list with the same questions without reading documentation
first and putting some effort into learning won't get you anywhere.

There are many examples regarding:
* fakesmsc (how to set it up)
* how to get high throughput with kannel and possible bottlenecks
* the problems you're facing were explained 1 times you need just
google and find all those answers yourself, put some effort into it
* there is a commercial carrier grade SMPP server (contact Stipe Tolj)

Nobody is going to make all the work for you, this list is intented to HELP
with specific problems, not some vague questions which were covered 100
times before.

2018-01-30 13:14 GMT+03:00 Robin C :

> Dear All,
>
> How can I use fake smsc to test my kannel performance and tps?
>
> --
>
>
>
>
> Disclaimer:  This message contains confidential information and is
> intended only for the individual named.  If you are not the named addressee
> you should not disseminate, distribute or copy this e-mail.  Please notify
> the sender immediately by e-mail if you have received this e-mail by
> mistake and delete this e-mail from your system.  E-mail transmission
> cannot be guaranteed to be secure or error-free as information could be
> intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
> contain viruses.  The sender therefore does not accept liability for any
> errors or omissions in the contents of this message, which arise as a
> result of e-mail transmission.  If verification is required please request
> a hard-copy version.
>
> *7* Switch off as you go |*q *Recycle always | P Print only if absolutely
> necessary
>


Re: Encodings

2017-04-02 Thread spameden
Hello.

First of all ALWAYS use latest kannel version (best is to compile from SVN)
before reporting any issues.

Secondly, make sure you are urlencode-ing text before passing it to smsbox
/ sqlbox.

Thirdly, set coding=2 as an smsbox/sqlbox parameter

Fourthly, set charset=utf8 as an smsbox/sqlbox parameter.

Also, there was a bug with encoding with 1.4.2 1.5.0 published on the
website, that's why I said once again use ONLY latest kannel / sqlbox /
smsbox version to avoid repeating same bugs over and over again.

You might try as well omitting any alt-charset parameters from your
kannel.conf configuration, because it should work even without it.

2017-04-02 22:57 GMT+03:00 Davor Spasoski :

> Dear kannel users,
>
>
>
> Can someone give precise information what happens encoding wise from
> smsbox to SMSC. I understand that as of 1.4.1:
>
>
>
> Smsbox i expecting utf-8 by default
>
> Communication smsbox ßà bearerbox is only via utf-8
>
> Bearerbox ßà SMSC is supposed to be ISO-8859-1
>
>
>
> But then we have alt-dcs and alt-addr-charset that are supposed to enable
> GSM-7 alphabet between SMSC and bearerbox, but although documented, they
> both don’t seem to work from 1.4.2 onwards. There is a slight difference
> when I add alt-charset=GSM, but it certainly is not sending GSM. (I get a
> lot of question marks until I get to 0x28 character)
>
> What if I have specific SMSC that is using GSM-7 or even something more
> weird like Escaped ISO-8859-1 that combines ISO and GSM 7-bit.
>
> Is SMSC – bearerbox in UTF-8 possible?
>
>
>
> BR,
>
>
>
> *Davor Spasoski*
>
>
>
> --
>
> 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!
>
> Напомена: оне.Вип ДОО Скопје
> Оваа електронска порака (вклучувајќи ги и прилозите) е доверлива и може да
> биде заштитена со правни привилегии. Доколку не сте лицето на кое таа му е
> наменета пораката, не треба да ја копирате, дистрибуирате или да ја
> откривате нејзината содржина, туку веднаш да ја препратите до испраќачот и
> да ја избришете оригиналната порака и сите нејзини копии од Вашиот
> компјутерски систем. Секое неовластено користење на оваа порака во целост
> или делови од истата е строго забрането. Ве молиме да забележите дека
> електронските пораки се подложни на промени. оне.Вип ДОО Скопје не презема
> одговорност за несоодветно или нецелосно пренесување на информациите
> содржани во оваа комуникација, ниту пак за било какво задоцнување на
> приемот или оштетувања на вашиот систем.
> Ве молиме не ја печатете оваа порака освен ако не е неопходно! Зачувајте
> ја природата!
>


Re: Re[4]: OpenSMPPBox Panic

2017-02-06 Thread spameden
Can only guess it's something to do with store format. Maybe in the new
version it's different that's why OpenSMPPBox panics.

Try deleting store file / spool and restarting opensmppbox.

2017-02-06 13:53 GMT+03:00 Davor Spasoski :

> Hi,
>
>
>
> I compiled the latest opensmppbox this morning with the hope for the PANIC
> after concatenated SMS.
>
>
>
> Now I can’t even start it. I receive panic on startup. Same config file as
> ever.
>
>
>
> /vas/bin/opensmppbox -v 1 /vas/config/kannel/opensmppbox.conf
>
> 2017-02-06 11:35:38 [17516] [0] INFO: Debug_lvl = 1, log_file = ,
> log_lvl = 0
>
> 2017-02-06 11:35:38 [17516] [0] INFO: MYSQL: Connected to server at
> localhost.
>
> 2017-02-06 11:35:38 [17516] [0] INFO: MYSQL: server version
> 5.7.13-0ubuntu0.16.04.2, client version 5.7.17.
>
> 2017-02-06 11:35:38 [17516] [0] INFO: DLR using storage type: mysql
>
> 2017-02-06 11:35:38 [17516] [0] PANIC: /vas/bin/opensmppbox() [0x442788]
>
> 2017-02-06 11:35:38 [17516] [0] PANIC: 
> /lib/x86_64-linux-gnu/libpthread.so.0(+0x113d0)
> [0x7f7a4312e3d0]
>
> 2017-02-06 11:35:38 [17516] [0] PANIC: /vas/bin/opensmppbox() [0x4530ba]
>
> 2017-02-06 11:35:38 [17516] [0] PANIC: 
> /vas/bin/opensmppbox(octstr_str_compare+0x20)
> [0x454a40]
>
> 2017-02-06 11:35:38 [17516] [0] PANIC: /vas/bin/opensmppbox(store_init+0x2a)
> [0x41412a]
>
> 2017-02-06 11:35:38 [17516] [0] PANIC: /vas/bin/opensmppbox(main+0x263)
> [0x40a443]
>
> 2017-02-06 11:35:38 [17516] [0] PANIC: 
> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)
> [0x7f7a42a6b830]
>
> 2017-02-06 11:35:38 [17516] [0] PANIC: /vas/bin/opensmppbox(_start+0x29)
> [0x40b349]
>
> Segmentation fault (core dumped)
>
>
>
> *Davor Spasoski*
>
> VAS Cloud & ICT Development Team Leader / Online and VAS Development
>
>
>
> M: +38975400608
>
> e-mail: davor.spaso...@onevip.mk
>
>
>
> one.Vip DOO Skopje | Filip Vtori Makedonski 3, DC Soravia 8th floor | 1000
> Skopje | Macedonia
>
> *From:* Garry Macasieb [mailto:garry.macas...@gmail.com]
> *Sent:* 01 February 2017 05:47
> *To:* Rene Kluwen 
> *Cc:* Davor Spasoski ; users@kannel.org
> *Subject:* Re: Re[4]: OpenSMPPBox Panic
>
>
>
> Hi Rene,
>
>
>
> BIG THANKS. As tested, issue has been fixed.
>
>
>
> Kind regards,
>
>
>
> Garry
>
>
>
> 2017-01-31 19:57 GMT+08:00 Rene Kluwen :
>
> I invite you to try again with a fresh svn update.
> It should be fixed now.
>
> == Rene
>
> -- Origineel bericht --
> Van: "Davor Spasoski" 
> Aan: "Rene Kluwen" 
> Cc: "Garry Macasieb" ; "users@kannel.org" <
> users@kannel.org>
> Verzonden: 28-1-2017 20:03:48
> Onderwerp: Re: Re[2]: OpenSMPPBox Panic
>
>
>
> Hi,
>
> Just start opensmppbox normally. Connect a client that takes care how to
> split the SMS in two using UDH. I used kannel and let it split the message
> that I entered on smsbox's http interface.
>
> BR,
> Davor
> On Jan 28, 2017, at 1:15 PM, Rene Kluwen wrote:
>
>  I promise to look into this one of these days and provide a patch.
>  Meanwhile, could somebody send me steps to reproduce?
>
>  == Rene
>
>  -- Origineel bericht --
>  Van: "Davor Spasoski" 
>  Aan: "Garry Macasieb" 
>  Cc: "rene.klu...@chimit.nl" ; "users@kannel.org" <
> users@kannel.org>
>  Verzonden: 27-1-2017 17:16:39
>  Onderwerp: Re: OpenSMPPBox Panic
>
>  I second this. The panic happens on receiving the second part. I used
> kannel as a client and the concatenation mechanism used is udh based.
>
>  On Jan 27, 2017, at 2:13 PM, Garry Macasieb 
> wrote:
>
>  Hi Rene / Users,
>
>  Greetings!
>
>  Wish to consult you about the PANIC i'm getting from Opensmppbox module
> whenever sending concatenated message:
>
>  PANIC: gwlib/octstr.c:2562: seems_valid_real: Assertion `ostr->len + 1 <=
> ostr->size' failed. (Called from gwlib/octstr.c:325:octstr_destroy.)
>
>  Do you have a work around for this or a working patch?
>
>  Thanks and looking forward to your response.
>
>  --
>  Garry
>
>  ===
> ===
>
>
>  
>
>  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.
>  

TLV & sqlbox for MT

2016-09-23 Thread spameden
Hello,

Is anybody here using sqlbox + TLV for MT?

I've just tested on 1.4.4 kannel it seems to be not working at all.

With smsbox it works just perfectly, but not with sqlbox for some reason.

In both cases I've urlencoded meta_data value, but still no luck..

Any ideas how to fix this?

Thanks.


Re: Building 1.4.4 for SUSE LES 11.4 - same as Bug #716

2016-07-28 Thread spameden
Could be that bearerbox is not running at all because of the dependency
failure.

Can you check with:

$ cd gw
$ ldd ./bearerbox
$ strace -ff ./bearerbox



2016-07-28 15:32 GMT+03:00 Dave <d...@eth0.ch>:

> I was able to build and run Kannel on a fresh install of SLES 11 SP2 but
> after applying the package updates for SP2, neither the previously built
> bearerbox nor the re-compiled bearerbox could be made to run - same result
> as before. It seems indeed, the distro has a problem somewhere.
>
> With SLES 12 SP1 there is no issue - Kannel builds and runs.
>
> David.
>
>
> On 27.07.2016 13:50, Dave wrote:
>
>> The user kannel had been added to the dialup group but there is no
>> difference whether I start the bearerbox with or without the -u flag.
>>
>> Unfortunately, I am not a SuSe user either as we run Ubuntu on our own
>> systems. The iso-images can be downloaded freely and I had signed-up
>> for a 60 day trial key.
>>
>> Usually, when there are permission errors you get some sort of output.
>> When executing ./bearerbox --version I assume there is not much file
>> system/os stuff involved yet.
>>
>> David.
>>
>>
>> On 26.07.2016 21:30, spameden wrote:
>>
>>> Unfortunately, I can't test on SLES 11.4 because it's a commercial
>>> distro.
>>>
>>> So far I've been able to find a USB image and created a VM but there
>>> is no repositories to install software unless you buy their
>>> subscription I guess.
>>>
>>> 2016-07-26 20:28 GMT+03:00 Alvaro Cornejo <cornejo.alv...@gmail.com>:
>>>
>>> Hi
>>>>
>>>> Might be obvious but have you checked user/group permissions? There
>>>> was a distro that used to require kannel user to belong to the
>>>> dial-up group in order to be able to access ports...
>>>>
>>>> Regards
>>>>
>>>> Alvaro
>>>>
>>>>
>>>>
>>> |-|
>>>
>>>> Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde
>>>> cualquier celular y Nextel
>>>> en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias
>>>> via SMS y GPRS online
>>>> Visitenos en www.perusms.com [1]
>>>>
>>>> On Tue, Jul 26, 2016 at 10:24 AM, Dave <d...@eth0.ch> wrote:
>>>> Thank you for so much effort!
>>>>
>>>> It does seem that SuSe LES 11 SP4 has a problem. I've just made a
>>>> complete re-install of the OS with no add-ons, built kannel (without
>>>> warnings!), started bearerbox - same result. Nothing happens.
>>>>
>>>> Unfortunately, I am required to use this distro... It seems I need
>>>> to have a talk with the customer - unless someone else comes up with
>>>> a solution.
>>>>
>>>> Thanks. David.
>>>>
>>>> On 26.07.2016 15 [2]:28, spameden wrote:
>>>>
>>>> It's something wrong with your distro.
>>>>
>>>> I've tried building latest trunk on suse-13.1 in VM:
>>>>
>>>> suse:~/trunk/gw # ./bearerbox --version
>>>> Kannel bearerbox version `svn-r5166M'.
>>>> Build `Jul 26 2016 13:23:32', compiler `4.8.1 20130909
>>>> [gcc-4_8-branch
>>>> revision 202388]'.
>>>> System Linux, release 2.6.32-openvz-042stab113.21-amd64, version #1
>>>> SMP Wed Mar 23 11:06:59 MSK 2016, machine x86_64.
>>>> Hostname suse, IP 127.0.0.1.
>>>> Libxml version 2.9.3.
>>>> Using OpenSSL 1.0.1k 8 Jan 2015.
>>>> Compiled with MySQL 5.5.46-MariaDB, using MySQL 5.5.46-MariaDB.
>>>> Using native malloc.
>>>> suse:~/trunk/gw # ./bearerbox
>>>> 2016-07-26 13:27:50 [16140] [0] PANIC: Missing argument for option
>>>> -v
>>>>
>>>> 2016-07-26 13:27:50 [16140] [0] PANIC:
>>>> ./bearerbox(gw_backtrace+0xae)
>>>> [0x49dc9e]
>>>> 2016-07-26 13:27:50 [16140] [0] PANIC: ./bearerbox(gw_panic+0x161)
>>>> [0x49de11]
>>>> 2016-07-26 13:27:50 [16140] [0] PANIC:
>>>> ./bearerbox(get_and_set_debugs+0x181) [0x498511]
>>>> 2016-07-26 13:27:50 [16140] [0] PANIC: ./bearerbox(main+0x82)
>>>> [0x410012]
>>>> 2016-07-26 13:27:50 [16140] [0] PANIC:
>>>> /lib64/libc.so.6(__libc_start_main+0xf5) [0x7fcf486a5be5]
>>>> 2016-07-26 13:27:50 [16140] [0] PAN

Re: Building 1.4.4 for SUSE LES 11.4 - same as Bug #716

2016-07-26 Thread spameden
Unfortunately, I can't test on SLES 11.4 because it's a commercial distro.

So far I've been able to find a USB image and created a VM but there is no
repositories to install software unless you buy their subscription I guess.

2016-07-26 20:28 GMT+03:00 Alvaro Cornejo <cornejo.alv...@gmail.com>:

> Hi
>
> Might be obvious but have you checked user/group permissions? There was a
> distro that used to require kannel user to belong to the dial-up group in
> order to be able to access ports...
>
> Regards
>
> Alvaro
>
>
>
> |-|
> Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
> celular y Nextel
> en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS
> y GPRS online
>   Visitenos en www.perusms.com
>
> On Tue, Jul 26, 2016 at 10:24 AM, Dave <d...@eth0.ch> wrote:
>
>> Thank you for so much effort!
>>
>> It does seem that SuSe LES 11 SP4 has a problem. I've just made a
>> complete re-install of the OS with no add-ons, built kannel (without
>> warnings!), started bearerbox - same result. Nothing happens.
>>
>> Unfortunately, I am required to use this distro... It seems I need to
>> have a talk with the customer - unless someone else comes up with a
>> solution.
>>
>> Thanks. David.
>>
>>
>> On 26.07.2016 15:28, spameden wrote:
>>
>>> It's something wrong with your distro.
>>>
>>> I've tried building latest trunk on suse-13.1 in VM:
>>>
>>> suse:~/trunk/gw # ./bearerbox --version
>>> Kannel bearerbox version `svn-r5166M'.
>>> Build `Jul 26 2016 13:23:32', compiler `4.8.1 20130909 [gcc-4_8-branch
>>> revision 202388]'.
>>> System Linux, release 2.6.32-openvz-042stab113.21-amd64, version #1
>>> SMP Wed Mar 23 11:06:59 MSK 2016, machine x86_64.
>>> Hostname suse, IP 127.0.0.1.
>>> Libxml version 2.9.3.
>>> Using OpenSSL 1.0.1k 8 Jan 2015.
>>> Compiled with MySQL 5.5.46-MariaDB, using MySQL 5.5.46-MariaDB.
>>> Using native malloc.
>>> suse:~/trunk/gw # ./bearerbox
>>> 2016-07-26 13:27:50 [16140] [0] PANIC: Missing argument for option -v
>>>
>>> 2016-07-26 13:27:50 [16140] [0] PANIC: ./bearerbox(gw_backtrace+0xae)
>>> [0x49dc9e]
>>> 2016-07-26 13:27:50 [16140] [0] PANIC: ./bearerbox(gw_panic+0x161)
>>> [0x49de11]
>>> 2016-07-26 13:27:50 [16140] [0] PANIC:
>>> ./bearerbox(get_and_set_debugs+0x181) [0x498511]
>>> 2016-07-26 13:27:50 [16140] [0] PANIC: ./bearerbox(main+0x82)
>>> [0x410012]
>>> 2016-07-26 13:27:50 [16140] [0] PANIC:
>>> /lib64/libc.so.6(__libc_start_main+0xf5) [0x7fcf486a5be5]
>>> 2016-07-26 13:27:50 [16140] [0] PANIC: ./bearerbox() [0x4111fd]
>>>
>>> please give your config for testing.
>>>
>>> 2016-07-26 15:19 GMT+03:00 Dave <d...@eth0.ch>:
>>>
>>> I've built everything the same but did not run the bootstrap-Script
>>>> first, which produced me an error now:
>>>>
>>>> # ./bootstrap.sh
>>>> configure.in:254 [1]: warning: macro `AM_ICONV' not found in library
>>>> configure.in:254 [1]: error: possibly undefined macro: AM_ICONV
>>>>
>>>> If this token and others are legitimate, please use
>>>> m4_pattern_allow.
>>>>
>>>> After installing the package gettext-tools the required file
>>>> iconv.m4 was installed and the bootstrap script run without hickup.
>>>> Then:
>>>>
>>>> # ./configure --with-mysql --disable-docs
>>>> # make
>>>> # cd gw
>>>> # ./bearerbox -v 3 /path/to/kannel.conf
>>>>
>>>> But same as before - nothing happens, whether I compile 1.4.4 or the
>>>> daily snapshot.
>>>>
>>>> On 26.07.2016 13:30, spameden wrote:
>>>>
>>>> I'm not a SuSe Linux user, but I suggest building latest version
>>>> from
>>>> SVN and see how it works.
>>>>
>>>> Do you have any warnings when you compile?
>>>>
>>>> Here is the way I compile:
>>>>
>>>> ./bootstrap.sh
>>>> ./configure --with-mysql --disable-docs
>>>> make
>>>> cd gw
>>>> ./bearerbox -v 3 /path/to/kannel.conf
>>>>
>>>> I've just tested on my old squeeze machine latest SVN it gives some
>>>> errors:
>>>>
>>>> sh-4.1$ ./bearerbox

Re: Building 1.4.4 for SUSE LES 11.4 - same as Bug #716

2016-07-26 Thread spameden
It's something wrong with your distro.

I've tried building latest trunk on suse-13.1 in VM:

suse:~/trunk/gw # ./bearerbox --version
Kannel bearerbox version `svn-r5166M'.
Build `Jul 26 2016 13:23:32', compiler `4.8.1 20130909 [gcc-4_8-branch
revision 202388]'.
System Linux, release 2.6.32-openvz-042stab113.21-amd64, version #1 SMP Wed
Mar 23 11:06:59 MSK 2016, machine x86_64.
Hostname suse, IP 127.0.0.1.
Libxml version 2.9.3.
Using OpenSSL 1.0.1k 8 Jan 2015.
Compiled with MySQL 5.5.46-MariaDB, using MySQL 5.5.46-MariaDB.
Using native malloc.
suse:~/trunk/gw # ./bearerbox
2016-07-26 13:27:50 [16140] [0] PANIC: Missing argument for option -v

2016-07-26 13:27:50 [16140] [0] PANIC: ./bearerbox(gw_backtrace+0xae)
[0x49dc9e]
2016-07-26 13:27:50 [16140] [0] PANIC: ./bearerbox(gw_panic+0x161)
[0x49de11]
2016-07-26 13:27:50 [16140] [0] PANIC:
./bearerbox(get_and_set_debugs+0x181) [0x498511]
2016-07-26 13:27:50 [16140] [0] PANIC: ./bearerbox(main+0x82) [0x410012]
2016-07-26 13:27:50 [16140] [0] PANIC:
/lib64/libc.so.6(__libc_start_main+0xf5) [0x7fcf486a5be5]
2016-07-26 13:27:50 [16140] [0] PANIC: ./bearerbox() [0x4111fd]

please give your config for testing.

2016-07-26 15:19 GMT+03:00 Dave <d...@eth0.ch>:

> I've built everything the same but did not run the bootstrap-Script first,
> which produced me an error now:
>
> # ./bootstrap.sh
> configure.in:254: warning: macro `AM_ICONV' not found in library
> configure.in:254: error: possibly undefined macro: AM_ICONV
>   If this token and others are legitimate, please use m4_pattern_allow.
>
> After installing the package gettext-tools the required file iconv.m4 was
> installed and the bootstrap script run without hickup. Then:
>
> # ./configure --with-mysql --disable-docs
> # make
> # cd gw
> # ./bearerbox -v 3 /path/to/kannel.conf
>
> But same as before - nothing happens, whether I compile 1.4.4 or the daily
> snapshot.
>
>
>
> On 26.07.2016 13:30, spameden wrote:
>
>> I'm not a SuSe Linux user, but I suggest building latest version from
>> SVN and see how it works.
>>
>> Do you have any warnings when you compile?
>>
>> Here is the way I compile:
>>
>> ./bootstrap.sh
>> ./configure --with-mysql --disable-docs
>> make
>> cd gw
>> ./bearerbox -v 3 /path/to/kannel.conf
>>
>> I've just tested on my old squeeze machine latest SVN it gives some
>> errors:
>>
>> sh-4.1$ ./bearerbox --version
>> Kannel bearerbox version `svn-r5166M'.
>> Build `Jul 26 2016 14:25:43', compiler `4.4.5'.
>> System Linux, release 2.6.32-openvz-042stab113.21-amd64, version #1
>> SMP Wed Mar 23 11:06:59 MSK 2016, machine x86_64.
>> Hostname localhost.localdomain, IP 127.0.0.1.
>> Libxml version 2.7.8.
>> Using OpenSSL 0.9.8o 01 Jun 2010.
>> Compiled with MySQL 5.1.73, using MySQL 5.1.73.
>> Using native malloc.
>>
>> sh-4.1$ ./bearerbox
>> 2016-07-26 14:27:45 [21915] [0] INFO: Debug_lvl = -1, log_file =
>> , log_lvl = 0
>> 2016-07-26 14:27:45 [21915] [0] ERROR: fopen failed: couldn't open
>> `kannel.conf'
>> 2016-07-26 14:27:45 [21915] [0] ERROR: System error 2: No such file or
>> directory
>> 2016-07-26 14:27:45 [21915] [0] PANIC: Failed to load main
>> configuration file `kannel.conf'. Aborting!
>> 2016-07-26 14:27:45 [21915] [0] PANIC: ./bearerbox(gw_backtrace+0xae)
>> [0x4a54ae]
>> 2016-07-26 14:27:45 [21915] [0] PANIC: ./bearerbox(gw_panic+0x159)
>> [0x4a5619]
>> 2016-07-26 14:27:45 [21915] [0] PANIC: ./bearerbox(cfg_read+0x59f)
>> [0x49201f]
>> 2016-07-26 14:27:45 [21915] [0] PANIC: ./bearerbox(main+0xc7)
>> [0x410fa7]
>> 2016-07-26 14:27:45 [21915] [0] PANIC:
>> /lib/libc.so.6(__libc_start_main+0xfd) [0x7fbc8cb63d2d]
>> 2016-07-26 14:27:45 [21915] [0] PANIC: ./bearerbox() [0x40ff09]
>>
>> Always include users@ list, so others benefit from your solution as
>> well!
>>
>> 2016-07-26 14:14 GMT+03:00 Dave <d...@eth0.ch>:
>>
>> I tried various debug levels, other command line switches or
>>> different configs - nothing happens.
>>>
>>> No port gets opened, nothing is printed to the console. However, the
>>> process is there. CTRL+C kills it.
>>>
>>> The same is with smsbox or fakesmsc, like the previously reported
>>> bug: https://redmine.kannel.org/issues/716 [1]
>>>
>>> David.
>>>
>>> On 26.07.2016 12:01, spameden wrote:
>>> It might be an issue with your configuration.
>>>
>>> Try running from console bearerbox -v 3 /path/to/kannel.conf and see
>>> what it gives you.
>>>
>>> 2016-07-26 12:32 GMT+03:00 Dave <d...@eth0.ch>:
>

Re: Building 1.4.4 for SUSE LES 11.4 - same as Bug #716

2016-07-26 Thread spameden
I'm not a SuSe Linux user, but I suggest building latest version from SVN
and see how it works.

Do you have any warnings when you compile?

Here is the way I compile:

./bootstrap.sh
./configure --with-mysql --disable-docs
make
cd gw
./bearerbox -v 3 /path/to/kannel.conf

I've just tested on my old squeeze machine latest SVN it gives some errors:

sh-4.1$ ./bearerbox --version
Kannel bearerbox version `svn-r5166M'.
Build `Jul 26 2016 14:25:43', compiler `4.4.5'.
System Linux, release 2.6.32-openvz-042stab113.21-amd64, version #1 SMP Wed
Mar 23 11:06:59 MSK 2016, machine x86_64.
Hostname localhost.localdomain, IP 127.0.0.1.
Libxml version 2.7.8.
Using OpenSSL 0.9.8o 01 Jun 2010.
Compiled with MySQL 5.1.73, using MySQL 5.1.73.
Using native malloc.

sh-4.1$ ./bearerbox
2016-07-26 14:27:45 [21915] [0] INFO: Debug_lvl = -1, log_file = ,
log_lvl = 0
2016-07-26 14:27:45 [21915] [0] ERROR: fopen failed: couldn't open
`kannel.conf'
2016-07-26 14:27:45 [21915] [0] ERROR: System error 2: No such file or
directory
2016-07-26 14:27:45 [21915] [0] PANIC: Failed to load main configuration
file `kannel.conf'. Aborting!
2016-07-26 14:27:45 [21915] [0] PANIC: ./bearerbox(gw_backtrace+0xae)
[0x4a54ae]
2016-07-26 14:27:45 [21915] [0] PANIC: ./bearerbox(gw_panic+0x159)
[0x4a5619]
2016-07-26 14:27:45 [21915] [0] PANIC: ./bearerbox(cfg_read+0x59f)
[0x49201f]
2016-07-26 14:27:45 [21915] [0] PANIC: ./bearerbox(main+0xc7) [0x410fa7]
2016-07-26 14:27:45 [21915] [0] PANIC:
/lib/libc.so.6(__libc_start_main+0xfd) [0x7fbc8cb63d2d]
2016-07-26 14:27:45 [21915] [0] PANIC: ./bearerbox() [0x40ff09]

Always include users@ list, so others benefit from your solution as well!

2016-07-26 14:14 GMT+03:00 Dave <d...@eth0.ch>:

> I tried various debug levels, other command line switches or different
> configs - nothing happens.
>
> No port gets opened, nothing is printed to the console. However, the
> process is there. CTRL+C kills it.
>
> The same is with smsbox or fakesmsc, like the previously reported bug:
> https://redmine.kannel.org/issues/716
>
> David.
>
>
> On 26.07.2016 12:01, spameden wrote:
>
>> It might be an issue with your configuration.
>>
>> Try running from console bearerbox -v 3 /path/to/kannel.conf and see
>> what it gives you.
>>
>> 2016-07-26 12:32 GMT+03:00 Dave <d...@eth0.ch>:
>>
>> Hi Kannel users,
>>>
>>> I need to get Kannel v1.4.4 working on SUSE LES 11 SP4 and get the
>>> same behaviour as reported under Bug #716:
>>>
>>> It builds and compiles. But when starting any of the resulting
>>> binaries on command line - nothing happens: no output to STOUT, no
>>> logs, no open ports - nothing. CTRL+C quits the process.
>>>
>>> Has this issue been fixed in the mean time or does anyone have a
>>> workaround for it?
>>>
>>> BTW: v1.4.3 or daily snapshot does build but not execute, too.
>>>
>>> Thanks a lot! David.
>>>
>>


Re: Building 1.4.4 for SUSE LES 11.4 - same as Bug #716

2016-07-26 Thread spameden
It might be an issue with your configuration.

Try running from console bearerbox -v 3 /path/to/kannel.conf and see what
it gives you.

2016-07-26 12:32 GMT+03:00 Dave :

> Hi Kannel users,
>
> I need to get Kannel v1.4.4 working on SUSE LES 11 SP4 and get the same
> behaviour as reported under Bug #716:
>
> It builds and compiles. But when starting any of the resulting binaries on
> command line - nothing happens: no output to STOUT, no logs, no open ports
> - nothing. CTRL+C quits the process.
>
> Has this issue been fixed in the mean time or does anyone have a
> workaround for it?
>
> BTW: v1.4.3 or daily snapshot does build but not execute, too.
>
> Thanks a lot! David.
>
>


Re: KSMPPD (alternative Kannel SMPP server) now available

2016-07-13 Thread spameden
That's a really big contribution!

Big up, Kurt!

Hopefully your server will be supported by community.

2016-07-13 19:40 GMT+03:00 Kurt Neo :

> Hi everyone,
>
> Apologies for cross posting. I just wanted to announce that there is an
> alternative to OpenSMPPBox and commercial SMPPBox now available named
> KSMPPD - it is completely free under the same license as Kannel. It works
> with Kannel the same as the above to products just has some other
> differences detailed on the repository page.
>
> If you would like to try it out in your deployments you can check it out
> here: https://github.com/kneodev/ksmppd
>
> If you have any issues or feedback you can leave them on the issue tracker.
>
> Thanks
>
>
>


Re: Kannel Queuing

2016-06-15 Thread spameden
Check your smsc logs.

Do you use mysql at all?

2016-06-15 15:00 GMT+03:00 Salih Al-Hassan :

> Hi,
>
> I have an issue where kannel starts to queue MT messages after some period
> of running. The TPS drops so low that i get 1 message delivered about every
> 10 seconds. I am able to free the queue by putting kannel in a suspended
> state.
>
> Has anyone experienced this?
>
> Regards,
> Salih Al-Hassan
>


Re: Issues with using UDH with sqlbox

2016-05-16 Thread spameden
check here
https://redmine.kannel.org/projects/kannel-sq-lbox/repository/entry/trunk/gw/sqlbox.c#L182

both msgdata and udhdata are urldecode prior doing anything.

/* URL-decode first */

if (octstr_url_decode(msg->sms.msgdata) == -1)

return -1;

if (octstr_url_decode(msg->sms.udhdata) == -1)

return -1;


also it's more appropriate to address your issue to users@ rather than
devel@, so I'm copying users@ list.

2016-05-16 23:01 GMT+03:00 spameden <spame...@gmail.com>:

> My guess is you need to urlencode UDH field.
>
> 2016-05-16 22:46 GMT+03:00 Jon Schøpzinsky <j...@teleguys.com>:
>
>> Hi Developers,
>>
>> I am using sqlbox to inject SMS’es into kannel.
>>
>> My client has specific needs as to how DLR is handled for concatenated
>> messages, and therefore I can’t let Kannel do it for me, as I need a DLR
>> when the entirety of the concatenated message is delivered.
>>
>> I have run into a problem though. Whenever I add the concatenation UDH
>> header to my INSERT, sqlbox strips away everything after the first 0x00
>> character.
>>
>> I have also found out why this is, as sqlbox fetches the udhdata field
>> using the octstr_null_create function, which in turn points to the
>> octstr_create function.
>> The documentation on this function, very specifically specifies, that it
>> sees 0x00 as a \0 string terminator, and therefore can’t read anything
>> after this.
>>
>> I have tried fixing it with at patch, that used the
>> octstr_create_from_data function instead, but that did not work either. It
>> again only reads until the first \0 characters, and then throws away the
>> rest.
>>
>> Is this something somebody with some more Kannel developer experience can
>> fix?
>>
>> Kind Regards
>> Jon Schøpzinsky
>> Teleguys
>>
>
>


Re: Ubuntu Package for 1.4.4?

2016-04-12 Thread spameden
There is only 1.4.4 packages available for:


   - wily  (net): WAP and SMS
   gateway [*universe*]
   1.4.4-1: amd64 i386
   - xenial  (net): WAP and SMS
   gateway [*universe*]
   1.4.4-2build1: amd64 i386

Building your own is very simple.

You can get package scripts from ubuntu packages and build your own package
from the source code.

2016-04-12 11:45 GMT+03:00 Dave :

> Hi all,
>
> I've wanted to update the current installation of Kannel on Ubuntu 12 and
> had to realize the latest stable version is not in the repository. Since I
> try to avoid building it from the sources I'd like to know about the status
> of such a package. Is it planned or are there incompatibilities with
> Ubuntu? Reading a few posts, it seems to be a bit of hassle compiling it
> from the source (haven't tried it yet).
>
> Thanks for feedback!
>
> Dave
>
>


Re: sqlbox make error

2016-03-24 Thread spameden
2016-03-24 22:52 GMT+03:00 christopher kamutumwa :

> hello,
>
> Ive installed kannel on ubuntu. now i want to install sqlbox i get
> below error kindly advise how to resolve this? i aready have mysql on
> server;
>
> sqlbox.c:98:2: error: #error You need support for at least one DB
> engine. Please recompile Kannel.
>  #error You need support for at least one DB engine. Please recompile
> Kannel.
>

Error is self-explanatory. Recompile kannel with mysql support:

./configure --with-mysql
make; make install

after that try compiling sqlbox again.

>
>
> regards chris
>
>


Re: smsbox - sqlbox - bearerbox & dlr status

2016-03-22 Thread spameden
Also have a read:
http://www.kannel.org/pipermail/users/2013-August/020120.html

2016-03-22 18:27 GMT+03:00 spameden <spame...@gmail.com>:

> ok, personally I'm using option 2 without any dlr.php or any other sort of
> scripts, so I end up with MT records in database with status field where
> field is filled with resulting status.
>
> Here are couple of ways to resolve what you need:
>
> 1. Set up trigger (as Rene already suggested) to update tables you need
> or update records in sent_sms based on the information coming from the DLR 
> from
> your upstream SMSC operators.
>
> 2. Modify sent_sms table, add status column and modify sqlbox code to
> UPDATE MT records right after DLR comes to the kannel setting the status
> from dlr_mask. I'd also suggest auto-generating dlr_url based on the
> current time so you would match correct entry.
>
> 3. You can use sqlbox with smsbox and set up a dlr_url hook to the
> external script.
>
>
> >How do I implement DLR status? Is my only option to archive this to create
> >a script that writes delivery status to my sent_sms table? If so, how to
> >add an ID that is stored to db?
>
> For this there is dlr_url field or dlr_url GET variable in sendsms query.
> For delivery script handling examples please search mailing lists or make
> yourself one (there is some examples in documentation I believe).
>
> 2016-03-22 17:53 GMT+03:00 <j...@evonet.fi>:
>
>> Actually I can't
>> All I find is notes to check kannel.org. And I cannot figure out how to
>> do
>> this on those documents? As you said its been raised many times, is the
>> documentation good?  If this sis just trivial thing how the hell I am so
>> stupid I cannot understand.
>>
>> thanx for your help
>>
>>
>>
>> > This question has been raised too many times. Can you search a bit on
>> > mailing lists?
>> >
>> > There are multiple solutions out there for your issue.
>> >
>> > 2016-03-22 17:18 GMT+03:00 <j...@evonet.fi>:
>> >
>> >> Hi
>> >>
>> >> I have working setup that sends sms messages just fine. Message is
>> >> copied
>> >> to sent_sms table as expected.
>> >>
>> >> How do I implement DLR status? Is my only option to archive this to
>> >> create
>> >> a script that writes delivery status to my sent_sms table? If so, how
>> to
>> >> add an ID that is stored to db? in case I use smsbox's http interface
>> to
>> >> receive user data.
>> >>
>> >> Or can I configure sqlbox to do this for me? Some discussion left an
>> >> impression to me, that this is possible, but I can't find
>> documentation
>> >> from kannel.org that helps me with this.
>> >>
>> >> If sqlbox can do it great, if not I think it's bit useless sw.
>> >>
>> >> and as an extra option how to configure sqlbox to save incoming sms:s
>> to
>> >> database? is it possible? and is there a way to use database to
>> >> configure
>> >> incoming sms rules, so that sql box would do the tricks...
>> >>
>> >> thx, Jarno
>> >>
>> >> -- kannel.conf
>> >> group = core
>> >> admin-port = 13000
>> >> admin-password = 
>> >> admin-deny-ip = "192.168.100.1" # deny outside gw
>> >> admin-allow-ip = "127.0.0.*;192.*.*.*"
>> >> smsbox-port = 15001
>> >> log-file = "/var/log/kannel/bearerbox.log"
>> >> box-deny-ip = "*.*.*.*"
>> >> box-allow-ip = "127.0.0.1"
>> >>
>> >> group = smsbox
>> >> bearerbox-host = 127.0.0.1
>> >> bearerbox-port = 15002
>> >> sendsms-port = 15015
>> >> global-sender =  "SERVICE_PROVIDER"
>> >> log-level = 0
>> >> log-file = "/var/log/kannel/smsbox.log"
>> >>
>> >> + incoming message groups
>> >>
>> >> --sqlbox.conf--
>> >> group = sqlbox
>> >> id = sqlbox-db
>> >> smsbox-id = sqlbox
>> >> bearerbox-host = localhost
>> >> bearerbox-port = 15001
>> >> smsbox-port = 15002
>> >> smsbox-port-ssl = false
>> >> sql-log-table = sent_sms
>> >> sql-insert-table = send_sms
>> >> log-file = "/var/log/kannel/kannel-sqlbox.log"
>> >> log-level = 0
>> >>
>> >> + mysql configuration
>> >>
>> >>
>> >>
>> >
>>
>>
>>
>


Re: smsbox - sqlbox - bearerbox & dlr status

2016-03-22 Thread spameden
ok, personally I'm using option 2 without any dlr.php or any other sort of
scripts, so I end up with MT records in database with status field where
field is filled with resulting status.

Here are couple of ways to resolve what you need:

1. Set up trigger (as Rene already suggested) to update tables you need or
update records in sent_sms based on the information coming from the DLR from
your upstream SMSC operators.

2. Modify sent_sms table, add status column and modify sqlbox code to
UPDATE MT records right after DLR comes to the kannel setting the status
from dlr_mask. I'd also suggest auto-generating dlr_url based on the
current time so you would match correct entry.

3. You can use sqlbox with smsbox and set up a dlr_url hook to the external
script.


>How do I implement DLR status? Is my only option to archive this to create
>a script that writes delivery status to my sent_sms table? If so, how to
>add an ID that is stored to db?

For this there is dlr_url field or dlr_url GET variable in sendsms query.
For delivery script handling examples please search mailing lists or make
yourself one (there is some examples in documentation I believe).

2016-03-22 17:53 GMT+03:00 :

> Actually I can't
> All I find is notes to check kannel.org. And I cannot figure out how to do
> this on those documents? As you said its been raised many times, is the
> documentation good?  If this sis just trivial thing how the hell I am so
> stupid I cannot understand.
>
> thanx for your help
>
>
>
> > This question has been raised too many times. Can you search a bit on
> > mailing lists?
> >
> > There are multiple solutions out there for your issue.
> >
> > 2016-03-22 17:18 GMT+03:00 :
> >
> >> Hi
> >>
> >> I have working setup that sends sms messages just fine. Message is
> >> copied
> >> to sent_sms table as expected.
> >>
> >> How do I implement DLR status? Is my only option to archive this to
> >> create
> >> a script that writes delivery status to my sent_sms table? If so, how to
> >> add an ID that is stored to db? in case I use smsbox's http interface to
> >> receive user data.
> >>
> >> Or can I configure sqlbox to do this for me? Some discussion left an
> >> impression to me, that this is possible, but I can't find  documentation
> >> from kannel.org that helps me with this.
> >>
> >> If sqlbox can do it great, if not I think it's bit useless sw.
> >>
> >> and as an extra option how to configure sqlbox to save incoming sms:s to
> >> database? is it possible? and is there a way to use database to
> >> configure
> >> incoming sms rules, so that sql box would do the tricks...
> >>
> >> thx, Jarno
> >>
> >> -- kannel.conf
> >> group = core
> >> admin-port = 13000
> >> admin-password = 
> >> admin-deny-ip = "192.168.100.1" # deny outside gw
> >> admin-allow-ip = "127.0.0.*;192.*.*.*"
> >> smsbox-port = 15001
> >> log-file = "/var/log/kannel/bearerbox.log"
> >> box-deny-ip = "*.*.*.*"
> >> box-allow-ip = "127.0.0.1"
> >>
> >> group = smsbox
> >> bearerbox-host = 127.0.0.1
> >> bearerbox-port = 15002
> >> sendsms-port = 15015
> >> global-sender =  "SERVICE_PROVIDER"
> >> log-level = 0
> >> log-file = "/var/log/kannel/smsbox.log"
> >>
> >> + incoming message groups
> >>
> >> --sqlbox.conf--
> >> group = sqlbox
> >> id = sqlbox-db
> >> smsbox-id = sqlbox
> >> bearerbox-host = localhost
> >> bearerbox-port = 15001
> >> smsbox-port = 15002
> >> smsbox-port-ssl = false
> >> sql-log-table = sent_sms
> >> sql-insert-table = send_sms
> >> log-file = "/var/log/kannel/kannel-sqlbox.log"
> >> log-level = 0
> >>
> >> + mysql configuration
> >>
> >>
> >>
> >
>
>
>


Re: smsbox - sqlbox - bearerbox & dlr status

2016-03-22 Thread spameden
This question has been raised too many times. Can you search a bit on
mailing lists?

There are multiple solutions out there for your issue.

2016-03-22 17:18 GMT+03:00 :

> Hi
>
> I have working setup that sends sms messages just fine. Message is copied
> to sent_sms table as expected.
>
> How do I implement DLR status? Is my only option to archive this to create
> a script that writes delivery status to my sent_sms table? If so, how to
> add an ID that is stored to db? in case I use smsbox's http interface to
> receive user data.
>
> Or can I configure sqlbox to do this for me? Some discussion left an
> impression to me, that this is possible, but I can't find  documentation
> from kannel.org that helps me with this.
>
> If sqlbox can do it great, if not I think it's bit useless sw.
>
> and as an extra option how to configure sqlbox to save incoming sms:s to
> database? is it possible? and is there a way to use database to configure
> incoming sms rules, so that sql box would do the tricks...
>
> thx, Jarno
>
> -- kannel.conf
> group = core
> admin-port = 13000
> admin-password = 
> admin-deny-ip = "192.168.100.1" # deny outside gw
> admin-allow-ip = "127.0.0.*;192.*.*.*"
> smsbox-port = 15001
> log-file = "/var/log/kannel/bearerbox.log"
> box-deny-ip = "*.*.*.*"
> box-allow-ip = "127.0.0.1"
>
> group = smsbox
> bearerbox-host = 127.0.0.1
> bearerbox-port = 15002
> sendsms-port = 15015
> global-sender =  "SERVICE_PROVIDER"
> log-level = 0
> log-file = "/var/log/kannel/smsbox.log"
>
> + incoming message groups
>
> --sqlbox.conf--
> group = sqlbox
> id = sqlbox-db
> smsbox-id = sqlbox
> bearerbox-host = localhost
> bearerbox-port = 15001
> smsbox-port = 15002
> smsbox-port-ssl = false
> sql-log-table = sent_sms
> sql-insert-table = send_sms
> log-file = "/var/log/kannel/kannel-sqlbox.log"
> log-level = 0
>
> + mysql configuration
>
>
>


Re: ERROR: connect failed kannel

2016-03-11 Thread spameden
2016-03-11 18:26 GMT+03:00 christopher kamutumwa <chriskamutu...@gmail.com>:

> hi results from
>
> # su - kannel
> > $ bearerbox /etc/kannel/kannel.conf. so what next
>  
>
2016-03-11 13:29:24 [10158] [0] PANIC: You MUST set HTTP admin-password
>

It writes you the reason once again...


> On 3/11/16, spameden <spame...@gmail.com> wrote:
> > Your log indicates there is a problem with bearearbox, try running
> > berarebox from the console and see what's the problem there:
> >
> > # su - kannel
> > $ bearerbox /etc/kannel/kannel.conf
> >
> > 2016-03-11 18:10 GMT+03:00 christopher kamutumwa
> > <chriskamutu...@gmail.com>:
> >
> >> Hi
> >> Ive installed kannel on my ubuntu machine LTS14 and kannel starts
> >> properly. but fails to connect to the bearer box below is error and
> >> conf file;will appreciate if this is sorted thanks
> >>
> >> 2016-03-11 11:22:24 [7362] [0] DEBUG: Started thread 5
> >> (gw/smsbox.c:url_result_thread)
> >> 2016-03-11 11:22:24 [7362] [0] DEBUG: Started thread 6
> >> (gw/smsbox.c:http_queue_thread)
> >> 2016-03-11 11:22:24 [7362] [0] ERROR: connect failed
> >> 2016-03-11 11:22:24 [7362] [0] ERROR: System error 111: Connection
> >> refused
> >> 2016-03-11 11:22:24 [7362] [0] ERROR: error connecting to server
> >> `localhost' at port `13001'
> >> 2016-03-11 11:22:24 [7362] [0] PANIC: Couldn't connect to the bearerbox.
> >> 2016-03-11 11:22:24 [7362] [0] PANIC: /usr/sbin/smsbox(gw_panic+0x17b)
> >> [0x43e14b]
> >> 2016-03-11 11:22:24 [7362] [0] PANIC: /usr/sbin/smsbox(main+0xcbc)
> >> [0x40e0fc]
> >> 2016-03-11 11:22:24 [7362] [0] PANIC:
> >> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)
> >> [0x7f750a6daec5]
> >> 2016-03-11 11:22:24 [7362] [0] PANIC: /usr/sbin/smsbox() [0x40ea35]
> >>
> >> # CORE
> >> group = core
> >> admin-port = 13000
> >> smsbox-port = 13001
> >> #admin-password = nochange
> >> #admin-deny-ip = "*.*.*.*"
> >> #admin-allow-ip = "127.0.0.1"
> >> log-file = /var/log/kannel/gateway.log
> >> log-level = 0
> >> access-log = /var/log/kannel/access.log
> >> store-type = file
> >> store-file = /var/log/kannel/kannel.store
> >> unified-prefix = "-,+"
> >> #unified-prefix = "+,00"
> >> #store-type = spool
> >> #store-location = /var/spool/kannel/store
> >> #smsbox-max-pending = 100
> >> #dlr-storage = mysql
> >>
> >> # SMSBOX
> >> group = smsbox
> >> smsbox-id = admin
> >> bearerbox-host = localhost
> >> sendsms-port = 13022
> >> bearerbox-port = 13001
> >> #sendsms-chars = "0123456789 +- "
> >> log-file = /var/log/kannel/smsbox.log
> >> log-level = 0
> >> access-log = /var/log/kannel/smsbox-access.log
> >>
> >> # the following is just standard dlr configuration
> >>
> >> group = mysql-connection
> >> id = mydlr
> >> host = localhost
> >> username = 
> >> password = x
> >> database = kannel
> >> # you can increase this upon a higher load
> >> max-connections = 100
> >>
> >> group = dlr-db
> >> id = mydlr
> >> table = dlr
> >> field-smsc = smsc
> >> field-timestamp = ts
> >> field-destination = destination
> >> field-source = source
> >> field-service = service
> >> field-url = url
> >> field-mask = mask
> >> field-status = status
> >> field-boxc-id = boxc
> >>
> >>  SMSC Links
> >> ##
> >>
> >> group = smsc
> >> smsc = fake
> >> port = 1
> >> connect-allow-ip = 127.0.0.1
> >> denied-smsc-id = cvd
> >>
> >>
> >> group = smsc
> >> smsc-id = vbv
> >> smsc = smpp
> >> system-type = ""
> >> interface-version = 34
> >> host = xxx
> >> port = 2779
> >> #receive-port = 2779
> >> smsc-username = abc
> >> smsc-password = abc
> >> transceiver-mode = true
> >> bind-addr-ton = 1
> >> bind-addr-npi = 0
> >> source-addr-ton = 5
> >> source-addr-npi = 0
> >> dest-addr-ton = 1
> >> dest-addr-npi = 1
> >> denied-smsc-id = xyz
> >> denied-prefix = "26097"
> >> msg-id-type 

Re: ERROR: connect failed kannel

2016-03-11 Thread spameden
Your log indicates there is a problem with bearearbox, try running
berarebox from the console and see what's the problem there:

# su - kannel
$ bearerbox /etc/kannel/kannel.conf

2016-03-11 18:10 GMT+03:00 christopher kamutumwa :

> Hi
> Ive installed kannel on my ubuntu machine LTS14 and kannel starts
> properly. but fails to connect to the bearer box below is error and
> conf file;will appreciate if this is sorted thanks
>
> 2016-03-11 11:22:24 [7362] [0] DEBUG: Started thread 5
> (gw/smsbox.c:url_result_thread)
> 2016-03-11 11:22:24 [7362] [0] DEBUG: Started thread 6
> (gw/smsbox.c:http_queue_thread)
> 2016-03-11 11:22:24 [7362] [0] ERROR: connect failed
> 2016-03-11 11:22:24 [7362] [0] ERROR: System error 111: Connection refused
> 2016-03-11 11:22:24 [7362] [0] ERROR: error connecting to server
> `localhost' at port `13001'
> 2016-03-11 11:22:24 [7362] [0] PANIC: Couldn't connect to the bearerbox.
> 2016-03-11 11:22:24 [7362] [0] PANIC: /usr/sbin/smsbox(gw_panic+0x17b)
> [0x43e14b]
> 2016-03-11 11:22:24 [7362] [0] PANIC: /usr/sbin/smsbox(main+0xcbc)
> [0x40e0fc]
> 2016-03-11 11:22:24 [7362] [0] PANIC:
> /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)
> [0x7f750a6daec5]
> 2016-03-11 11:22:24 [7362] [0] PANIC: /usr/sbin/smsbox() [0x40ea35]
>
> # CORE
> group = core
> admin-port = 13000
> smsbox-port = 13001
> #admin-password = nochange
> #admin-deny-ip = "*.*.*.*"
> #admin-allow-ip = "127.0.0.1"
> log-file = /var/log/kannel/gateway.log
> log-level = 0
> access-log = /var/log/kannel/access.log
> store-type = file
> store-file = /var/log/kannel/kannel.store
> unified-prefix = "-,+"
> #unified-prefix = "+,00"
> #store-type = spool
> #store-location = /var/spool/kannel/store
> #smsbox-max-pending = 100
> #dlr-storage = mysql
>
> # SMSBOX
> group = smsbox
> smsbox-id = admin
> bearerbox-host = localhost
> sendsms-port = 13022
> bearerbox-port = 13001
> #sendsms-chars = "0123456789 +- "
> log-file = /var/log/kannel/smsbox.log
> log-level = 0
> access-log = /var/log/kannel/smsbox-access.log
>
> # the following is just standard dlr configuration
>
> group = mysql-connection
> id = mydlr
> host = localhost
> username = 
> password = x
> database = kannel
> # you can increase this upon a higher load
> max-connections = 100
>
> group = dlr-db
> id = mydlr
> table = dlr
> field-smsc = smsc
> field-timestamp = ts
> field-destination = destination
> field-source = source
> field-service = service
> field-url = url
> field-mask = mask
> field-status = status
> field-boxc-id = boxc
>
>  SMSC Links ##
>
> group = smsc
> smsc = fake
> port = 1
> connect-allow-ip = 127.0.0.1
> denied-smsc-id = cvd
>
>
> group = smsc
> smsc-id = vbv
> smsc = smpp
> system-type = ""
> interface-version = 34
> host = xxx
> port = 2779
> #receive-port = 2779
> smsc-username = abc
> smsc-password = abc
> transceiver-mode = true
> bind-addr-ton = 1
> bind-addr-npi = 0
> source-addr-ton = 5
> source-addr-npi = 0
> dest-addr-ton = 1
> dest-addr-npi = 1
> denied-smsc-id = xyz
> denied-prefix = "26097"
> msg-id-type = 0x00
>
>
> group = smsc
> smsc-id = clx
> smsc = smpp
> system-type = ""
> interface-version = 34
> host = xxx
> port = 3600
> #receive-port = 3600
> smsc-username = abc
> smsc-password = abc
> transceiver-mode = true
> bind-addr-ton = 1
> bind-addr-npi = 0
> source-addr-ton = 5
> source-addr-npi = 0
> dest-addr-ton = 1
> dest-addr-npi = 1
> throughput = 70
> #max-pending-submit = 18
> #denied-smsc-id = xxx
> denied-smsc-id = xxx
> denied-prefix = "26097;26096"
>
> #
> # SENDSMS-USER
> group = sendsms-user
> username = smsgw
> password = pass123
> max-messages = 6
> concatenation = true
> default-smsc = crs
>
> #group = sendsms-user
> #username = kannel
> #password = crueT39
> #user-deny-ip = "*.*.*.*"
> #user-allow-ip = "usr-public-ip"
> #max-messages = 6
> #concatenation = true
>
> # Default servide
> #group = sms-service
> #keyword = default
> #text = "You have entered the wrong command. Please try again with
> correct syntax."
>
>
> group = sms-service
> keyword = default
> get-url = "
> http://185.3.90.96/innov8/index.php?app=call=gateway=kannel=geturl=%t=%q=%a=%Q
> "
> accept-x-kannel-headers = true
> max-messages = 1000
> concatenation = true
> catch-all = true
> text = "this is kreeper"
> omit-empty = true
>
>


Re: Error in kannel-monitor

2016-03-02 Thread spameden
2016-03-02 21:52 GMT+03:00 Milan P. Stanic <m...@arvanta.net>:

> On Wed, 2016-03-02 at 21:31, spameden wrote:
> > There is nothing wrong with php kannel monitor.
> >
> > It works just fine. Either you're using it wrong or not providing correct
> > password which you set in kannel.conf.
>
> I'm not using it at all. I just gave answer to Vladimir.
> I don't understand why you didn't answer to original message.
>


Sorry, my reply was to Vladimir rather than to you.

>
> > 2016-03-02 20:31 GMT+03:00 Milan P. Stanic <m...@arvanta.net>:
> >
> > > On Wed, 2016-03-02 at 10:49, Беляев Владимир Николаевич wrote:
> > > > This is a standard script from Kannel
> > > (gateway-1.5.0/contrib/kannel-monitor)
> > > > Standard script posted /var/www/html/kannel-monitor
> > > > If using a test script, all ok
> > > >  > > > $url = "http://localhost/;;
> > > > if (($fp = fopen($url, "r"))) {
> > > > echo "Ok";
> > > > }
> > > > else {
> > > > echo "Not ok";
> > > > }
> > > > fclose($fp);
> > > > ?>
> > > >
> > > > Perhaps the problem of access to the port 13000 (Kannel admin)
> > >
> > > Thanks God I didn't touched PHP in last fifteen years but from code
> > > snippet above it seems that you are right.
> > > Variable $url is missing port part.
> > > I'm not sure how to set port in php but I think it should be
> > > $url = "http://localhost:13000/;
> > >
> > > Few years ago I made small Perl monitor for Kannel and defined URL
> (host
> > > and port) in that way in the script.
> > >
> > > > Kannel 1.5.0, Centos 7, Kannel independently compiled
> > > >
> > > >
> > > > -Original Message-
> > > > From: devel [mailto:devel-boun...@kannel.org] On Behalf Of Milan P.
> > > Stanic
> > > > Sent: Tuesday, March 01, 2016 5:26 PM
> > > > To: de...@kannel.org
> > > > Subject: Re: Error in kannel-monitor
> > > >
> > > > Dear Vladimir,
> > > >
> > > > Please post your questions to users@kannel.org mailing list where
> you
> > > have better chances to get answer. de...@kannel.org list is for
> > > developers discussions.
> > > >
> > > > On Tue, 2016-03-01 at 10:47, Беляев Владимир Николаевич wrote:
> > > > > $url = $config["base_url"]."/status.xml";
> > > > > $xml_data = "";
> > > > > /* open the file description to the URL */
> > > > > if (($fp = fopen($url, "r"))) {
> > > > > $bgcolor = 'green';
> > > > > /* read the XML input */
> > > > > while (!feof($fp)) {
> > > > > $xml_data .= fread($fp, 20);
> > > > > }
> > > > > fclose($fp);
> > > > >
> > > > > Through the browser opens the URL
> > > >
> > > > It is not clear (at least to me) what you are trying to do with this
> php
> > > script and how do invoke it. Please try to describe what you are
> trying to
> > > achieve and how do you do that. Also describe your working environment
> i.e.
> > > your OS and how did you installed Kannel and accompanying software.
> > > >
> > > > > > When you open a kannel-monitor I get an error
> > > > > >
> > > > > > [Tue Feb 09 09:50:14.899177 2016] [:error] [pid 45752] [client
> > > > > > 172.19.1.35:56951] PHP Warning:
> > > > > > fopen(http://localhost:13000/status.xml?password=): failed to
> open
> > > stream:
> > > > > > Permission denied in /var/www/html/kannel-monitor/index.php on
> line
> > > > > > 91
> > > > > >
> > > > > > What can be wrong&
> > > > >
> > > > > Message tells that the index.php cannot open something (file,
> socket
> > > or something else).
> > > > > Look at line 91 in index.php script and see what file it is trying
> to
> > > open and check the permissions of that file and who is the owner of it.
> > > > >
> > > > > Or, post your index.php script (just few lines around line 91) so
> > > someone could give you a hint.
> > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
>
>


Re: Not work "priority" in settings SMSC

2016-02-10 Thread spameden
2016-02-11 8:34 GMT+03:00 Беляев Владимир Николаевич <v.bely...@sngb.ru>:

> I have 2 SMSC - the main and reserve.
>
> It is necessary to disable SMS with the main SMSC is automatically sent
> through the backup SMSC.
>
> After the restoration of connection with the main SMSC came sms return to
> it.
>
> SMS sent via SMPP
>

It's usually called failover. This should be handled on your application
level. I'm afraid kannel in it's current state can't do this task for you
with 1 config option.

The only option here is to make same name for smsc-id SMSC upstream links,
but in this case messages will be split over both uplinks if they are both
online on round-robin algorythm, so it won't work for you.




>
>
> --
>
>
>
> *С уважением,Беляев В.Н.*
>
> *From:* spameden [mailto:spame...@gmail.com]
> *Sent:* Thursday, February 11, 2016 10:29 AM
> *To:* Беляев Владимир Николаевич
> *Cc:* users@kannel.org
>
> *Subject:* Re: Not work "priority" in settings SMSC
>
>
>
>
>
>
>
> 2016-02-11 7:31 GMT+03:00 Беляев Владимир Николаевич <v.bely...@sngb.ru>:
>
> While you can install one primary center and the other - a reserve that it
> went SMS only in case of unavailability of the ground?
>
>
>
> If I got you right you want to have multiple SMSC connections and balance
> between them if ONLY one of the link goes down?
>
>
>
> You can do this if you assign different smsc-id for each SMSC connection
> and specify smsc-id at your application level, e.g.:
>
> for smsbox: http://.../sendsms?receiver=..._id=smscid1
> sendsms?receiver=..._id=smscid2
>
>
>
> or for sqlbox: you can just set smsc-id="smscid1" upon INSERT.
>
>
>
> You can monitor current state of SMSC uplinks via berearebox status page.
>
>
> --
> С уважением,
> Беляев В.Н.
>
> -Original Message-
> From: users [mailto:users-boun...@kannel.org] On Behalf Of Milan P. Stanic
> Sent: Wednesday, February 10, 2016 11:05 PM
> To: users@kannel.org
> Subject: Re: Not work "priority" in settings SMSC
>
> On Wed, 2016-02-10 at 16:31, Беляев Владимир Николаевич wrote:
> > Option does not work "priority" in settings SMSC.
> >
> > I set up the SMSC1 priority=0, SMSC2 priority=3, but SMS is
> > distributed evenly.
> >
> > Why can this be?
>
> I don't have time to look into the code but from memory I think that the
> priority parameter is for setting default message priority for particular
> SMSC and is not global parameter which set priorities between SMSCs. But, I
> could be wrong.
>
> > Kannel 1.5.0
> >
> > Config:
> > group=smsc
> > smsc=smpp
> >
> > smsc-id=devino_mrk
> >
> > system-type=
> >
> > interface-version=34
> >
> > enquire-link-interval=270
> >
> > source-addr-ton=5
> >
> > source-addr-npi=1
> >
> > dest-addr-ton=1
> >
> > dest-addr-npi=1
> >
> > msg-id-type=0x00
> >
> > log-file="/var/log/kannel/devino_mrk.log"
> >
> > log-level=0
> >
> > priority=0
> >
> >
> >
> > # СМС-Трафик тест
> >
> > group=smsc
> >
> > smsc=smpp
> >
> > smsc-id=smstraffic_test
> >
> > system-type=smpp
> >
> > interface-version=34
> >
> > enquire-link-interval=270
> >
> > source-addr-ton=1
> >
> > source-addr-npi=1
> >
> > dest-addr-ton=1
> >
> > dest-addr-npi=1
> >
> > msg-id-type=0x00
> >
> > log-file="/var/log/kannel/smstraffic_test.log"
> >
> > log-level=0
> >
> > priority=3
>
>
>
>
>
>


Re: Delivery reports Queued

2016-02-10 Thread spameden
This question was already replied before.

DLR storage is only temporary. Kannel uses dlr table in DB/memory/file just
to track certain DLRs for certain messages.

Generally, the more you have in this queue means more messages weren't
delivered to your upstream.

You might need to check with your upstream SMSC provider or use proper
dlr_mask to get all types of delivery reports (dlr_mask=31).

2016-02-11 8:36 GMT+03:00 Robin C :

> Hi All,
>
>  See my kannel status below. I sent 12 messages. But didnt
> receive any single DLR. All DLRs are in queue. Anybody know the reson for
> this?
>
>
> SMS: received 0 (0 queued), sent 12 (0 queued), store size 0
> SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec
>
> DLR: received 0, sent 0
> DLR: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec
> DLR: 12 queued, using mysql storage
>
> --
>
>*Thanks & Regards,*
>
>
>
>   Robin C
>
>  Linux System Administrator
>
>
>
> *ZIN-CRON | Bulk Sms, Voice Calls, Long Codes, Short Codes, Software
> Development, Web & Graphic Designing.*
>
>
> *www.zincron.co.in  | www. easyhops.co.in
>  | www.equipe.co.in   *
>
> *Corporate Office: NRA-99, Observatory Lane, Palayam, Trivandrum, Kerala*
>
>
> *Mobile: +919544861010 *| Phone: 91-471- 4140414 |  Fax : 91-471-4010413
> | Raise Your Ticket: zincron-ticketing.com
>
>
> Connect with us @ Facebook
> 
>  | LinkedIn
> 
>
> Disclaimer:  This message contains confidential information and is
> intended only for the individual named.  If you are not the named addressee
> you should not disseminate, distribute or copy this e-mail.  Please notify
> the sender immediately by e-mail if you have received this e-mail by
> mistake and delete this e-mail from your system.  E-mail transmission
> cannot be guaranteed to be secure or error-free as information could be
> intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
> contain viruses.  The sender therefore does not accept liability for any
> errors or omissions in the contents of this message, which arise as a
> result of e-mail transmission.  If verification is required please request
> a hard-copy version.
>
> *7* Switch off as you go |*q *Recycle always | P Print only if absolutely
> necessary
>


Re: Not work "priority" in settings SMSC

2016-02-10 Thread spameden
2016-02-11 7:31 GMT+03:00 Беляев Владимир Николаевич :

> While you can install one primary center and the other - a reserve that it
> went SMS only in case of unavailability of the ground?
>

If I got you right you want to have multiple SMSC connections and balance
between them if ONLY one of the link goes down?

You can do this if you assign different smsc-id for each SMSC connection
and specify smsc-id at your application level, e.g.:
for smsbox: http://.../sendsms?receiver=..._id=smscid1
sendsms?receiver=..._id=smscid2

or for sqlbox: you can just set smsc-id="smscid1" upon INSERT.

You can monitor current state of SMSC uplinks via berearebox status page.

>
> --
> С уважением,
> Беляев В.Н.
>
> -Original Message-
> From: users [mailto:users-boun...@kannel.org] On Behalf Of Milan P. Stanic
> Sent: Wednesday, February 10, 2016 11:05 PM
> To: users@kannel.org
> Subject: Re: Not work "priority" in settings SMSC
>
> On Wed, 2016-02-10 at 16:31, Беляев Владимир Николаевич wrote:
> > Option does not work "priority" in settings SMSC.
> >
> > I set up the SMSC1 priority=0, SMSC2 priority=3, but SMS is
> > distributed evenly.
> >
> > Why can this be?
>
> I don't have time to look into the code but from memory I think that the
> priority parameter is for setting default message priority for particular
> SMSC and is not global parameter which set priorities between SMSCs. But, I
> could be wrong.
>
> > Kannel 1.5.0
> >
> > Config:
> > group=smsc
> > smsc=smpp
> >
> > smsc-id=devino_mrk
> >
> > system-type=
> >
> > interface-version=34
> >
> > enquire-link-interval=270
> >
> > source-addr-ton=5
> >
> > source-addr-npi=1
> >
> > dest-addr-ton=1
> >
> > dest-addr-npi=1
> >
> > msg-id-type=0x00
> >
> > log-file="/var/log/kannel/devino_mrk.log"
> >
> > log-level=0
> >
> > priority=0
> >
> >
> >
> > # СМС-Трафик тест
> >
> > group=smsc
> >
> > smsc=smpp
> >
> > smsc-id=smstraffic_test
> >
> > system-type=smpp
> >
> > interface-version=34
> >
> > enquire-link-interval=270
> >
> > source-addr-ton=1
> >
> > source-addr-npi=1
> >
> > dest-addr-ton=1
> >
> > dest-addr-npi=1
> >
> > msg-id-type=0x00
> >
> > log-file="/var/log/kannel/smstraffic_test.log"
> >
> > log-level=0
> >
> > priority=3
>
>
>
>
>
>


Re: Delivery reports Queued

2016-02-10 Thread spameden
I think it's best to ask your SMSC operator, might be an issue on their
side.

2016-02-11 10:04 GMT+03:00 Robin C :

> Hi,
>
>Please find the pdu below. And we set dlr_mask = 31. Then we got
> the ACK only.
>
>
> 2016-02-11 12:25:07 [30659] [6] DEBUG: SMPP[DNDP_P]: Sending PDU:
> 2016-02-11 12:25:07 [30659] [6] DEBUG: SMPP PDU 0x7f2cd8000a10 dump:
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   type_name: submit_sm
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   command_id: 4 = 0x0004
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   command_status: 0 = 0x
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   sequence_number: 318 = 0x013e
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   service_type: NULL
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   source_addr_ton: 5 = 0x0005
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   source_addr_npi: 0 = 0x
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   source_addr: "senderid"
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   dest_addr_ton: 1 = 0x0001
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   dest_addr_npi: 1 = 0x0001
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   destination_addr: "mobilenumber"
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   esm_class: 3 = 0x0003
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   protocol_id: 0 = 0x
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   priority_flag: 0 = 0x
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   schedule_delivery_time: NULL
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   validity_period: NULL
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   registered_delivery: 1 =
> 0x0001
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   replace_if_present_flag: 0 =
> 0x
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   data_coding: 0 = 0x
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   sm_default_msg_id: 0 = 0x
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   sm_length: 15 = 0x000f
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   short_message: "testing new sms"
> 2016-02-11 12:25:07 [30659] [6] DEBUG: SMPP PDU dump ends.
>
>
>


Re: Delivery reports Queued

2016-02-10 Thread spameden
Dear, Vladimir Nikolaevich.

Can you please stop hijacking other people threads?

And read documentation a bit before asking your questions here:
http://kannel.org/userguide.shtml

It's all described in the documentation.

2016-02-11 10:15 GMT+03:00 Беляев Владимир Николаевич <v.bely...@sngb.ru>:

>
> How to install dlr mask = 31?
>
> *From:* users [mailto:users-boun...@kannel.org] *On Behalf Of *Robin C
> *Sent:* Thursday, February 11, 2016 12:05 PM
> *To:* spameden
> *Cc:* kannel users@kannel.org
> *Subject:* Re: Delivery reports Queued
>
>
>
> Hi,
>
>
>
>Please find the pdu below. And we set dlr_mask = 31. Then we got
> the ACK only.
>
>
>
>
>
> 2016-02-11 12:25:07 [30659] [6] DEBUG: SMPP[DNDP_P]: Sending PDU:
>
> 2016-02-11 12:25:07 [30659] [6] DEBUG: SMPP PDU 0x7f2cd8000a10 dump:
>
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   type_name: submit_sm
>
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   command_id: 4 = 0x0004
>
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   command_status: 0 = 0x
>
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   sequence_number: 318 = 0x013e
>
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   service_type: NULL
>
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   source_addr_ton: 5 = 0x0005
>
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   source_addr_npi: 0 = 0x
>
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   source_addr: "senderid"
>
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   dest_addr_ton: 1 = 0x0001
>
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   dest_addr_npi: 1 = 0x0001
>
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   destination_addr: "mobilenumber"
>
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   esm_class: 3 = 0x0003
>
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   protocol_id: 0 = 0x
>
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   priority_flag: 0 = 0x
>
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   schedule_delivery_time: NULL
>
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   validity_period: NULL
>
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   registered_delivery: 1 =
> 0x0001
>
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   replace_if_present_flag: 0 =
> 0x
>
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   data_coding: 0 = 0x
>
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   sm_default_msg_id: 0 = 0x
>
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   sm_length: 15 = 0x000f
>
> 2016-02-11 12:25:07 [30659] [6] DEBUG:   short_message: "testing new sms"
>
> 2016-02-11 12:25:07 [30659] [6] DEBUG: SMPP PDU dump ends.
>
>
>
>
>


Re: Not work "priority" in settings SMSC

2016-02-10 Thread spameden
Hello.

According to documentation:

priority number
Optional, sets the default priority of messages transmitted over this smsc
link. (Defaults to 0, which is the highest priority)
which means that default priority is 0 (highest), range of priority field
is 0-3, 0 is highest, 3 is lowest.

so you need to form a queue where all messages are going with priority = 3
or priority = 2 if you like and set priority=0 for messages which should go
in hurry first.

in kannel there is a prioqueue algorythm implemented, so generally it
should work.

If it's not - you might try this solution with sqlbox:
http://stackoverflow.com/questions/8458566/implementing-priority-queue-in-kannel

2016-02-10 21:05 GMT+03:00 Milan P. Stanic :

> On Wed, 2016-02-10 at 16:31, Беляев Владимир Николаевич wrote:
> > Option does not work "priority" in settings SMSC.
> >
> > I set up the SMSC1 priority=0, SMSC2 priority=3, but SMS is distributed
> > evenly.
> >
> > Why can this be?
>
> I don't have time to look into the code but from memory I think that the
> priority parameter is for setting default message priority for
> particular SMSC and is not global parameter which set priorities between
> SMSCs. But, I could be wrong.
>
> > Kannel 1.5.0
> >
> > Config:
> > group=smsc
> > smsc=smpp
> >
> > smsc-id=devino_mrk
> >
> > system-type=
> >
> > interface-version=34
> >
> > enquire-link-interval=270
> >
> > source-addr-ton=5
> >
> > source-addr-npi=1
> >
> > dest-addr-ton=1
> >
> > dest-addr-npi=1
> >
> > msg-id-type=0x00
> >
> > log-file="/var/log/kannel/devino_mrk.log"
> >
> > log-level=0
> >
> > priority=0
> >
> >
> >
> > # СМС-Трафик тест
> >
> > group=smsc
> >
> > smsc=smpp
> >
> > smsc-id=smstraffic_test
> >
> > system-type=smpp
> >
> > interface-version=34
> >
> > enquire-link-interval=270
> >
> > source-addr-ton=1
> >
> > source-addr-npi=1
> >
> > dest-addr-ton=1
> >
> > dest-addr-npi=1
> >
> > msg-id-type=0x00
> >
> > log-file="/var/log/kannel/smstraffic_test.log"
> >
> > log-level=0
> >
> > priority=3
>
>


Re: Delivery reports Queued

2016-02-10 Thread spameden
Few things:

1) set your smsc operator logs to debug level 0 to check if kannel is
sending registered_delivery flag in submit_sm packet.

2) make sure you use proper dlr_mask=31

2016-02-11 9:29 GMT+03:00 Robin C <ro...@zincron.co.in>:

> Hi spameden,
>
>   Thank you for your reply. Actually the message
> got delivered to our handset. But we didn't got any response from the
> operator. When we check the access file of kannel we can only see the Sent
> SMS field. Receive DLR is not coming. Is that because of our fault or it is
> happening because the operator is not giving us the report?
>
> On Thu, Feb 11, 2016 at 11:47 AM, spameden <spame...@gmail.com> wrote:
>
>> This question was already replied before.
>>
>> DLR storage is only temporary. Kannel uses dlr table in DB/memory/file
>> just to track certain DLRs for certain messages.
>>
>> Generally, the more you have in this queue means more messages weren't
>> delivered to your upstream.
>>
>> You might need to check with your upstream SMSC provider or use proper
>> dlr_mask to get all types of delivery reports (dlr_mask=31).
>>
>> 2016-02-11 8:36 GMT+03:00 Robin C <ro...@zincron.co.in>:
>>
>>> Hi All,
>>>
>>>  See my kannel status below. I sent 12 messages. But
>>> didnt receive any single DLR. All DLRs are in queue. Anybody know the reson
>>> for this?
>>>
>>>
>>> SMS: received 0 (0 queued), sent 12 (0 queued), store size 0
>>> SMS: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec
>>>
>>> DLR: received 0, sent 0
>>> DLR: inbound (0.00,0.00,0.00) msg/sec, outbound (0.00,0.00,0.00) msg/sec
>>> DLR: 12 queued, using mysql storage
>>>
>>> --
>>>
>>>*Thanks & Regards,*
>>>
>>>
>>>
>>>   Robin C
>>>
>>>  Linux System Administrator
>>>
>>>
>>>
>>> *ZIN-CRON | Bulk Sms, Voice Calls, Long Codes, Short Codes, Software
>>> Development, Web & Graphic Designing.*
>>>
>>>
>>> *www.zincron.co.in <http://www.zincron.co.in/> | www. easyhops.co.in
>>> <http://easyhops.co.in/> | www.equipe.co.in <http://www.quipe.co.in/>  *
>>>
>>> *Corporate Office: NRA-99, Observatory Lane, Palayam, Trivandrum, Kerala*
>>>
>>>
>>> *Mobile: +919544861010 *| Phone: 91-471- 4140414 |  Fax :
>>> 91-471-4010413 | Raise Your Ticket: zincron-ticketing.com
>>>
>>>
>>> Connect with us @ Facebook
>>> <https://www.facebook.com/pages/Zincron-iTechnology-Resource-Pvt-Ltd/206230109472685>
>>>  | LinkedIn
>>> <http://www.linkedin.com/pub/zin-cron-i-technology-resources-pl/69/498/b0a>
>>>
>>> Disclaimer:  This message contains confidential information and is
>>> intended only for the individual named.  If you are not the named addressee
>>> you should not disseminate, distribute or copy this e-mail.  Please notify
>>> the sender immediately by e-mail if you have received this e-mail by
>>> mistake and delete this e-mail from your system.  E-mail transmission
>>> cannot be guaranteed to be secure or error-free as information could be
>>> intercepted, corrupted, lost, destroyed, arrive late or incomplete, or
>>> contain viruses.  The sender therefore does not accept liability for any
>>> errors or omissions in the contents of this message, which arise as a
>>> result of e-mail transmission.  If verification is required please request
>>> a hard-copy version.
>>>
>>> *7* Switch off as you go |*q *Recycle always | P Print only if
>>> absolutely necessary
>>>
>>
>>
>
>
> --
>
>*Thanks & Regards,*
>
>
>
>   Robin C
>
>  Linux System Administrator
>
>
>
> *ZIN-CRON | Bulk Sms, Voice Calls, Long Codes, Short Codes, Software
> Development, Web & Graphic Designing.*
>
>
> *www.zincron.co.in <http://www.zincron.co.in/> | www. easyhops.co.in
> <http://easyhops.co.in/> | www.equipe.co.in <http://www.quipe.co.in/>  *
>
> *Corporate Office: NRA-99, Observatory Lane, Palayam, Trivandrum, Kerala*
>
>
> *Mobile: +919544861010 *| Phone: 91-471- 4140414 |  Fax : 91-471-4010413
> | Raise Your Ticket: zincron-ticketing.com
>
>
> Connect with us @ Facebook
> <https://www.facebook.com/pages/Zincron-iTechnology-Resource-Pvt-Ltd/206230109472685>
>  | LinkedIn
> <http://www.linkedin.com/pub/zin-cron-i-technology

Re: OPEN SMPP Configuration and Working

2016-02-10 Thread spameden
Dear, Robin C nobody is going to do for you your work of reading and
understanding documentation and how to get things done.

If you want someone to do the job, just hire the guy and pay him for the
hassle.

2016-02-10 13:41 GMT+03:00 Milan P. Stanic :

> On Wed, 2016-02-10 at 13:43, Robin C wrote:
> >Anybody help me to install opensmpp to create smpp
> > users.
>
> You should describe in more details what is your problem and what you
> want to achieve and then someone could help you.
>
> Please read http://www.catb.org/esr/faqs/smart-questions.html which
> explains how to ask questions in the mailing list. Understanding how to
> ask gives you a better chances to get the right and helpful answer.
>
>


Re: How to send in another encoding

2016-01-23 Thread spameden
1) Which kinda distro you're using?

2) I've just checked on Debian Wheezy 7 (with latest updates), kannel
compiles just fine, here is a list of required packages:

Here is a number of commands to run (1st line is debian/ubuntu specific):
apt-get install subversion bison flex build-essential libxml2-dev libtool
libmysqlclient-dev libssl-dev
svn co https://svn.kannel.org/gateway/trunk/ kannel
cd kannel
./configure --with-mysql
make
make install
cd addons/sqlbox
./configure --with-mysql
make
make install

3)  Bison and Flex packages:
ii  bison   1:2.5.dfsg-2.1
ii  flex2.5.35-10.1

2016-01-23 13:05 GMT+03:00 Deins <notabenaaba...@gmail.com>:

> I delete folder with extracted archive, purge and install bison and flex
> packages.
> make command:
>
> $ ./configure --with-mysql --with-mysql-dir='/usr/share/mysql'
> it works right, next I do
>
> $ make
>
> and got error:
> *In file included from wmlscript/wslexer.c:72:0:*
> *y.tab.h:262:5: error: conflicting types for ‘ws_yy_parse’*
> *In file included from wmlscript/wslexer.c:70:0:*
> *wmlscript/wsint.h:296:5: note: previous declaration of ‘ws_yy_parse’ was
> here*
> * int ws_yy_parse(void *context);*
>
> I looked at wmlscript/wslexer.c, there are two "include" directives on
> lines 70 and 72 and in both included files declared 'ws_yy_parse'.
>
> Is it a bug?
>
>
>
> On 01/23/2016 04:09 PM, spameden wrote:
>
>
>
> 2016-01-23 11:22 GMT+03:00 Deins <notabenaaba...@gmail.com>:
>
>> Trying to install Kannel 1.4.4 from official site.
>> 1. ./configure - ok
>> 2. make - got error "unknown type name YYLTYPE"
>>
>> found in google, that it is something similar Yacc or Bison parser.
>> Currently bison 2:3.0.3 is installed.
>> I don't know much about this (better to say I don't know anything about
>> yacc).
>> Need help.
>>
>
> Try installing flex and bison and run configure again.
>
> Also make sure you run ./configure --with-mysql
>
>
>>
>>
>> On 01/23/2016 01:13 AM, spameden wrote:
>>
>>
>>
>> 2016-01-22 19:54 GMT+03:00 Deins < <notabenaaba...@gmail.com>
>> notabenaaba...@gmail.com>:
>>
>>> 1) I use Kannel 1.4.3 from Debian repo. I will try to install latest
>>> stable version if nothing helps.
>>> 2) All tables in my database already was utf8, but to be sure I'm
>>> executed:
>>> ALTER TABLE send_sms CONVERT TO CHARACTER SET utf8;
>>> ...
>>> 3) yes, it is
>>> 4) coding=2, charset=utf8
>>>
>>>
>>
>>> 5) now I have "empty square" characters on my phone.
>>>
>>
>> As I said before you need to use latest version from SVN or version 1.4.4
>> (which is stable and released), althrough SVN version is considered to be
>> production ready and have most of the bugs fixed. You need to use SVN
>> version of sqlbox as well as kannel.
>>
>> In version 1.4.3 and 1.5.0 (previous DEV version) there was a bug related
>> to UCS-2 characters conversion which was fixed 2 years ago or so, so just
>> use SVN version it's best and it's not hard to compile.
>>
>>>
>>> On 01/22/2016 06:30 PM, spameden wrote:
>>>
>>> To get proper cyrillic or any UCS-2 text on your handset:
>>>
>>> 1) Make sure you use latest kannel version from SVN (compile it
>>> yourself)
>>>
>>> 2) execute in MySQL:
>>> ALTER table send_sms charset=utf8
>>> ALTER table sent_sms charset=utf8
>>> ALTER table dlr charset=utf8
>>> So all your tables will be in utf8 encoding.
>>>
>>> 3) When you insert text into send_sms table you need to make sure text
>>> is in UTF-8 encoding and urlencoded.
>>>
>>> 4) set coding=2 and charset='utf8', NOTE: each MT will be limited to 70
>>> symbols. If you use concatenated MT each part will be limited to 69 symbols.
>>>
>>> 5) This way you'll get proper text on your handset.
>>>
>>> About msgdata field in sent_sms table: text is double urlencoded, I
>>> think it's either a bug in kannel or feature (?). Text is urlencoded to
>>> avoid all hassle to deal with many encodings out there, because for every
>>> encoding you'd need proper escaping, this way kannel deals with escaping.
>>> If you really need to preserve original text (AS IS) you need to modify
>>> kannel's source code as well as sqlbox, which can be tricky OR as a
>>> workaround you can have another table where you INSERT your text as well
>>> and save it for billing purposes (e.g. billing table)
>>>
>>> Generally speaking: both send_sms and sent_sms tables are kinda
>>> temporary tables (at least I keep only 24 hours records there so kannel
>>> operates quickly, because it still depends on MySQL answer).
>>>
>>> You can set a TRIGGER on sent_sms table and get updated your other
>>> billing table.
>>>
>>> 2016-01-22 14:08 GMT+03:00 Deins < <notabenaaba...@gmail.com>
>>> notabenaaba...@gmail.com>:
>>>
>>>> I need to send sms with a cyrillic symbols. I write sql query with a
>>>> field coding=2.
>>>> In the send_sms table I see right value of the msgdata field. But in
>>>> sent_sms table all characters transforms into 3F3F3F string. How to
>>>> deal with it?
>>>>
>>>>
>>>
>>>
>>
>>
>
>


Re: How to send in another encoding

2016-01-23 Thread spameden
2016-01-23 11:22 GMT+03:00 Deins <notabenaaba...@gmail.com>:

> Trying to install Kannel 1.4.4 from official site.
> 1. ./configure - ok
> 2. make - got error "unknown type name YYLTYPE"
>
> found in google, that it is something similar Yacc or Bison parser.
> Currently bison 2:3.0.3 is installed.
> I don't know much about this (better to say I don't know anything about
> yacc).
> Need help.
>

Try installing flex and bison and run configure again.

Also make sure you run ./configure --with-mysql


>
>
> On 01/23/2016 01:13 AM, spameden wrote:
>
>
>
> 2016-01-22 19:54 GMT+03:00 Deins <notabenaaba...@gmail.com>:
>
>> 1) I use Kannel 1.4.3 from Debian repo. I will try to install latest
>> stable version if nothing helps.
>> 2) All tables in my database already was utf8, but to be sure I'm
>> executed:
>> ALTER TABLE send_sms CONVERT TO CHARACTER SET utf8;
>> ...
>> 3) yes, it is
>> 4) coding=2, charset=utf8
>>
>>
>
>> 5) now I have "empty square" characters on my phone.
>>
>
> As I said before you need to use latest version from SVN or version 1.4.4
> (which is stable and released), althrough SVN version is considered to be
> production ready and have most of the bugs fixed. You need to use SVN
> version of sqlbox as well as kannel.
>
> In version 1.4.3 and 1.5.0 (previous DEV version) there was a bug related
> to UCS-2 characters conversion which was fixed 2 years ago or so, so just
> use SVN version it's best and it's not hard to compile.
>
>>
>> On 01/22/2016 06:30 PM, spameden wrote:
>>
>> To get proper cyrillic or any UCS-2 text on your handset:
>>
>> 1) Make sure you use latest kannel version from SVN (compile it yourself)
>>
>> 2) execute in MySQL:
>> ALTER table send_sms charset=utf8
>> ALTER table sent_sms charset=utf8
>> ALTER table dlr charset=utf8
>> So all your tables will be in utf8 encoding.
>>
>> 3) When you insert text into send_sms table you need to make sure text is
>> in UTF-8 encoding and urlencoded.
>>
>> 4) set coding=2 and charset='utf8', NOTE: each MT will be limited to 70
>> symbols. If you use concatenated MT each part will be limited to 69 symbols.
>>
>> 5) This way you'll get proper text on your handset.
>>
>> About msgdata field in sent_sms table: text is double urlencoded, I think
>> it's either a bug in kannel or feature (?). Text is urlencoded to avoid all
>> hassle to deal with many encodings out there, because for every encoding
>> you'd need proper escaping, this way kannel deals with escaping. If you
>> really need to preserve original text (AS IS) you need to modify kannel's
>> source code as well as sqlbox, which can be tricky OR as a workaround you
>> can have another table where you INSERT your text as well and save it for
>> billing purposes (e.g. billing table)
>>
>> Generally speaking: both send_sms and sent_sms tables are kinda temporary
>> tables (at least I keep only 24 hours records there so kannel operates
>> quickly, because it still depends on MySQL answer).
>>
>> You can set a TRIGGER on sent_sms table and get updated your other
>> billing table.
>>
>> 2016-01-22 14:08 GMT+03:00 Deins < <notabenaaba...@gmail.com>
>> notabenaaba...@gmail.com>:
>>
>>> I need to send sms with a cyrillic symbols. I write sql query with a
>>> field coding=2.
>>> In the send_sms table I see right value of the msgdata field. But in
>>> sent_sms table all characters transforms into 3F3F3F string. How to
>>> deal with it?
>>>
>>>
>>
>>
>
>


Re: How to send in another encoding

2016-01-23 Thread spameden
2016-01-23 22:43 GMT+03:00 Deins <notabenaaba...@gmail.com>:

> It was a mistake with encodings in external program (from where I add
> records to send_sms table). I fix it and now everything works.
>
> For now I have a working system.
>
> No. You need to have kannel installed (make install) before sqlbox
> compilation. Otherwise sqlbox might use your old kannel installation.
>
> I have written it wrong. I installed them not simultaneously but sequentially.
> kannel was installed without issues, but with installing sqlbox after
> kannel was a problems.
> But for now I have a working system.
>

Good that you got it working in the end :)


> Later I will try to reinstall kannel and sqlbox with a checkinstall.
> Or may be fresh kannel version will be add to Debian repository.
>

Best is to use dpkg-buildpackage to build a proper package, you can get
debian folder from existing debian package, adjust it a bit and make your
own package of fresh kannel / sqlbox .

>
> Thank you for your help!
>
>
> On 01/24/2016 02:27 AM, spameden wrote:
>
>
>
> 2016-01-23 22:10 GMT+03:00 Deins <notabenaaba...@gmail.com>:
>
>> I use Debian Jessie 8
>> I tried to install kannel and sqlbox with a checkinstall, but it didn't
>> work out.
>>
>
> No. You need to have kannel installed (make install) before sqlbox
> compilation. Otherwise sqlbox might use your old kannel installation.
>
> Also make sure you run proper kannel binary, by default make install
> installs (I think) into /usr/local/sbin not from /usr/sbin, so check with
>
> ps aux|grep -E 'bearerbox|sqlbox'
>
> if it's running correct binary or just edit /etc/init.d/kannel script to
> make sure it uses proper binaries from correct path.
>
> So I just repeated commands you wrote. Now it's works.
>>
>> Now I have a symbols on my handset(not "empty squares"), but they stil
>> wrong.
>> I'll try to find a pattern of these symbols.
>>
>> On 01/23/2016 05:21 PM, spameden wrote:
>>
>> 1) Which kinda distro you're using?
>>
>> 2) I've just checked on Debian Wheezy 7 (with latest updates), kannel
>> compiles just fine, here is a list of required packages:
>>
>> Here is a number of commands to run (1st line is debian/ubuntu specific):
>> apt-get install subversion bison flex build-essential libxml2-dev libtool
>> libmysqlclient-dev libssl-dev
>> svn co https://svn.kannel.org/gateway/trunk/ kannel
>> cd kannel
>> ./configure --with-mysql
>> make
>> make install
>> cd addons/sqlbox
>> ./configure --with-mysql
>> make
>> make install
>>
>> 3)  Bison and Flex packages:
>> ii  bison   1:2.5.dfsg-2.1
>> ii  flex2.5.35-10.1
>>
>> 2016-01-23 13:05 GMT+03:00 Deins < <notabenaaba...@gmail.com>
>> notabenaaba...@gmail.com>:
>>
>>> I delete folder with extracted archive, purge and install bison and flex
>>> packages.
>>> make command:
>>>
>>> $ ./configure --with-mysql --with-mysql-dir='/usr/share/mysql'
>>> it works right, next I do
>>>
>>> $ make
>>>
>>> and got error:
>>> *In file included from wmlscript/wslexer.c:72:0:*
>>> *y.tab.h:262:5: error: conflicting types for ‘ws_yy_parse’*
>>> *In file included from wmlscript/wslexer.c:70:0:*
>>> *wmlscript/wsint.h:296:5: note: previous declaration of ‘ws_yy_parse’
>>> was here*
>>> * int ws_yy_parse(void *context);*
>>>
>>> I looked at wmlscript/wslexer.c, there are two "include" directives on
>>> lines 70 and 72 and in both included files declared 'ws_yy_parse'.
>>>
>>> Is it a bug?
>>>
>>>
>>>
>>> On 01/23/2016 04:09 PM, spameden wrote:
>>>
>>>
>>>
>>> 2016-01-23 11:22 GMT+03:00 Deins < <notabenaaba...@gmail.com>
>>> notabenaaba...@gmail.com>:
>>>
>>>> Trying to install Kannel 1.4.4 from official site.
>>>> 1. ./configure - ok
>>>> 2. make - got error "unknown type name YYLTYPE"
>>>>
>>>> found in google, that it is something similar Yacc or Bison parser.
>>>> Currently bison 2:3.0.3 is installed.
>>>> I don't know much about this (better to say I don't know anything about
>>>> yacc).
>>>> Need help.
>>>>
>>>
>>> Try installing flex and bison and run configure again.
>>>
>>> Also make sure you run ./configure --with-mysql
>>>
>>>
>>>

Re: How to send in another encoding

2016-01-23 Thread spameden
2016-01-23 22:10 GMT+03:00 Deins <notabenaaba...@gmail.com>:

> I use Debian Jessie 8
> I tried to install kannel and sqlbox with a checkinstall, but it didn't
> work out.
>

No. You need to have kannel installed (make install) before sqlbox
compilation. Otherwise sqlbox might use your old kannel installation.

Also make sure you run proper kannel binary, by default make install
installs (I think) into /usr/local/sbin not from /usr/sbin, so check with

ps aux|grep -E 'bearerbox|sqlbox'

if it's running correct binary or just edit /etc/init.d/kannel script to
make sure it uses proper binaries from correct path.

So I just repeated commands you wrote. Now it's works.
>
> Now I have a symbols on my handset(not "empty squares"), but they stil
> wrong.
> I'll try to find a pattern of these symbols.
>
> On 01/23/2016 05:21 PM, spameden wrote:
>
> 1) Which kinda distro you're using?
>
> 2) I've just checked on Debian Wheezy 7 (with latest updates), kannel
> compiles just fine, here is a list of required packages:
>
> Here is a number of commands to run (1st line is debian/ubuntu specific):
> apt-get install subversion bison flex build-essential libxml2-dev libtool
> libmysqlclient-dev libssl-dev
> svn co https://svn.kannel.org/gateway/trunk/ kannel
> cd kannel
> ./configure --with-mysql
> make
> make install
> cd addons/sqlbox
> ./configure --with-mysql
> make
> make install
>
> 3)  Bison and Flex packages:
> ii  bison   1:2.5.dfsg-2.1
> ii  flex2.5.35-10.1
>
> 2016-01-23 13:05 GMT+03:00 Deins <notabenaaba...@gmail.com>:
>
>> I delete folder with extracted archive, purge and install bison and flex
>> packages.
>> make command:
>>
>> $ ./configure --with-mysql --with-mysql-dir='/usr/share/mysql'
>> it works right, next I do
>>
>> $ make
>>
>> and got error:
>> *In file included from wmlscript/wslexer.c:72:0:*
>> *y.tab.h:262:5: error: conflicting types for ‘ws_yy_parse’*
>> *In file included from wmlscript/wslexer.c:70:0:*
>> *wmlscript/wsint.h:296:5: note: previous declaration of ‘ws_yy_parse’ was
>> here*
>> * int ws_yy_parse(void *context);*
>>
>> I looked at wmlscript/wslexer.c, there are two "include" directives on
>> lines 70 and 72 and in both included files declared 'ws_yy_parse'.
>>
>> Is it a bug?
>>
>>
>>
>> On 01/23/2016 04:09 PM, spameden wrote:
>>
>>
>>
>> 2016-01-23 11:22 GMT+03:00 Deins < <notabenaaba...@gmail.com>
>> notabenaaba...@gmail.com>:
>>
>>> Trying to install Kannel 1.4.4 from official site.
>>> 1. ./configure - ok
>>> 2. make - got error "unknown type name YYLTYPE"
>>>
>>> found in google, that it is something similar Yacc or Bison parser.
>>> Currently bison 2:3.0.3 is installed.
>>> I don't know much about this (better to say I don't know anything about
>>> yacc).
>>> Need help.
>>>
>>
>> Try installing flex and bison and run configure again.
>>
>> Also make sure you run ./configure --with-mysql
>>
>>
>>>
>>>
>>> On 01/23/2016 01:13 AM, spameden wrote:
>>>
>>>
>>>
>>> 2016-01-22 19:54 GMT+03:00 Deins < <notabenaaba...@gmail.com>
>>> notabenaaba...@gmail.com>:
>>>
>>>> 1) I use Kannel 1.4.3 from Debian repo. I will try to install latest
>>>> stable version if nothing helps.
>>>> 2) All tables in my database already was utf8, but to be sure I'm
>>>> executed:
>>>> ALTER TABLE send_sms CONVERT TO CHARACTER SET utf8;
>>>> ...
>>>> 3) yes, it is
>>>> 4) coding=2, charset=utf8
>>>>
>>>>
>>>
>>>> 5) now I have "empty square" characters on my phone.
>>>>
>>>
>>> As I said before you need to use latest version from SVN or version
>>> 1.4.4 (which is stable and released), althrough SVN version is considered
>>> to be production ready and have most of the bugs fixed. You need to use SVN
>>> version of sqlbox as well as kannel.
>>>
>>> In version 1.4.3 and 1.5.0 (previous DEV version) there was a bug
>>> related to UCS-2 characters conversion which was fixed 2 years ago or so,
>>> so just use SVN version it's best and it's not hard to compile.
>>>
>>>>
>>>> On 01/22/2016 06:30 PM, spameden wrote:
>>>>
>>>> To get proper cyrillic or any UCS-2 text on your handset:
>>>>
>>

Re: How to send in another encoding

2016-01-22 Thread spameden
2016-01-22 19:54 GMT+03:00 Deins <notabenaaba...@gmail.com>:

> 1) I use Kannel 1.4.3 from Debian repo. I will try to install latest
> stable version if nothing helps.
> 2) All tables in my database already was utf8, but to be sure I'm executed:
> ALTER TABLE send_sms CONVERT TO CHARACTER SET utf8;
> ...
> 3) yes, it is
> 4) coding=2, charset=utf8
>
>

> 5) now I have "empty square" characters on my phone.
>

As I said before you need to use latest version from SVN or version 1.4.4
(which is stable and released), althrough SVN version is considered to be
production ready and have most of the bugs fixed. You need to use SVN
version of sqlbox as well as kannel.

In version 1.4.3 and 1.5.0 (previous DEV version) there was a bug related
to UCS-2 characters conversion which was fixed 2 years ago or so, so just
use SVN version it's best and it's not hard to compile.

>
> On 01/22/2016 06:30 PM, spameden wrote:
>
> To get proper cyrillic or any UCS-2 text on your handset:
>
> 1) Make sure you use latest kannel version from SVN (compile it yourself)
>
> 2) execute in MySQL:
> ALTER table send_sms charset=utf8
> ALTER table sent_sms charset=utf8
> ALTER table dlr charset=utf8
> So all your tables will be in utf8 encoding.
>
> 3) When you insert text into send_sms table you need to make sure text is
> in UTF-8 encoding and urlencoded.
>
> 4) set coding=2 and charset='utf8', NOTE: each MT will be limited to 70
> symbols. If you use concatenated MT each part will be limited to 69 symbols.
>
> 5) This way you'll get proper text on your handset.
>
> About msgdata field in sent_sms table: text is double urlencoded, I think
> it's either a bug in kannel or feature (?). Text is urlencoded to avoid all
> hassle to deal with many encodings out there, because for every encoding
> you'd need proper escaping, this way kannel deals with escaping. If you
> really need to preserve original text (AS IS) you need to modify kannel's
> source code as well as sqlbox, which can be tricky OR as a workaround you
> can have another table where you INSERT your text as well and save it for
> billing purposes (e.g. billing table)
>
> Generally speaking: both send_sms and sent_sms tables are kinda temporary
> tables (at least I keep only 24 hours records there so kannel operates
> quickly, because it still depends on MySQL answer).
>
> You can set a TRIGGER on sent_sms table and get updated your other billing
> table.
>
> 2016-01-22 14:08 GMT+03:00 Deins <notabenaaba...@gmail.com>:
>
>> I need to send sms with a cyrillic symbols. I write sql query with a
>> field coding=2.
>> In the send_sms table I see right value of the msgdata field. But in
>> sent_sms table all characters transforms into 3F3F3F string. How to
>> deal with it?
>>
>>
>
>


Re: How to send in another encoding

2016-01-22 Thread spameden
To get proper cyrillic or any UCS-2 text on your handset:

1) Make sure you use latest kannel version from SVN (compile it yourself)

2) execute in MySQL:
ALTER table send_sms charset=utf8
ALTER table sent_sms charset=utf8
ALTER table dlr charset=utf8
So all your tables will be in utf8 encoding.

3) When you insert text into send_sms table you need to make sure text is
in UTF-8 encoding and urlencoded.

4) set coding=2 and charset='utf8', NOTE: each MT will be limited to 70
symbols. If you use concatenated MT each part will be limited to 69 symbols.

5) This way you'll get proper text on your handset.

About msgdata field in sent_sms table: text is double urlencoded, I think
it's either a bug in kannel or feature (?). Text is urlencoded to avoid all
hassle to deal with many encodings out there, because for every encoding
you'd need proper escaping, this way kannel deals with escaping. If you
really need to preserve original text (AS IS) you need to modify kannel's
source code as well as sqlbox, which can be tricky OR as a workaround you
can have another table where you INSERT your text as well and save it for
billing purposes (e.g. billing table)

Generally speaking: both send_sms and sent_sms tables are kinda temporary
tables (at least I keep only 24 hours records there so kannel operates
quickly, because it still depends on MySQL answer).

You can set a TRIGGER on sent_sms table and get updated your other billing
table.

2016-01-22 14:08 GMT+03:00 Deins :

> I need to send sms with a cyrillic symbols. I write sql query with a field
> coding=2.
> In the send_sms table I see right value of the msgdata field. But in
> sent_sms table all characters transforms into 3F3F3F string. How to
> deal with it?
>
>


Re: how to save delivery reports

2016-01-18 Thread spameden
You can use sqlbox to get reports in the MySQL DB.

dlr table is only for temporary tracking of DLR reports.

2016-01-18 16:44 GMT+03:00 Achyut Raj :

> Hi Deins,
>
> It is the normal behaviour of Kannel /SQLBOX.
> Actually the dlr table is used to hold the dlr for receiving the dlr's.
> Record on this table will be removed once dlr is received. For your
> convenience see the highlighted text below :
>
> DLR: received 33250, sent 0
> DLR: inbound (0.00,0.01,0.13) msg/sec, outbound (0.00,0.00,0.00) msg/sec
> *DLR: 80412 queued*, using mysql storage
>
>
> To store the dlr status permanently you can
> 1) make create new table and use of dlr-mask and dlr-url parameters  while
> sending message and develop the php script or the script of any language of
> your choice to receive and store dlr.
> Ref : http://www.kannel.org/pipermail/users/2008-June/005035.html
>
> 2) make use of some mysql triggers to store the dlr
> Ref : http://www.blogalex.com/archives/322
>
>
> On Mon, Jan 18, 2016 at 4:11 PM, Deins  wrote:
>
>> Hi!
>> Sorry for my english.
>> I'm try to set up mySQL dlr storage. It works, but not the way I want it.
>> When delievery-sm comes to kannel it does two sql transactions.
>>
>> 1. It writes dlr record
>> DEBUG: sql: INSERT INTO dlr (smsc, ts, source, destination, service, url,
>> boxc, status) VALUES ('myprovider-smsc', '569CC848', 'MYNUM',
>> 'myservice', '', '1', '', '0')
>> 2. Then it delete record just written
>> DEBUG: sql: DELETE FROM dlr WHERE smsc='myprovider-smsc' AND
>> ts='569CC848' LIMIT 1
>>
>> As a result I have empty dlr table. Is it normal behavior of kannel and
>> how to stop it, because I need to store delivery records?
>>
>>
>


Re: SQLBOX queued messages question

2016-01-13 Thread spameden
2016-01-13 15:14 GMT+03:00 Grant Saicom <grant.sai...@gmail.com>:

> Thanks for the advice.
>
> Which smpp implementation does kannel code ship with from the repo? Just
> want to clarify as it sounds it isn’t opensmpp in the answer.
>

Why do you even ask about opensmppbox? I thought original question was
about sqlbox. OpenSMPPBox is basically a simple proxy to kannel for outside
clients. There is not much in it, there is no flow control or accounting.
What bearerbox/kannel implements for smsc is basically what opensmppbox
offers in terms of connections to upstream links.



> With regards to network, all the machines are on the same subnet,
> including the smsc. We have an instance within our network. On top of that,
> they are all on the same hypervisor and data fabric.
>

Another thought I just got: could your network problems be due your
virtualization used? Try using kannel on a bare machine and see if there is
any TCP retransmissions going?

Did you check mtr output as well to your upstream smsc? And also check
reverse network path if it's same or not.




>
> On 13 Jan 2016, at 14:02, spameden <spame...@gmail.com> wrote:
>
> opensmppbox is generally not recommended for production, it's very basic
> and there is no accounting at all, for SMPP-server I'd recommended
> contacting Stipe Tolk (you can find his e-mail on the lists archive in
> google), he has commercial solution carrier-grade.
>
> about TCP retransmissions you might need tuning either Linux network
> settings, e.g. MTU if you're behind some sorta NAT or better contact your
> provider with mtr output and tcpdump captures there might be unoptimal
> direct or/and reverse network path between you and your SMSC provider.
>
> 2016-01-13 14:07 GMT+03:00 Grant Saicom <grant.sai...@gmail.com>:
>
>> I suspect the issue I am still experiencing is because of TCP
>> retransmission between Kannel and SMSC. The time out for ack is 210ms on
>> the SMSC we are sending to and the delay can sometimes be as long as 370ms.
>>
>> I have not found a solution, but am exploring further optimisations and
>> avenues.
>>
>> Another Kannel user advised me saying that openSMPP can be problematic
>> some times. Is this a generally known and confirmed issue?
>>
>> Kind regards
>> Grant
>>
>> On 15 Dec 2015, at 12:53, spameden <spame...@gmail.com> wrote:
>>
>> store-type = spool
>> store-location = "/tmp/kannel-spool/"
>>
>> put these 2 lines below group = core in /etc/kannel/kannel.conf
>>
>> do you use for dlr MySQL as well?
>>
>> worth adding index on dlr table as well: KEY `smsc_ts` (`smsc`,`ts`)
>>
>> ALTER table dlr add index `smsc_ts` (`smsc`,`ts`);
>>
>>
>>
>>
>> 2015-12-15 13:43 GMT+03:00 spameden <spame...@gmail.com>:
>>
>>> Yes.
>>>
>>> The only thing that comes to my mind is to use kannel-store = spool and
>>> move your spool store to /tmp dir, this way queue will be in multiple files
>>> instead of the single file and in RAM, I found this way it's very fast.
>>>
>>> Let me know if it helps.
>>>
>>> If you want to preserve queue (in case of hard reset or something) you
>>> can rsync it's contents every 2 minutes or so in some permanent directory.
>>>
>>> 2015-12-15 12:56 GMT+03:00 Grant Saicom <grant.sai...@gmail.com>:
>>>
>>>> Haven’t really found my answer yet, but I have another question along
>>>> this line of thought.
>>>>
>>>> I see the queue in sqlbox rises quite high, but the queue in the smpp
>>>> connector to the smsc barely goes above 0.
>>>>
>>>> Is there a way to control.modify the flow of messages from sqlbox to
>>>> the smpp queue?
>>>>
>>>> Architecturally, is this correct in terms of the flow of messages:
>>>> sqlbox queue -> bearerbox sms store-> smpp queue
>>>>
>>>> Regards
>>>> Grant
>>>>
>>>> On 09 Dec 2015, at 11:56, spameden <spame...@gmail.com> wrote:
>>>>
>>>>
>>>>
>>>> 2015-12-09 12:43 GMT+03:00 Grant Saicom <grant.sai...@gmail.com>:
>>>>
>>>>> We process the sent_sms into another table on they fly. Maximum size
>>>>> the sent_sms table gets is maybe 40k tops but mostly it averages around
>>>>> 10K. We see this once 1 week maybe.
>>>>>
>>>>> I have really made every attempt to remove any bottlenecks in terms
>>>>> unwieldy database sizes to allow kannel to work in a 

Re: Which distribution is best to run Kannel (sql)box

2016-01-13 Thread spameden
You need to use distro you know and which suits you best.

I've been using Debian in combination with kannel for quite some time
(about 5 years) and never had any problems.

Currently I'm running kannel as well on top of Debian Wheezy it works just
fine.

If you are having troubles with kannel's performance. You need to read
mailing lists a bit. Main bottlenecks were discussed many times, in most
cases it's not kannel's issue.

Instead of general MySQL I'd recommend using MariaDB 5.5 (mariadb.org). It
uses XtraDB for InnoDB engine and is very well maintained. There is debian
repo for it as well.

Combination of max-pending-submits  / throughput should be set accordingly
to your smsc upstream provider. Basically max-pending-submits means a
number of outstanding operations between you and smsc upstream. If you
don't have any errors like throttling or queue full in your smsc log
current values should be fine.

2016-01-13 15:01 GMT+03:00 Otandeka Simon Peter :

> Hi,
>
> Try setting the sms-resend-freq and sms-resend-retry to reduce on the
> number of sms retries. Also set a low figure on the max-pending-submits to
> reduce on your queue. This might help.
>
> But also check on your conxn plus you could be sending to
> non-existent/wrongly formatted numbers, the smsc rejects and your system
> keeps trying to re-send them.
>
> If the issue occurs at a certain period all the time, check with your smsc
> vendor. Sometimes they have queue/throttling problems.
>
> My 2 cents.
>
> @sotandeka
>
>
> On Wed, Jan 13, 2016 at 2:43 PM, Grant Saicom 
> wrote:
>
>> Example log below of one very common warning. I cannot see anything about
>> tcp retransmission in the logs. We see it in tshark when things start going
>> a bit out of sorts.
>>
>> PDU has been sanitised for privacy, so the destination and text has been
>> removed.
>>
>> 2016-01-13 11:00:00 [4771] [7] DEBUG: SMPP[internal]: Sending PDU:
>> 2016-01-13 11:00:00 [4771] [7] DEBUG: SMPP PDU 0x1c5bfa0 dump:
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:   type_name: submit_sm
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:   command_id: 4 = 0x0004
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:   command_status: 0 = 0x
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:   sequence_number: 6541387 =
>> 0x0063d04b
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:   service_type: "P_289361630"
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:   source_addr_ton: 2 = 0x0002
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:   source_addr_npi: 1 = 0x0001
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:   source_addr: "435719276"
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:   dest_addr_ton: 2 = 0x0002
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:   dest_addr_npi: 1 = 0x0001
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:   destination_addr: ""
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:   esm_class: 3 = 0x0003
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:   protocol_id: 0 = 0x
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:   priority_flag: 0 = 0x
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:   schedule_delivery_time: NULL
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:   validity_period: NULL
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:   registered_delivery: 1 =
>> 0x0001
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:   replace_if_present_flag: 0 =
>> 0x
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:   data_coding: 0 = 0x
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:   sm_default_msg_id: 0 = 0x
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:   sm_length: 91 = 0x005b
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:   short_message:
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:Octet string at 0x1cf1070:
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:  len:  91
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:  size: 92
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:  immutable: 0
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:  data: 59
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:  data: 48
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:  data: 4
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:  data:
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:  data: 49 53
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:  data: 4c 5
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:Octet string dump ends.
>> 2016-01-13 11:00:00 [4771] [7] DEBUG: SMPP PDU dump ends.
>> 2016-01-13 11:00:00 [4771] [7] WARNING: SMPP: PDU element 
>> too long (length is 11, should be 5)
>> 2016-01-13 11:00:00 [4771] [7] DEBUG: SMPP[internal]: throughput
>> (12.00,0.00)
>> 2016-01-13 11:00:00 [4771] [7] DEBUG: SMPP[internal]: Sending PDU:
>> 2016-01-13 11:00:00 [4771] [7] DEBUG: SMPP PDU 0x1d5d380 dump:
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:   type_name: submit_sm
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:   command_id: 4 = 0x0004
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:   command_status: 0 = 0x
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:   sequence_number: 6541388 =
>> 0x0063d04c
>> 2016-01-13 11:00:00 [4771] [7] DEBUG:   service_type: "P_289340514"
>> 

Re: SQLBOX queued messages question

2016-01-13 Thread spameden
opensmppbox is generally not recommended for production, it's very basic
and there is no accounting at all, for SMPP-server I'd recommended
contacting Stipe Tolk (you can find his e-mail on the lists archive in
google), he has commercial solution carrier-grade.

about TCP retransmissions you might need tuning either Linux network
settings, e.g. MTU if you're behind some sorta NAT or better contact your
provider with mtr output and tcpdump captures there might be unoptimal
direct or/and reverse network path between you and your SMSC provider.

2016-01-13 14:07 GMT+03:00 Grant Saicom <grant.sai...@gmail.com>:

> I suspect the issue I am still experiencing is because of TCP
> retransmission between Kannel and SMSC. The time out for ack is 210ms on
> the SMSC we are sending to and the delay can sometimes be as long as 370ms.
>
> I have not found a solution, but am exploring further optimisations and
> avenues.
>
> Another Kannel user advised me saying that openSMPP can be problematic
> some times. Is this a generally known and confirmed issue?
>
> Kind regards
> Grant
>
> On 15 Dec 2015, at 12:53, spameden <spame...@gmail.com> wrote:
>
> store-type = spool
> store-location = "/tmp/kannel-spool/"
>
> put these 2 lines below group = core in /etc/kannel/kannel.conf
>
> do you use for dlr MySQL as well?
>
> worth adding index on dlr table as well: KEY `smsc_ts` (`smsc`,`ts`)
>
> ALTER table dlr add index `smsc_ts` (`smsc`,`ts`);
>
>
>
>
> 2015-12-15 13:43 GMT+03:00 spameden <spame...@gmail.com>:
>
>> Yes.
>>
>> The only thing that comes to my mind is to use kannel-store = spool and
>> move your spool store to /tmp dir, this way queue will be in multiple files
>> instead of the single file and in RAM, I found this way it's very fast.
>>
>> Let me know if it helps.
>>
>> If you want to preserve queue (in case of hard reset or something) you
>> can rsync it's contents every 2 minutes or so in some permanent directory.
>>
>> 2015-12-15 12:56 GMT+03:00 Grant Saicom <grant.sai...@gmail.com>:
>>
>>> Haven’t really found my answer yet, but I have another question along
>>> this line of thought.
>>>
>>> I see the queue in sqlbox rises quite high, but the queue in the smpp
>>> connector to the smsc barely goes above 0.
>>>
>>> Is there a way to control.modify the flow of messages from sqlbox to the
>>> smpp queue?
>>>
>>> Architecturally, is this correct in terms of the flow of messages:
>>> sqlbox queue -> bearerbox sms store-> smpp queue
>>>
>>> Regards
>>> Grant
>>>
>>> On 09 Dec 2015, at 11:56, spameden <spame...@gmail.com> wrote:
>>>
>>>
>>>
>>> 2015-12-09 12:43 GMT+03:00 Grant Saicom <grant.sai...@gmail.com>:
>>>
>>>> We process the sent_sms into another table on they fly. Maximum size
>>>> the sent_sms table gets is maybe 40k tops but mostly it averages around
>>>> 10K. We see this once 1 week maybe.
>>>>
>>>> I have really made every attempt to remove any bottlenecks in terms
>>>> unwieldy database sizes to allow kannel to work in a favourable 
>>>> environment.
>>>>
>>>> Is there reason to add multiple sqlboxes to feed bearer box?
>>>>
>>>> Is there maybe a concurrency setting I can do for bearer box to receive
>>>> the messages? I did not come across documentation aside from email posts
>>>> with respect to the limit-per-cycle setting.
>>>>
>>>> I have another question, would we be able to get faster performance if
>>>> we went flat file for the kannel operations?
>>>>
>>>
>>> Well you can exclude bottlenecks by simply testing same setup with
>>> fakesmsc daemon and see if speed will be better.
>>>
>>> It might be that delay is caused by your SMSC uplinks overall speed and
>>> not database.
>>>
>>> You can also try classic smsbox implementation for sending instead of
>>> sqlbox. But I think sqlbox is fastest and more convinient way because of DB
>>> storage.
>>>
>>>
>>>
>>>
>>>>
>>>> Regards
>>>>
>>>>
>>>> On 08 Dec 2015, at 15:12, spameden <spame...@gmail.com> wrote:
>>>>
>>>>
>>>>
>>>> 2015-12-08 12:51 GMT+03:00 Grant Vorenberg <gr...@saicomvoice.co.za>:
>>>>
>>>>> 
>>>>> <https://branding.synaq.com/api/r/id/22474050/map/

Re: SQLBOX queued messages question

2016-01-13 Thread spameden
2016-01-13 18:30 GMT+03:00 Grant Saicom <grant.sai...@gmail.com>:

> I might have the wrong end of the stick here, but I was under the
> impression that kannel/bearerbox used openSMPP libraries to implement its
> smpp functionality. I have done a bit of googling and cannot see anything
> confirming this. So I guess this is not the case :)
>

No. Kannel is basically is a set of bearerbox, smsbox, wapbox.

sqlbox is a box too as well.

opensmppbox is kinda -box too.

each *box is connected to bearerbox or sometimes sqlbox connected to smsbox
for further processing.

each *box got its own functionality, but main thing is bearerbox which
routes all messages / manages your smsc uplinks and processing own internal
queues.

so if you want to just send messages through kannel you need only:

1) bearerbox
2) sqlbox

you just insert into send_sms your MT message with certain values in fields
and it's submitted to bearerbox, which sends it to upstream SMSC you
specified (smsc_id field).

this is basically how it works.


> With respect to mtr (both gateways are same device, juniper mx-140 with
> dual 10Gbit direct connection to blade hypervisor data fabric):
>  HostLoss%   Snt   Last   Avg
>  Best  Wrst StDev
>  1. smsc-gateway0.0%950.4   0.5   0.3
> 0.9   0.0
>  2. kannel 0.0%940.8   0.6
> 0.4   1.0   0.0
>
>  HostLoss%   Snt   Last   Avg
>  Best  Wrst StDev
>  1. kannel-gateway  0.0%730.4   0.3   0.3
> 0.5   0.0
>  2. smsc   0.0%720.5   0.6
> 0.4   2.7   0.4
>

Better run mtr for at least 1000 packets, but I guess since both hosts are
on the same network there shouldn't be any problem.


>
> Average on both is sub 1ms. MTU are is 1500 on both.
>

What's the software on SMSC server? Or It's some commercial solution? It
could be this is the problem.


>
> I am loathe to think it is the hypervisor or hardware as it is all service
> provider grade. I have a spare HP DL380 in the rack at the DC which was
> scheduled for collection. I may just wipe that and put kannel there and see
> how it behaves there.
>

Waiting for your results.


>
> Thank you for the advice.
>
> On 13 Jan 2016, at 15:09, spameden <spame...@gmail.com> wrote:
>
>
>
> 2016-01-13 15:14 GMT+03:00 Grant Saicom <grant.sai...@gmail.com>:
>
>> Thanks for the advice.
>>
>> Which smpp implementation does kannel code ship with from the repo? Just
>> want to clarify as it sounds it isn’t opensmpp in the answer.
>>
>
> Why do you even ask about opensmppbox? I thought original question was
> about sqlbox. OpenSMPPBox is basically a simple proxy to kannel for outside
> clients. There is not much in it, there is no flow control or accounting.
> What bearerbox/kannel implements for smsc is basically what opensmppbox
> offers in terms of connections to upstream links.
>
>
>
>> With regards to network, all the machines are on the same subnet,
>> including the smsc. We have an instance within our network. On top of that,
>> they are all on the same hypervisor and data fabric.
>>
>
> Another thought I just got: could your network problems be due your
> virtualization used? Try using kannel on a bare machine and see if there is
> any TCP retransmissions going?
>
> Did you check mtr output as well to your upstream smsc? And also check
> reverse network path if it's same or not.
>
>
>
>
>>
>> On 13 Jan 2016, at 14:02, spameden <spame...@gmail.com> wrote:
>>
>> opensmppbox is generally not recommended for production, it's very basic
>> and there is no accounting at all, for SMPP-server I'd recommended
>> contacting Stipe Tolk (you can find his e-mail on the lists archive in
>> google), he has commercial solution carrier-grade.
>>
>> about TCP retransmissions you might need tuning either Linux network
>> settings, e.g. MTU if you're behind some sorta NAT or better contact your
>> provider with mtr output and tcpdump captures there might be unoptimal
>> direct or/and reverse network path between you and your SMSC provider.
>>
>> 2016-01-13 14:07 GMT+03:00 Grant Saicom <grant.sai...@gmail.com>:
>>
>>> I suspect the issue I am still experiencing is because of TCP
>>> retransmission between Kannel and SMSC. The time out for ack is 210ms on
>>> the SMSC we are sending to and the delay can sometimes be as long as 370ms.
>>>
>>> I have not found a solution, but am exploring further optimisations and
>>> avenues.
>>>
>>> Another K

Re: SQLBOX queued messages question

2015-12-15 Thread spameden
Yes.

The only thing that comes to my mind is to use kannel-store = spool and
move your spool store to /tmp dir, this way queue will be in multiple files
instead of the single file and in RAM, I found this way it's very fast.

Let me know if it helps.

If you want to preserve queue (in case of hard reset or something) you can
rsync it's contents every 2 minutes or so in some permanent directory.

2015-12-15 12:56 GMT+03:00 Grant Saicom <grant.sai...@gmail.com>:

> Haven’t really found my answer yet, but I have another question along this
> line of thought.
>
> I see the queue in sqlbox rises quite high, but the queue in the smpp
> connector to the smsc barely goes above 0.
>
> Is there a way to control.modify the flow of messages from sqlbox to the
> smpp queue?
>
> Architecturally, is this correct in terms of the flow of messages:
> sqlbox queue -> bearerbox sms store-> smpp queue
>
> Regards
> Grant
>
> On 09 Dec 2015, at 11:56, spameden <spame...@gmail.com> wrote:
>
>
>
> 2015-12-09 12:43 GMT+03:00 Grant Saicom <grant.sai...@gmail.com>:
>
>> We process the sent_sms into another table on they fly. Maximum size the
>> sent_sms table gets is maybe 40k tops but mostly it averages around 10K. We
>> see this once 1 week maybe.
>>
>> I have really made every attempt to remove any bottlenecks in terms
>> unwieldy database sizes to allow kannel to work in a favourable environment.
>>
>> Is there reason to add multiple sqlboxes to feed bearer box?
>>
>> Is there maybe a concurrency setting I can do for bearer box to receive
>> the messages? I did not come across documentation aside from email posts
>> with respect to the limit-per-cycle setting.
>>
>> I have another question, would we be able to get faster performance if we
>> went flat file for the kannel operations?
>>
>
> Well you can exclude bottlenecks by simply testing same setup with
> fakesmsc daemon and see if speed will be better.
>
> It might be that delay is caused by your SMSC uplinks overall speed and
> not database.
>
> You can also try classic smsbox implementation for sending instead of
> sqlbox. But I think sqlbox is fastest and more convinient way because of DB
> storage.
>
>
>
>
>>
>> Regards
>>
>>
>> On 08 Dec 2015, at 15:12, spameden <spame...@gmail.com> wrote:
>>
>>
>>
>> 2015-12-08 12:51 GMT+03:00 Grant Vorenberg <gr...@saicomvoice.co.za>:
>>
>>> 
>>> <https://branding.synaq.com/api/r/id/22474050/map/0>
>>>
>>> Hi
>>>
>>> We manage how big send_sms gets. The queue builder puts in 500 messages
>>> at a time to a total maximum of 3000 from a larger main queue which can go
>>> as big as 2M.
>>>
>>
>> 2M is kinda big table, how big is sent_sms? 10-30M ?
>>
>> I think your issue happens when kannel tries to move from send_sms to
>> sent_sms table already submitted message this is where it hangs. You can
>> try testing it yourself with simple query:
>>
>> INSERT INTO sent_sms SELECT * from send_sms where sql_id= and measure
>> time per query.
>>
>> if it's instant there should be no problem.
>>
>> Generally it's better to leave sent_sms table at around 1M records not
>> more, old records you can move to other table daily.
>>
>>
>>>
>>> Actual hardware is a VCenter on blades with plenty ram, cpu and hp
>>> 3PAR(144GB raid card ram for caching in total) fibre attached storage with
>>> dedicated SSD specifically for DB. Calculated IOPS are stupidly good.
>>>
>>> The VMs are as follows:
>>> Queuebuilder: 4 vcpu, 16Gb on SAS
>>> Kannel: 4 vcpu, 8GB on SAS
>>> MysqlDB-Master: 8 vcpu, 32GB on SSD
>>> MysqlDB-Slave: 8 vcpu, 32GB on SSD
>>>
>>
>> MySQL on SSDs should work just fine and you should have big number of
>> iops. Btw, I recommend to use MariaDB instead of regular MySQL (
>> mariadb.org) it's very fast and reliable, for InnoDB it uses modified
>> XtraDB engine which has some tweaks.
>>
>> did you check mysqladmin status to indicate number of queries processed
>> per second?
>>
>>
>>> The Load on the MysqlDB-Master averages around 0.4 with max of 0.6
>>> (single spike). Memory usage hangs around 24GB. I will need to check the
>>> process list to double check, but we generally don’t see much strain here
>>> either, but I stand to be corrected.
>>>
>> DB optimasations as follows:
>>>
>>> key_buffer   = 16M
>>> max_allow

Re: SQLBOX queued messages question

2015-12-15 Thread spameden
store-type = spool
store-location = "/tmp/kannel-spool/"

put these 2 lines below group = core in /etc/kannel/kannel.conf

do you use for dlr MySQL as well?

worth adding index on dlr table as well: KEY `smsc_ts` (`smsc`,`ts`)

ALTER table dlr add index `smsc_ts` (`smsc`,`ts`);




2015-12-15 13:43 GMT+03:00 spameden <spame...@gmail.com>:

> Yes.
>
> The only thing that comes to my mind is to use kannel-store = spool and
> move your spool store to /tmp dir, this way queue will be in multiple files
> instead of the single file and in RAM, I found this way it's very fast.
>
> Let me know if it helps.
>
> If you want to preserve queue (in case of hard reset or something) you can
> rsync it's contents every 2 minutes or so in some permanent directory.
>
> 2015-12-15 12:56 GMT+03:00 Grant Saicom <grant.sai...@gmail.com>:
>
>> Haven’t really found my answer yet, but I have another question along
>> this line of thought.
>>
>> I see the queue in sqlbox rises quite high, but the queue in the smpp
>> connector to the smsc barely goes above 0.
>>
>> Is there a way to control.modify the flow of messages from sqlbox to the
>> smpp queue?
>>
>> Architecturally, is this correct in terms of the flow of messages:
>> sqlbox queue -> bearerbox sms store-> smpp queue
>>
>> Regards
>> Grant
>>
>> On 09 Dec 2015, at 11:56, spameden <spame...@gmail.com> wrote:
>>
>>
>>
>> 2015-12-09 12:43 GMT+03:00 Grant Saicom <grant.sai...@gmail.com>:
>>
>>> We process the sent_sms into another table on they fly. Maximum size the
>>> sent_sms table gets is maybe 40k tops but mostly it averages around 10K. We
>>> see this once 1 week maybe.
>>>
>>> I have really made every attempt to remove any bottlenecks in terms
>>> unwieldy database sizes to allow kannel to work in a favourable environment.
>>>
>>> Is there reason to add multiple sqlboxes to feed bearer box?
>>>
>>> Is there maybe a concurrency setting I can do for bearer box to receive
>>> the messages? I did not come across documentation aside from email posts
>>> with respect to the limit-per-cycle setting.
>>>
>>> I have another question, would we be able to get faster performance if
>>> we went flat file for the kannel operations?
>>>
>>
>> Well you can exclude bottlenecks by simply testing same setup with
>> fakesmsc daemon and see if speed will be better.
>>
>> It might be that delay is caused by your SMSC uplinks overall speed and
>> not database.
>>
>> You can also try classic smsbox implementation for sending instead of
>> sqlbox. But I think sqlbox is fastest and more convinient way because of DB
>> storage.
>>
>>
>>
>>
>>>
>>> Regards
>>>
>>>
>>> On 08 Dec 2015, at 15:12, spameden <spame...@gmail.com> wrote:
>>>
>>>
>>>
>>> 2015-12-08 12:51 GMT+03:00 Grant Vorenberg <gr...@saicomvoice.co.za>:
>>>
>>>> 
>>>> <https://branding.synaq.com/api/r/id/22474050/map/0>
>>>>
>>>> Hi
>>>>
>>>> We manage how big send_sms gets. The queue builder puts in 500 messages
>>>> at a time to a total maximum of 3000 from a larger main queue which can go
>>>> as big as 2M.
>>>>
>>>
>>> 2M is kinda big table, how big is sent_sms? 10-30M ?
>>>
>>> I think your issue happens when kannel tries to move from send_sms to
>>> sent_sms table already submitted message this is where it hangs. You can
>>> try testing it yourself with simple query:
>>>
>>> INSERT INTO sent_sms SELECT * from send_sms where sql_id= and
>>> measure time per query.
>>>
>>> if it's instant there should be no problem.
>>>
>>> Generally it's better to leave sent_sms table at around 1M records not
>>> more, old records you can move to other table daily.
>>>
>>>
>>>>
>>>> Actual hardware is a VCenter on blades with plenty ram, cpu and hp
>>>> 3PAR(144GB raid card ram for caching in total) fibre attached storage with
>>>> dedicated SSD specifically for DB. Calculated IOPS are stupidly good.
>>>>
>>>> The VMs are as follows:
>>>> Queuebuilder: 4 vcpu, 16Gb on SAS
>>>> Kannel: 4 vcpu, 8GB on SAS
>>>> MysqlDB-Master: 8 vcpu, 32GB on SSD
>>>> MysqlDB-Slave: 8 vcpu, 32GB on SSD
>>>>
>>>
>>> MySQL on SSDs should work

Re: SQLBOX queued messages question

2015-12-09 Thread spameden
2015-12-09 12:43 GMT+03:00 Grant Saicom <grant.sai...@gmail.com>:

> We process the sent_sms into another table on they fly. Maximum size the
> sent_sms table gets is maybe 40k tops but mostly it averages around 10K. We
> see this once 1 week maybe.
>
> I have really made every attempt to remove any bottlenecks in terms
> unwieldy database sizes to allow kannel to work in a favourable environment.
>
> Is there reason to add multiple sqlboxes to feed bearer box?
>
> Is there maybe a concurrency setting I can do for bearer box to receive
> the messages? I did not come across documentation aside from email posts
> with respect to the limit-per-cycle setting.
>
> I have another question, would we be able to get faster performance if we
> went flat file for the kannel operations?
>

Well you can exclude bottlenecks by simply testing same setup with fakesmsc
daemon and see if speed will be better.

It might be that delay is caused by your SMSC uplinks overall speed and not
database.

You can also try classic smsbox implementation for sending instead of
sqlbox. But I think sqlbox is fastest and more convinient way because of DB
storage.




>
> Regards
>
>
> On 08 Dec 2015, at 15:12, spameden <spame...@gmail.com> wrote:
>
>
>
> 2015-12-08 12:51 GMT+03:00 Grant Vorenberg <gr...@saicomvoice.co.za>:
>
>> 
>> <https://branding.synaq.com/api/r/id/22474050/map/0>
>>
>> Hi
>>
>> We manage how big send_sms gets. The queue builder puts in 500 messages
>> at a time to a total maximum of 3000 from a larger main queue which can go
>> as big as 2M.
>>
>
> 2M is kinda big table, how big is sent_sms? 10-30M ?
>
> I think your issue happens when kannel tries to move from send_sms to
> sent_sms table already submitted message this is where it hangs. You can
> try testing it yourself with simple query:
>
> INSERT INTO sent_sms SELECT * from send_sms where sql_id= and measure
> time per query.
>
> if it's instant there should be no problem.
>
> Generally it's better to leave sent_sms table at around 1M records not
> more, old records you can move to other table daily.
>
>
>>
>> Actual hardware is a VCenter on blades with plenty ram, cpu and hp
>> 3PAR(144GB raid card ram for caching in total) fibre attached storage with
>> dedicated SSD specifically for DB. Calculated IOPS are stupidly good.
>>
>> The VMs are as follows:
>> Queuebuilder: 4 vcpu, 16Gb on SAS
>> Kannel: 4 vcpu, 8GB on SAS
>> MysqlDB-Master: 8 vcpu, 32GB on SSD
>> MysqlDB-Slave: 8 vcpu, 32GB on SSD
>>
>
> MySQL on SSDs should work just fine and you should have big number of
> iops. Btw, I recommend to use MariaDB instead of regular MySQL (
> mariadb.org) it's very fast and reliable, for InnoDB it uses modified
> XtraDB engine which has some tweaks.
>
> did you check mysqladmin status to indicate number of queries processed
> per second?
>
>
>> The Load on the MysqlDB-Master averages around 0.4 with max of 0.6
>> (single spike). Memory usage hangs around 24GB. I will need to check the
>> process list to double check, but we generally don’t see much strain here
>> either, but I stand to be corrected.
>>
> DB optimasations as follows:
>>
>> key_buffer   = 16M
>> max_allowed_packet   = 16M
>>
>
> maybe increase a bit max_allowed_packet to 64mb
>
> innodb_buffer_pool_size = 12G
>>
>
> this is fine
>
> query_cache_limit   = 20M
>> query_cache_size = 128M
>>
>
> query_cache in kannel's case doesn't affect much, so it's ok to have it
> like that.
>
>
>>
>> No extra indexes on the send_sms as we limit its size to 3000.
>>
>
> make sure both send_sms and sent_sms tables are InnoDB type.
>
>
>>
>> All reporting is done on the slaveDB, so no extra strain on monitoring
>> and reporting.
>>
>
> under 'reporting' do you mean your dlr_url is called to external script
> which is connected to slaveDB?
>
>
>>
>> Historically, we have queued at the SMPP connector and not at the smsbox.
>> We generally reached a top (AVG) speed of 73 msg/s but when I see the
>> smsbox queued figure rise and the internal smpp queue drop to 0, we only
>> hit half of this speed.
>>
>> I did not see the limit-per-cycle setting in the sqlbox documentation
>> (2011). I also checked the code and saw that the select limit was a
>> variable instead of hard-limited.
>>
>
> Yeah, it was introduced some time ago alongside with other optimisations
> (year ago or so, can't remember now), I think it should be in new
> documentation. However, 

Re: SQLBOX queued messages question

2015-12-08 Thread spameden
2015-12-08 11:23 GMT+03:00 Grant Vorenberg <gr...@saicomvoice.co.za>:

> [image: Saicom-now-offers-Cloud-PBX]
> <https://branding.synaq.com/api/r/id/22469522/map/0>
> Here is my config:
>
> group = sqlbox
> id = sqlbox-db
> smsbox-id = sqlbox
> #global-sender = ""
> bearerbox-host = localhost
> bearerbox-port = 13001
> smsbox-port = 13005
> smsbox-port-ssl = false
> sql-log-table = sent_sms
> sql-insert-table = send_sms
> log-file = "/var/log/kannel/kannel-sqlbox.log"
> log-level = 0
> #sqlbox optimisation GAV 20151207
> limit-per-cycle = 100
>


Try monitoring your database workload.

Is send_sms table is big?


>
> On 07 Dec 2015, at 15:06, spameden <spame...@gmail.com> wrote:
>
>
>
>
> Grant Vorenberg
>
> Technical Manager
> Office  0861 SAICOM (724 266) Direct  010 140 5012 Support  010 140 5050
> Cell  - Fax  010 140 5001 Email  gr...@saicomvoice.co.za Visit our website
> www.saicomvoice.co.za
>
> [image: logo image] <http://www.saicomvoice.co.za>
>
> 2015-12-07 14:03 GMT+03:00 Grant Vorenberg <gr...@saicomvoice.co.za>:
>
>> 
>> <https://branding.synaq.com/api/r/id/22451334/map/0>
>>
>> Hi Guys
>>
>> I am a new to the list subscription and am looking for a little clarity
>> on the SQLBOX.
>>
>> I have a Debian Wheezy box running:
>> Kannel sqlbox version 1.4.4
>> Libxml version 2.7.2
>> MySQL 5.5.43
>>
>> The front end is custom and drops message into the send_sms table. These
>> messages are terminated via smpp to another system of ours. We process and
>> clean out the sent_sms table.
>>
>> I gather stats on the performance of the system using the status page:
>> http://localhost:13000/status
>>
>> I am trying to understand the following output from the screen:
>> Box connections:
>>smsbox:sqlbox, IP 127.0.0.1 (2532 queued), (on-line 0d 2h 48m 19s)
>>
>
> This means there is a queue on sqlbox.
>
> Queue works like this:
>
> First sqlbox gets messages from DB backend, then it adds messages to own
> queue, then it sends message into bearerbox queue and bearerbox splits this
> queue over your connected SMSC/upstream operators.
>
> So if there is a huge queue on sqlbox it means there is a big amount of
> MTs in your send_sms table and sqlbox is still submitting those to
> bearerbox.
>
> To optimize sqlbox I'd recommend adding this parameter into sqlbox section
> (after group = sqlbox):
> limit-per-cycle = 50 this means sqlbox will get 50 bulk messages from DB
> per query at once instead of 1.
>
>
>
>>
>> What I noticed is when our send speeds start dipping on the smpp
>> connection (internal/default route), this smsbox:sql queue starts building
>> up.
>>
>> When the smsbox:sqlbox queue starts building up like this:
>> 1)What causes this?
>> 2) What does this signify?
>>
>> We generally don’t see this behaviour very often, but its effect is
>> detrimental to the performance of the system so I would like to know what
>> causes the growth and how to combat it so our send speed is safe-guarded.
>>
>>
>> Here is an excerpt from my config files:
>>
>> :
>> group = sqlbox
>> id = sqlbox-db
>> smsbox-id = sqlbox
>> #global-sender = ""
>> bearerbox-host = localhost
>> bearerbox-port = 13001
>> smsbox-port = 13005
>> smsbox-port-ssl = false
>> sql-log-table = sent_sms
>> sql-insert-table = send_sms
>>
>>
>> :
>> group = smsbox
>> bearerbox-host = 127.0.0.1
>> sendsms-port = 13013
>> global-sender = 13013
>> smsbox-id=my_smsbox
>>
>> group=smsbox-route
>> smsbox-id=sqlbox
>> smsc-id=internal
>>
>>
>> Regards
>>
>>
>>
>>
>>
>> Grant Vorenberg
>>
>> Technical Manager
>> Office   0861 SAICOM (724 266) Direct   010 140 5012 Support   010 140
>> 5050 Cell   - Fax   010 140 5001 Email   gr...@saicomvoice.co.za Visit
>> our website   www.saicomvoice.co.za
>>
>>  <http://www.saicomvoice.co.za/>
>>
>
>


Re: SQLBOX queued messages question

2015-12-08 Thread spameden
2015-12-08 12:51 GMT+03:00 Grant Vorenberg <gr...@saicomvoice.co.za>:

> [image: Saicom-Voice-Services]
> <https://branding.synaq.com/api/r/id/22474050/map/0>
> Hi
>
> We manage how big send_sms gets. The queue builder puts in 500 messages at
> a time to a total maximum of 3000 from a larger main queue which can go as
> big as 2M.
>

2M is kinda big table, how big is sent_sms? 10-30M ?

I think your issue happens when kannel tries to move from send_sms to
sent_sms table already submitted message this is where it hangs. You can
try testing it yourself with simple query:

INSERT INTO sent_sms SELECT * from send_sms where sql_id= and measure
time per query.

if it's instant there should be no problem.

Generally it's better to leave sent_sms table at around 1M records not
more, old records you can move to other table daily.


>
> Actual hardware is a VCenter on blades with plenty ram, cpu and hp
> 3PAR(144GB raid card ram for caching in total) fibre attached storage with
> dedicated SSD specifically for DB. Calculated IOPS are stupidly good.
>
> The VMs are as follows:
> Queuebuilder: 4 vcpu, 16Gb on SAS
> Kannel: 4 vcpu, 8GB on SAS
> MysqlDB-Master: 8 vcpu, 32GB on SSD
> MysqlDB-Slave: 8 vcpu, 32GB on SSD
>

MySQL on SSDs should work just fine and you should have big number of iops.
Btw, I recommend to use MariaDB instead of regular MySQL (mariadb.org) it's
very fast and reliable, for InnoDB it uses modified XtraDB engine which has
some tweaks.

did you check mysqladmin status to indicate number of queries processed per
second?


> The Load on the MysqlDB-Master averages around 0.4 with max of 0.6 (single
> spike). Memory usage hangs around 24GB. I will need to check the process
> list to double check, but we generally don’t see much strain here either,
> but I stand to be corrected.
>
DB optimasations as follows:
>
> key_buffer   = 16M
> max_allowed_packet   = 16M
>

maybe increase a bit max_allowed_packet to 64mb

innodb_buffer_pool_size = 12G
>

this is fine

query_cache_limit   = 20M
> query_cache_size = 128M
>

query_cache in kannel's case doesn't affect much, so it's ok to have it
like that.


>
> No extra indexes on the send_sms as we limit its size to 3000.
>

make sure both send_sms and sent_sms tables are InnoDB type.


>
> All reporting is done on the slaveDB, so no extra strain on monitoring and
> reporting.
>

under 'reporting' do you mean your dlr_url is called to external script
which is connected to slaveDB?


>
> Historically, we have queued at the SMPP connector and not at the smsbox.
> We generally reached a top (AVG) speed of 73 msg/s but when I see the
> smsbox queued figure rise and the internal smpp queue drop to 0, we only
> hit half of this speed.
>
> I did not see the limit-per-cycle setting in the sqlbox documentation
> (2011). I also checked the code and saw that the select limit was a
> variable instead of hard-limited.
>

Yeah, it was introduced some time ago alongside with other optimisations
(year ago or so, can't remember now), I think it should be in new
documentation. However, you need to build documentation to get more recent
version of it.


> Regards
> G
>
> On 08 Dec 2015, at 10:52, spameden <spame...@gmail.com> wrote:
>
>
>
>
> Grant Vorenberg
>
> Technical Manager
> Office  0861 SAICOM (724 266) Direct  010 140 5012 Support  010 140 5050
> Cell  - Fax  010 140 5001 Email  gr...@saicomvoice.co.za Visit our website
> www.saicomvoice.co.za
>
> [image: logo image] <http://www.saicomvoice.co.za>
>
> 2015-12-08 11:23 GMT+03:00 Grant Vorenberg <gr...@saicomvoice.co.za>:
>
>> 
>> <https://branding.synaq.com/api/r/id/22469522/map/0>
>>
>> Here is my config:
>>
>> group = sqlbox
>> id = sqlbox-db
>> smsbox-id = sqlbox
>> #global-sender = ""
>> bearerbox-host = localhost
>> bearerbox-port = 13001
>> smsbox-port = 13005
>> smsbox-port-ssl = false
>> sql-log-table = sent_sms
>> sql-insert-table = send_sms
>> log-file = "/var/log/kannel/kannel-sqlbox.log"
>> log-level = 0
>> #sqlbox optimisation GAV 20151207
>> limit-per-cycle = 100
>>
>
>
> Try monitoring your database workload.
>
> Is send_sms table is big?
>
>
>>
>> On 07 Dec 2015, at 15:06, spameden <spame...@gmail.com> wrote:
>>
>>
>>
>>
>> Grant Vorenberg
>>
>> Technical Manager
>> Office   0861 SAICOM (724 266) Direct   010 140 5012 Support   010 140
>> 5050 Cell   - Fax   010 140 5001 Email   gr...@saicomvoice.co.za Visit
>> our website   www.saicomvoice.co.za
>>
>>  <http://www.saicomvoice.co.za/>
>>

Re: Re: Need help with Debian startup script (restart/stop command)

2015-12-07 Thread spameden
2015-12-07 15:08 GMT+03:00 Grant Vorenberg :

> 
>
> echo "backing up kannel queue"
> rm -f /var/spool/queue_kannel.bak
> cp /var/spool/kannel /var/spool/queue_kannel.bak
> echo "Stopping SQLBox"
> /usr/bin/killall -9 sqlbox
> echo "Stopping BearerBox"
> /usr/bin/killall -9 bearerbox
> /bin/sleep 5
> echo " "
> echo "Starting BearerBox"
> /usr/local/sbin/bearerbox -v 5 /usr/local/sbin/smskannel.conf &
> /bin/sleep 5
> echo "Starting SQLBox"
> /usr/local/sbin/sqlbox -v 5 /usr/local/etc/sqlbox.conf &
> /bin/sleep 1
> echo "All processes started"
>
Hi!

Look into kannel's mailing lists archives, one was posted there recently.

Or just use:
http://www.kannel.org/download/1.4.4/gateway-1.4.4/debian/kannel.init

Actually you didn't say which Debian version you're using? 6, 7, 8? Because
in recent Debian sysvinit was replaced with systemd.


>
> Grant Vorenberg
>
> Technical Manager
> Office  0861 SAICOM (724 266) Direct  010 140 5012 Support  010 140 5050
> Cell  - Fax  010 140 5001 Email  gr...@saicomvoice.co.za Visit our website
> www.saicomvoice.co.za
>
> [image: logo image] 
>
>


Re: SQLBOX queued messages question

2015-12-07 Thread spameden
2015-12-07 14:03 GMT+03:00 Grant Vorenberg :

> [image: Saicom-now-offers-Cloud-PBX]
> 
> Hi Guys
>
> I am a new to the list subscription and am looking for a little clarity on
> the SQLBOX.
>
> I have a Debian Wheezy box running:
> Kannel sqlbox version 1.4.4
> Libxml version 2.7.2
> MySQL 5.5.43
>
> The front end is custom and drops message into the send_sms table. These
> messages are terminated via smpp to another system of ours. We process and
> clean out the sent_sms table.
>
> I gather stats on the performance of the system using the status page:
> http://localhost:13000/status
>
> I am trying to understand the following output from the screen:
> Box connections:
>smsbox:sqlbox, IP 127.0.0.1 (2532 queued), (on-line 0d 2h 48m 19s)
>

This means there is a queue on sqlbox.

Queue works like this:

First sqlbox gets messages from DB backend, then it adds messages to own
queue, then it sends message into bearerbox queue and bearerbox splits this
queue over your connected SMSC/upstream operators.

So if there is a huge queue on sqlbox it means there is a big amount of MTs
in your send_sms table and sqlbox is still submitting those to bearerbox.

To optimize sqlbox I'd recommend adding this parameter into sqlbox section
(after group = sqlbox):
limit-per-cycle = 50 this means sqlbox will get 50 bulk messages from DB
per query at once instead of 1.



>
> What I noticed is when our send speeds start dipping on the smpp
> connection (internal/default route), this smsbox:sql queue starts building
> up.
>
> When the smsbox:sqlbox queue starts building up like this:
> 1)What causes this?
> 2) What does this signify?
>
> We generally don’t see this behaviour very often, but its effect is
> detrimental to the performance of the system so I would like to know what
> causes the growth and how to combat it so our send speed is safe-guarded.
>
>
> Here is an excerpt from my config files:
>
> :
> group = sqlbox
> id = sqlbox-db
> smsbox-id = sqlbox
> #global-sender = ""
> bearerbox-host = localhost
> bearerbox-port = 13001
> smsbox-port = 13005
> smsbox-port-ssl = false
> sql-log-table = sent_sms
> sql-insert-table = send_sms
>
>
> :
> group = smsbox
> bearerbox-host = 127.0.0.1
> sendsms-port = 13013
> global-sender = 13013
> smsbox-id=my_smsbox
>
> group=smsbox-route
> smsbox-id=sqlbox
> smsc-id=internal
>
>
> Regards
>
>
>
>
>
> Grant Vorenberg
>
> Technical Manager
> Office  0861 SAICOM (724 266) Direct  010 140 5012 Support  010 140 5050
> Cell  - Fax  010 140 5001 Email  gr...@saicomvoice.co.za Visit our website
> www.saicomvoice.co.za
>
> [image: logo image] 
>
>


Re: How to operate kannel via web interface like start, stop, restart

2015-12-01 Thread spameden
1) look into manual

2) there is also available in contrib/ folder of source-code php-based web
interface for kannel which you can install and use to control kannel
gateway.

2015-12-01 12:23 GMT+03:00 Ammar Ali :

> Hello To All,
>
> Please anybody help me.
>
> I want to operate Kannel SMS Gateway from web interface such as:
>
> Start, stop or restart bearerbox.
> Start, stop or restart smsbox.
> Start, stop or restart sqlbox.
> Start, stop or restart smsc.
>
>
>
>
>
>
>
> *Thanks,*
>
> *Ammar Ali*
> *Pune (MH)*
>


Re: Is kannel able to enforce/translate character sets in outgoing messages (incoming: UCS-2 or url-encoded text, outgoing: gsm 7 bit)

2015-11-09 Thread spameden
look for coding parameter in user manual and charset.

typically for ucs-2 you need coding=2 and charset=utf-8

2015-11-09 16:08 GMT+03:00 Horváth Szabolcs :

> Hello!
>
> I’m migrating from Ozeki to Kannel and we’re facing a problem that it
> looks like Kannel can’t do character translation on-the-fly.
>
> Ozeki has a function: character set selection policy (
> *http://ozekisms.com/index.php?owpn=612*
> ): enforce, where „character
> substitutions and character losses are allowed”.
>
> Our client applications (which used Ozeki and will use Kannel in the
> future) are heavily depend on Ozeki’s character translation, which means
> they send the text messages with hungarian accents (á é í, and so on) and
> Ozeki is expected to convert these characters to GSM 7 bit.
>
> It does its best:
> - Hungarian test sentence would be „ÁRVÍZTŰRŐ TÜKÖRFÚRÓGÉP öt szép
> szűzlány őrült írót nyúz” (which makes no sense in English, in Hungarian is
> a bit funny and it contains all the special characters we need)
> - Ozeki translates like this:
> We’d like to avoid multiply SMS charges with UCS-2 encoding (with UCS-2 I
> can send 40-70 characters, compared to GSM 7 bit 160 characters) and it is
> acceptable to convert these characters into GSM 7 bit acceptable characters.
>
> I spent several hours reading manuals, source code and looking for answer
> in mailing lists but it was no success.
> The closest I have found is „mo-recode = true” but it looks like it
> doesn’t do any recoding.
>
> Is there a possibility to convert these characters inside Kannel? Which
> kannel.conf or sendsms cgi parameter will help for us?
>
> 1.4.3 at the moment, but I’m open to any solution.
>
> Any help would be highly appreciated.
>
> Thanks in advance,
>   Szabolcs Horvath
>
>


Re: impact of bearerbox running without smsbox

2015-09-30 Thread spameden
2015-10-01 5:23 GMT+03:00 Jeff Thorn :

> Hello,
> We had a instance of the bearerbox running for a few hours without smsbox
> running. Looks like we had a number of incoming message (deliver_sm)
> attempts.
>
> The logs show this (several times):
>
> WARNING: smsbox_list empty!
> WARNING: incoming messages queue too long, dropping a message
> WARNING: SMPP: Unknown TLV(0x000e,0x0001,03) for PDU type (deliver_sm)
> received!
>
> In this situation, what does bearerbox return to the SMSC in the
> deliver_sm_resp? I am trying to determine if we potentially lost incoming
> messages permanently. If bearerbox returns a status of success even though
> it could not deliver to sms, then I assume the messages are lost. If kannel
> returns a status of failure, then the SMSC should retry the failed message.
>
> Can someone confirm what bearerbox does in this situation?
>

I think in this situation brearerbox simply is receiving all messages from
your SMSC and not submitting any MT back.

Basically bearerbox is a core communication center whilst smsbox/sqlbox is
used to submit/process messages on your side.

You can try looking into logs of your smsc (if you had them turned on
verbose), there you must find all received messages.


> Thanks,
> Jeff
>
>


Re: Long SMS detection in sent_sms table

2015-09-14 Thread spameden
hi
you can add parts_num column to identify parts of the message in sqlbox,
you'd need to tweak both kannel and sqlbox for this.


Re: UDH split message sent via different sms centers.

2015-09-02 Thread spameden
2015-09-02 8:41 GMT+03:00 Mindaugas K. <k.mindau...@gmail.com>:

> Do you manually generate UDH for each concatenated message?
>
> NO, i send utf messages which are automaticaly converted to udh and
> concatinated.
>
> I'd suggest using kannel's ability to split message automatically and send
> through needed sms center.
>
> Messages are split automatically by kannel
>

Do you use multiple SMSC connection via the same name?



>
> 2015-09-01, an, 17:13 spameden <spame...@gmail.com> rašė:
>
>> Do you manually generate UDH for each concatenated message?
>>
>> I'd suggest using kannel's ability to split message automatically and
>> send through needed sms center.
>>
>> 2015-09-01 16:10 GMT+03:00 Mindaugas K. <k.mindau...@gmail.com>:
>>
>>> Hello,
>>> i have been using kannel for some time, but just recently started
>>> sending UTF messages. Now from time to time i see that users are not
>>> getting sms messages or getting messages which are glued from two different
>>> messages. After some investigation i noticed that some times udh split
>>> message parts are sent via differnet sms centers. How can i control that if
>>> message is split (UDH) it parts would be sent via same message center. I
>>> attach example(i trimmed hex encoded messages to remove sensitive info) and
>>> my kannel.conf maybe you will notice some mistakes. Any help is welcome.
>>> Thanks in advance.
>>>
>>
>>


Re: UDH split message sent via different sms centers.

2015-09-01 Thread spameden
Do you manually generate UDH for each concatenated message?

I'd suggest using kannel's ability to split message automatically and send
through needed sms center.

2015-09-01 16:10 GMT+03:00 Mindaugas K. :

> Hello,
> i have been using kannel for some time, but just recently started sending
> UTF messages. Now from time to time i see that users are not getting sms
> messages or getting messages which are glued from two different messages.
> After some investigation i noticed that some times udh split message parts
> are sent via differnet sms centers. How can i control that if message is
> split (UDH) it parts would be sent via same message center. I attach
> example(i trimmed hex encoded messages to remove sensitive info) and my
> kannel.conf maybe you will notice some mistakes. Any help is welcome.
> Thanks in advance.
>


Re: smsbox is gone

2015-08-15 Thread spameden
2015-08-14 22:02 GMT+03:00 Moazzam moz...@gmail.com:

 Hi,

 I am getting following error in my  gateway.log of kannel v1.4.4 off and
 on. Do not know what is the issue.  My smsbox and sqlbox has the id
 configured like

 Box connections:
 smsbox:sqlbox, IP 127.0.0.1 (0 queued), (on-line 0d 0h 47m 11s)
 smsbox:main, IP 127.0.0.1 (0 queued), (on-line 0d 0h 47m 8s)

 WARNING: Could not route message to smsbox id admin, smsbox is gone!


That message means bearerbox can't route message to smsbox id admin make
sure you have such smsbox, i can only see 'main' and sqlbox there.


 admin is nowhere defined

 Thanks,
 Ali




Re: DLR issue on Kannel 1.4.4

2015-08-15 Thread spameden
2015-08-15 18:03 GMT+03:00 Moazzam moz...@gmail.com:

 Thanks Alvaro, however, I do not think this is related to the dlr type.
 Most of the time its working fine only couple of time we see this. For
 example   there were 146 such occurrence out of 28580 where we got this
 error which is about 5% of the total SMS sent on that day.

 [kannel]# cat gateway.log |grep 2015-08-14|grep -c got DLR but could
 not find message
 146

 [kannel]# cat access.log|grep 2015-08-14|grep -c Sent
 28580

 Perhaps the final DLR is not reach in due time and causing this. Is there
 anyway to fine tune this with a configuration change?


Hi. Do you send multipart MT? Kannel only asks for DLR for the first part
of the MT, but many SMSC operators sending for all parts DLR reports that's
why you might be getting such errors in your error log.

You can check by sending multipart message (for coding=0 it would be more
than 140 symbols or for coding=2 70).




 On 8/14/2015 7:39 PM, Alvaro Cornejo wrote:

 Hi

 Check the format of dlr-id some smsc use hex and some dec. Adjust kannel
 config accordingly

 I think the parameter to adjust is dlr-type

 Regards


 |-|
 Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
 celular y Nextel
 en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
 SMS y GPRS online
   Visitenos en www.perusms.com http://www.perusms.com


 On Fri, Aug 14, 2015 at 8:48 AM, Moazzam moz...@gmail.com mailto:
 moz...@gmail.com wrote:

 Hi,

 I have a production kannel v1.4.4 instance running with sqlbox and
 opensmppbox  along with mysql as DLR storage.  So far so good but
 I am facing an issue with the DLR where DLR are being queued  and
 strange error related to the message id  destination is appearing
 the the gateway log as below. Please advise how to get rid of this
 problem.

 2015-06-23 01:33:00 [32056] [6] DEBUG: SMPP[crs]: Got PDU:
 2015-06-23 01:33:00 [32056] [6] DEBUG: SMPP PDU 0x7fceba10 dump:
 2015-06-23 01:33:00 [32056] [6] DEBUG:   type_name: deliver_sm
 2015-06-23 01:33:00 [32056] [6] DEBUG:   command_id: 5 = 0x0005
 2015-06-23 01:33:00 [32056] [6] DEBUG:   command_status: 0 =
 0x
 2015-06-23 01:33:00 [32056] [6] DEBUG:   sequence_number: 2 =
 0x0002
 2015-06-23 01:33:00 [32056] [6] DEBUG:   service_type: NULL
 2015-06-23 01:33:00 [32056] [6] DEBUG:   source_addr_ton: 1 =
 0x0001
 2015-06-23 01:33:00 [32056] [6] DEBUG:   source_addr_npi: 1 =
 0x0001
 2015-06-23 01:33:00 [32056] [6] DEBUG:   source_addr: 2xxx
 2015-06-23 01:33:00 [32056] [6] DEBUG:   dest_addr_ton: 5 = 0x0005
 2015-06-23 01:33:00 [32056] [6] DEBUG:   dest_addr_npi: 0 = 0x
 2015-06-23 01:33:00 [32056] [6] DEBUG:   destination_addr: Zx
 2015-06-23 01:33:00 [32056] [6] DEBUG:   esm_class: 4 = 0x0004
 2015-06-23 01:33:00 [32056] [6] DEBUG:   protocol_id: 0 = 0x
 2015-06-23 01:33:00 [32056] [6] DEBUG:   priority_flag: 0 = 0x
 2015-06-23 01:33:00 [32056] [6] DEBUG:  schedule_delivery_time: NULL
 2015-06-23 01:33:00 [32056] [6] DEBUG:   validity_period: NULL
 2015-06-23 01:33:00 [32056] [6] DEBUG:  registered_delivery: 0 =
 0x
 2015-06-23 01:33:00 [32056] [6] DEBUG: replace_if_present_flag: 0
 = 0x
 2015-06-23 01:33:00 [32056] [6] DEBUG:   data_coding: 0 = 0x
 2015-06-23 01:33:00 [32056] [6] DEBUG:   sm_default_msg_id: 0 =
 0x
 2015-06-23 01:33:00 [32056] [6] DEBUG:   sm_length: 112 = 0x0070
 2015-06-23 01:33:00 [32056] [6] DEBUG:   short_message:
 2015-06-23 01:33:00 [32056] [6] DEBUG:Octet string at
 0x7fceb0001110:
 2015-06-23 01:33:00 [32056] [6] DEBUG:  len:  112
 2015-06-23 01:33:00 [32056] [6] DEBUG:  size: 113
 2015-06-23 01:33:00 [32056] [6] DEBUG:  immutable: 0
 2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 69 64 3a 35 39
 33 38 35 38 38 35 31 34 38 33 30   id:5938588514830
 2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 36 36 34 20 73
 75 62 3a 30 30 31 20 64 6c 76 72   664 sub:001 dlvr
 2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 64 3a 30 30 31
 20 73 75 62 6d 69 74 20 64 61 74   d:001 submit dat
 2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 65 3a 31 35 30
 36 32 32 31 38 30 31 32 37 20 64   e:150622180127 d
 2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 6f 6e 65 20 64
 61 74 65 3a 31 35 30 36 32 33 30   one date:1506230
 2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 31 33 33 31 33
 20 73 74 61 74 3a 44 45 4c 49 56   13313 stat:DELIV
 2015-06-23 01:33:00 [32056] [6] DEBUG:  data: 52 44 20 65 72
 72 3a 30 30 30 20 74 65 78 74 3a   RD err:000 text:
 2015-06-23 01:33:00 [32056] [6] DEBUG:Octet 

Re: smsbox is gone

2015-08-15 Thread spameden
2015-08-15 17:39 GMT+03:00 Moazzam moz...@gmail.com:

 Thanks, however, I am wondering from where admin is coming and where I
 should define it? in main kannel smsbox or sqlbox  or smppbox?

 //Moazzam


check for smsbox-id variable, you should define it in the section related
to smsbox


 On 8/15/2015 4:36 PM, spameden wrote:



 2015-08-14 22:02 GMT+03:00 Moazzam moz...@gmail.com mailto:
 moz...@gmail.com:

 Hi,

 I am getting following error in my  gateway.log of kannel v1.4.4
 off and on. Do not know what is the issue.  My smsbox and sqlbox
 has the id configured like

 Box connections:
 smsbox:sqlbox, IP 127.0.0.1 (0 queued), (on-line 0d 0h 47m 11s)
 smsbox:main, IP 127.0.0.1 (0 queued), (on-line 0d 0h 47m 8s)

 WARNING: Could not route message to smsbox id admin, smsbox is gone!


 That message means bearerbox can't route message to smsbox id admin
 make sure you have such smsbox, i can only see 'main' and sqlbox there.


 admin is nowhere defined

 Thanks,
 Ali






Re: SQLBOX time and foreign_id

2015-08-12 Thread spameden
2015-08-12 8:03 GMT+03:00 Sergey Yudin ser...@centrcombank.com:

 2015-08-07 22:42 GMT+03:00 spameden spame...@gmail.com
 mailto:spame...@gmail.com:

 2015-08-07 22:41 GMT+03:00 spameden spame...@gmail.com
 mailto:spame...@gmail.com:

 2015-08-07 21:06 GMT+03:00 Sergey Yudin ser...@centrcombank.com
 mailto:ser...@centrcombank.com:

 Can you give some tips about using charset field ?
 Provider wants UCS-2BE encoding and database in CP1251
 encoding

 for this you need to use coding=2 and charset='utf-8' and also
 msgdata=urlencode(utf-8 encoded text) this way you'll get on the
 handset correct text.

 make sure to use latest kannel 1.4.4 (you can build it as well
 from SVN, SVN is production ready).


 About cp1251 i have no idea, since I'm always using UTF-8. But you
 can try replacing UTF-8 with CP1251 and encoding text in CP1251. Not
 sure if it'd work.


 2 more questions about sqlbox fields:

 * What fields of SMS_SENT dlr records indicates, that Delivery is OK ? Or
 should I parse msgdata field for provider reply ?

 On stock sqlbox status of the sent_sms is in the DLR record (momt='DLR')
in sent_sms table in dlr_mask field.

dlr_mask can be:
1 == sent
2 == error
8 == buffered (means submitted to smsc)
16 == blocked by smsc

for all statuses you can check kannel guide (i don't remember them all now)

for status = 2 there is usually some extended info in msgdata of DLR record.

I'd recommend adding status field to the sent_sms and just updating
relevant MT record with info from arriving DLR and not keeping DLR record
at all because it's not needed.

Here is how I do it myself:

when DLR record arrives I'm just updating MT record with the same dlr_url
(dlr_url is generated automatically when you insert MT into table) setting
status, number of parts in original MT and updating meta_data field (which
im not using) with msgdata from DLR.

you'd need to modify both kannel and sqlbox to achieve this.

in the end to get certain MT status I just query sent_sms table and check
for status field.

but if you don't want to touch kannel's source code or not very familiar
with C you can add a trigger on MySQL and update table the same way I
believe or add some external http script for processing via same dlr_url
functionality.


 * How to interpret field ts (field-timestamp) in DLR table ? Is it
 unixtime in hex ?


No, ts filed in dlr table is a foreign id of MT at SMSC. Some SMSC
providers use UNIX_TIMESTAMP though as foreign id, but not everyone.

Though, you can add create_date to dlr table to track down when DLR has
arrived, e.g. (for MySQL):

ALTER table `dlr` add column create_date timestamp default
CURRENT_TIMESTAMP;



 --
 Regards..



Re: Running Kannel as an SMSC

2015-08-12 Thread spameden
2015-08-12 17:57 GMT+03:00 Mickael Marrache mickaelmarra...@gmail.com:

 Hi,

 Thanks for your reply!

 I tried opensmppbox but I'm not sure how it integrates with Kannel. Should
 I define opensmppbox as an SMSC in the bearerbox config?



OpenSMPPBox is basically just a proxy to the kannel. It lacks of advanced
features like speed control of certain clients, accounting, etc. It's just
a very basic concept. Though you can always enhance it, source is open.

There is a commercial version exists ask for it Stipe Tolj (it's much
better). You can find his e-mail through google or in kannel's changelog.



 On Wed, Aug 12, 2015 at 4:48 PM, Alvaro Cornejo cornejo.alv...@gmail.com
 wrote:

 Hi

 You can use either opensmppbox or contact stipe for a comercial version.

 Regards

 Alvaro


 |-|
 Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
 celular y Nextel
 en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
 SMS y GPRS online
   Visitenos en www.perusms.com

 On Wed, Aug 12, 2015 at 7:56 AM, Mickael Marrache 
 mickaelmarra...@gmail.com wrote:

 Hi,

 Is it possible to run Kannel as an SMSC?

 Basically, I would like an ESME to open the connection to Kannel and not
 the opposite. The regular way is to define the SMSC in the Kannel config
 and Kannel opens the connection to the SMSC.

 I tried to not specify any SMSC in the config but when I start the
 bearerbox, it terminates immediately.

 Thanks,
 Mickael






Re: SQLBOX time and foreign_id

2015-08-07 Thread spameden
2015-08-07 16:16 GMT+03:00 Sergey Yudin ser...@centrcombank.com:

 Dear Kannel People

 I am using Bearer + SQLBOX with Oracle database.

 SENT_SMS table contains TIME and FOREIGN_ID fields but they are empty for
 sent messages with Momt='MT'. Why bearer/sqlbox dosent feel it ?


foreign_id is the ID smsc gives you.

time field is not empty if you filled it with some value.

to track message you should use dlr_url field you can achieve this via
various techniques:
1) trigger in Oracle
2) put something unique in dlr_url thus you can connect with incoming DLR
message
3) you can use external http call via script update what you need



 For instance bearer_access log have FID number for sent SMSs.
 ===
 Sent SMS [SMSC:tim] [SVC:] [ACT:] [BINF:] [FID:602c58ee]...
 ===

 It will be very helpfull if time and foreign_id fields are filled

 --
 Regards..




Re: SQLBOX time and foreign_id

2015-08-07 Thread spameden
Always copy list, so others would benefit from solution too.

2015-08-07 22:42 GMT+03:00 spameden spame...@gmail.com:



 2015-08-07 22:41 GMT+03:00 spameden spame...@gmail.com:



 2015-08-07 21:06 GMT+03:00 Sergey Yudin ser...@centrcombank.com:





 Can you give some tips about using charset field ? Provider wants
 UCS-2BE encoding and database in CP1251 encoding


 for this you need to use coding=2 and charset='utf-8' and also
 msgdata=urlencode(utf-8 encoded text) this way you'll get on the handset
 correct text.

 make sure to use latest kannel 1.4.4 (you can build it as well from SVN,
 SVN is production ready).


 About cp1251 i have no idea, since I'm always using UTF-8. But you can try
 replacing UTF-8 with CP1251 and encoding text in CP1251. Not sure if it'd
 work.




 --
 Regards






Re: DLR Issues in Kannel with SQLBox

2015-08-04 Thread spameden
Do you receive DLR at all?

You need to check logs for your SMSC provider.

Do you use any http callback or just update via MySQL Trigger on INSERT of
sent_sms table?

It might be that under load your http server is not acting properly or
you're hitting some race condition in MySQL.

The best way is actually to use dlr_url field to insert there unique
identifier based on time (with nanoseconds) and smsc identifier.

2015-08-04 14:07 GMT+03:00 Ammar Ali ammarali3...@gmail.com:

 Hello Everyone,


 I'm configuring Kannel with SQLbox on my Server and used with my HTTP
 application.

 Everything is fine but sometimes I'm not able to getting delivery reports
 of some numbers.

 I'm updating this DLR in my Database using mysql trigger.


 So please help me.








 *Thanks*

 *Ammar Ali*
 *Pune (M.H.)*




Re: Kannel With OpenSMPPBox

2015-07-27 Thread spameden
2015-07-27 14:17 GMT+03:00 Ammar Ali ammarali3...@gmail.com:

 Hello To All,

 I have successfully configured Kannel with opensmppbox.

 This is my architecture:

 *SMPP Client - OpenSMPPBox - SQLBox - Bearerbox - SMPP Connections*

 This is work fine for me.

 Now I have some issues in this above system.

 1. How to set throughput for each smpp client.
 2. How to control all smpp client request at my end.
 3. How to filter smpp client sms request at my end.
 4. How to routing at run-time.


You can't do this with OpenSMPPBox.

There are commercial versions of smppbox around, please contact Stipe Tolj
or Alexander Malysh.



 This is my few questions. So Please give me your valuable feedback.

 I appreciate your hard work.





 *Thanks*

 *Ammar Ali*
 *Pune (M.H.)*




Re: Kannel 1.5.0 Latest SVN URL

2015-05-18 Thread spameden
2015-05-18 13:33 GMT+03:00 Kannel User kannel...@gmail.com:

 Hello,

 Can you please provide me the latest kannel version 1.5.0 SVN URL?


https://svn.kannel.org/gateway/trunk/ -- kannel bearerbox/smsbox core
itself
https://svn.kannel.org/sqlbox/trunk/ -- sqlbox
https://svn.kannel.org/opensmppbox/trunk/ --- opensmppbox

you can always check commits/bugs at https://redmine.kannel.org



 Because I'm a little confused about your SVN repos.

 Thank you.

 Regards.



Re: Urgent help required to connect SMPP client softwere with Kannel

2015-05-16 Thread spameden
2015-05-16 19:58 GMT+03:00 Muhammad Danish danish_cs...@yahoo.com:

 Mr Spameden,

 As great Shahrukh Khan once said in a movie Never underestimate with
 power of common man , I am happy to inform you that I am able to
 successfully resolve the issue using the below link .

 http://www.kannel.org/pipermail/users/2012-February/017400.html

 See i mentioned earlier  that their are still enough good people in this
 forum who are sharing their knowledge for free.


See as I mentioned before if you google a bit you'll get what you need :)



 BTW my offer to assist you in Telecom and Data Network is still valid .

 Dear Active followers of this forum , The above link is good source to
 resolve OpenSMPPBOX invalid user id / password issue , or if you are having
 any trouble in configuring OpenSMPPBOX then feel free to contact me via
 email ,I am happy to assist you in free  :P :P


Sure, but question should be asked properly and be on point. After you read
everything and you can't solve something you post a question.

I'm glad you've solved your problem yourself.



 Regards,

 Danish
 Karachi/Pakistan .




   On Saturday, May 16, 2015 10:26 AM, Tapan Kumar Thapa 
 tapan.thapa2...@gmail.com wrote:


 Dear Muhammad,

 I am glad that you understood what i was trying to explain.

 Thanks  Regards
 Tapan Thapa

 On Sat, May 16, 2015 at 10:50 AM, Muhammad Danish danish_cs...@yahoo.com
 wrote:

 Dear Tapan Kumar sahib,

 My reply was specifically related to following comment .I am totally
 agreed that I mistakenly added additional groups .

 Nobody is going to do that work for you for FREE. So you either google a
 bit and read manual or hire someone to set it up for you for money.




   On Saturday, May 16, 2015 10:15 AM, Tapan Kumar Thapa 
 tapan.thapa2...@gmail.com wrote:


 As per my observation, Spameden has not said any wrong word here.

 He has just informed that announce@ and devel@ mailing list are for
 different jobs and should not be marked for question like this.

 If any query related questions, we should always mark to @users.

 Thanks  Regards
 Tapan Thapa



 On Sat, May 16, 2015 at 10:37 AM, Muhammad Danish danish_cs...@yahoo.com
 wrote:

 Dear Spameden,

 Thanks for your suggestion , I guess I have the right to ask anything
 related to Kannel in this form and their are enough people who are willing
 to assist .

 I am primary associated with Core Telecom and Data N/w for the last 12
 years , If you ever need help related to these domains , I am just one
 email away and for sure I wont change anything .

 Once again thanks replying my earlier email



   On Saturday, May 16, 2015 1:06 AM, spameden spame...@gmail.com wrote:


 First of all no need to add irrelevant mailing lists such as announce@
 and devel@.

 They are not for questions like this.

 Second, there is a thing called opensmppbox which suit your needs, read
 the manual and configure it.

 Nobody is going to do that work for you for FREE. So you either google a
 bit and read manual or hire someone to set it up for you for money.





 2015-05-15 22:56 GMT+03:00 Muhammad Danish danish_cs...@yahoo.com:

 Dear All,

 I am already manage a Kannel SMS Gateway having Multiple connection with
 different Telco , however I have received a required from a customer that
 they wanted to use SMPP client software ( NOW SMS/MMS Gateway) through
 which they can connect to our SMSC GW ( which is running on Kannel).

 Would appreciate if you could send me the required configuration file so
 that I can update the configuration .

 I did the below configuration however my client is unable to connect to
 port .

 roup = smsc
 smsc = smpp
 smsc-id=ABC
 host=x.x.x.74
 port=2221
 receive-port =
 smsc-username = danish
 smsc-password = danish12
 #service-type = 612
 system-type=default
 interface-version = 34
 preferred-smsc-id=ABC
 throughput = 10
 keepalive = 50
 sender-prefix=
 idle-timeout = 30














Re: Urgent help required to connect SMPP client softwere with Kannel

2015-05-15 Thread spameden
First of all no need to add irrelevant mailing lists such as announce@ and
devel@.

They are not for questions like this.

Second, there is a thing called opensmppbox which suit your needs, read the
manual and configure it.

Nobody is going to do that work for you for FREE. So you either google a
bit and read manual or hire someone to set it up for you for money.





2015-05-15 22:56 GMT+03:00 Muhammad Danish danish_cs...@yahoo.com:

 Dear All,

 I am already manage a Kannel SMS Gateway having Multiple connection with
 different Telco , however I have received a required from a customer that
 they wanted to use SMPP client software ( NOW SMS/MMS Gateway) through
 which they can connect to our SMSC GW ( which is running on Kannel).

 Would appreciate if you could send me the required configuration file so
 that I can update the configuration .

 I did the below configuration however my client is unable to connect to
 port .

 roup = smsc
 smsc = smpp
 smsc-id=ABC
 host=x.x.x.74
 port=2221
 receive-port =
 smsc-username = danish
 smsc-password = danish12
 #service-type = 612
 system-type=default
 interface-version = 34
 preferred-smsc-id=ABC
 throughput = 10
 keepalive = 50
 sender-prefix=
 idle-timeout = 30





Re: Does Kannel Record and Log Calls

2015-05-13 Thread spameden
kannel is not suitable for calls, look at asterisk this is what you need.

2015-05-13 14:44 GMT+03:00 Indraveni chebolu indraveni.cheb...@gmail.com:

 Hi Kannel Group,

 Does Kannel support calls, in such a way that Incoming and Outgoing calls
 can be recorded or Atleast Log the Missed Call if given to the number.

 Indra



Re: Bearerbox Access Log to MySQL

2015-04-15 Thread spameden
2015-04-15 7:13 GMT+03:00 Tapan Kumar Thapa tapan.thapa2...@gmail.com:

 If application is going to send huge number of messages via kannel than i
 think we should not configure kannel anyhow with MySQL (Or Any other
 database) as All databases actually slow the performance of kannel due to
 select/insert/update/delete operations.


I do not agree with you on this.

We've been using sqlbox for quite some time without any problems with huge
load some time ago (about 200-300 MT/sec real speed with multiple uplinks).

We didn't log DLR reports tho, just updated MT records with relevant fresh
information from DLR.

In most cases speed issue is SMSC issue not kannel at all if you do
everything right.



 We should make our own application in front of kannel for logging and any
 other operations.

 On Wed, Apr 15, 2015 at 3:54 AM, Alberto Mijares amijar...@gmail.com
 wrote:

 Hi guys,

 I'd like to send bearerbox access logs directly to a MySQL table. I
 think I could try

 group = core
 ...
 access-log = /path/to/any/socket
 ...

 and have a script reading the socket, etc...

 Have anyone done this before? Any advise before I put my hands on
 would be appretiated.

 Thanks in advance,


 Alberto Mijares





Re: set registered_delivery field to 1 in kannel SUBMIT_SM

2015-04-07 Thread spameden
how do you submit MT?

if you submit via smsbox, add dlr_mask=31 if via sqlbox set dlr_mask field
to 31 to get all delivery reports.

if you want to get only certain types of DLR read user guide.

2015-04-07 16:53 GMT+03:00 Salma BARKAOUI salma.barka...@supcom.tn:

  Hi users ,

 How can I set  registered_delivery field to 1 in kannel SUBMIT_SM ?

 Using wireshark I see it fixed on 0 then I get no DLR repport :(





Re: configurer kannel with sqlbox

2015-04-06 Thread spameden
2015-04-06 17:03 GMT+03:00 Salma BARKAOUI salma.barka...@supcom.tn:

  Hi users ,


  1) It is possible to execute sqlbox -v 0 sqlbox.conf on a php file like
 this:

 echo exec('sqlbox -v 0 /etc/kannel/sqlbox.conf'); ?


No need to start sqlbox multiple times, you only need to start it once and
it forks into background as a daemon.

Look at contrib/init.d script for proper bearerbox/sqlbox startup script.

 If not how we can make sqlbox do not stop because it stop each time the
 database became empty.

Did you mean send_sms table ? Of course it will be emptied because this is
how sqlbox is working. It gets record from send_sms, parses it, submits to
bearerbox and after submission moves that record into sent_sms table.

 2) Can we have DLR message using SMPPsim ?​

If you meant testing with SMPPsimulator yes you can do it, also there is
fakesmsc daemon which provides ability to send MTs with DLR as well.

  Thanks.





Re: Unicode Message is not Delivered properly on cell phones

2015-03-27 Thread spameden
2015-03-27 13:52 GMT+03:00 Ammar Ali ammarali3...@gmail.com:

 Hello Everyone,

 When I'm sending UNICODE message through URL like:


 http://192.168.1.1:15010/cgi-bin/sendsms?username=tester2password=tester2to=9039238251text=%E0%A4%AF%E0%A4%B9%20%E0%A4%B8%E0%A4%A8%E0%A5%8D%E0%A4%A6%E0%A5%87%E0%A4%B6%20%E0%A4%B9%E0%A5%88from=454545coding=2charset=utf-8

 It has been receive correctly. But I'm using SQLBox then it has not been
 delivered properly.


Make sure when you insert into database text source encoding is UTF-8 and
text is urlencoded. Also there was some bug with builds posted on kannel.org
site (specifically kannel-1.5.0 dev build), so make sure to use latest
kannel version 1.4.4 or better build from SVN (which contains all the
latest fixes and considered as stable).



 So please check my Kannel configuration and logs. Where is the exact
 problem.


 Thanks in advance.


 Thanks  Regards
 Ammar Ali





 -- Forwarded message --
 From: Ammar Ali ammarali3...@gmail.com
 Date: Fri, Mar 27, 2015 at 12:27 PM
 Subject: Unicode Message is not Delivered properly on cell phones
 To: users@kannel.org users@kannel.org
 Cc: Ammar Ali ammarali3...@gmail.com


 Hello Everyone,

 When I'm sending unicode message from my interface then it is not
 delivered properly on cell phones. Only ? got.

 I'm using sqlbox for message pushing. When I'm inserting sms into send_sms
 table then I'm also inserting the value of coding parameter (*coding=2*)
 and charset parameter (*charset=UTF-8*).


 This is my whole configuration:

 #-
 # THIS IS A CONFIGURATION FOR KANNEL
 #-
 #  Single Group CORE
 #-

 group = core
 admin-port = 15000
 admin-port-ssl=no
 admin-password = **
 status-password = **
 admin-deny-ip=*.*.*.*
 admin-allow-ip=*.*.*.*
 smsbox-interface =127.0.0.1
 smsbox-port = 15001
 #smsbox-port-ssl=no
 log-file = mykannel.log
 log-level = 0
 access-log = myaccess.access
 dlr-storage = internal
 sms-incoming-queue-limit = -1
 sms-outgoing-queue-limit = 100
 smsbox-max-pending = 100
 sms-resend-freq = 60
 sms-resend-retry = -1

 #-
 #  Single Group smsbox
 #-

 group = smsbox
 smsbox-id = smsbox
 bearerbox-host = 127.0.0.1
 bearerbox-port = 15001
 sendsms-port = 15010
 log-file = mysmsbox1.log
 log-level = 0
 access-log=smsaccess1.access
 sendsms-chars = 0123456789+ 
 #max-pending-requests = 512
 #sendsms-url=/cgi-bin/sendsms
 #global-sender = 123456
 #ms-length = 140
 #http-request-retry=5
 mo-recode='1'

 #-
 #  Multi Group SMSC
 #-

 group = smsc
 smsc = smpp
 smsc-id = smsc1
 log-file = mysmsc1.log
 log-level = 0
 host = ***.***.***.***
 port = *
 #receive-port=2776
 smsc-username = ***
 smsc-password = **
 denied-smsc-id = smsc2
 allowed-smsc-id = smsc1
 preferred-smsc-id = smsc1
 source-addr-ton = 0
 source-addr-npi = 1
 dest-addr-ton = 1
 dest-addr-npi = 1
 service-type = CMT
 validityperiod = 600
 system-type = VMA
 alt-charset=us-ascii
 #alt-charset =
 ASCII;windows-1252;UTF-8;ISO-8859-1;ISO-8859-7;GSM;UTF-16BE
 #alt-addr-charset = GSM
 address-range = ^$
 bind-addr-ton = 0
 bind-addr-npi = 0
 enquire-link-interval = 20
 reconnect-delay = 0
 transceiver-mode = true
 interface-version = 34
 connection-timeout = 0
 throughput = 1000.00
 max-pending-submits=10
 #reroute=true
 #reroute-smsc-id=smsc1
 reroute-dlr=true

 #---

 group = smsc
 smsc = smpp
 smsc-id = smsc2
 log-file = mysmsc2.log
 log-level = 0
 host = ***.***.***.***
 port = 
 #receive-port=2776
 smsc-username = *
 smsc-password = *
 denied-smsc-id = smsc1
 allowed-smsc-id = smsc2
 preferred-smsc-id = smsc2
 source-addr-ton = 0
 source-addr-npi = 1
 dest-addr-ton = 1
 dest-addr-npi = 1
 service-type = CMT
 validityperiod = 600
 system-type = VMA
 alt-charset=us-ascii
 #alt-charset =
 ASCII;windows-1252;UTF-8;ISO-8859-1;ISO-8859-7;GSM;UTF-16BE
 #alt-addr-charset = GSM
 address-range = ^$
 bind-addr-ton = 0
 bind-addr-npi = 0
 enquire-link-interval = 20
 reconnect-delay = 0
 transceiver-mode = true
 interface-version = 34
 connection-timeout = 0
 throughput = 1000.00
 max-pending-submits=10
 #reroute=true
 #reroute-smsc-id=smsc2
 reroute-dlr=true

 #-
 #  Multi Group smsbox-route
 #-

 group = smsbox-route
 smsbox-id = smsbox
 smsc-id = smsc1

 group = smsbox-route
 smsbox-id = smsbox
 smsc-id = smsc2

 #-
 # Multi Group sms-service
 # There should be always a 'default' service.
 # This service is used when no other 'sms-service' is applied.
 

Re: Unicode Message is not Delivered properly on cell phones

2015-03-27 Thread spameden
msgdata needs to be urlencoded, you can use urlencode() php function to do
this.

2015-03-27 16:04 GMT+03:00 Ammar Ali ammarali3...@gmail.com:

 Hello Spameden,

 Yes, I'm currently use latest Kannel Version 1.4.4. I'm inserting this
 values in sqlbox_send_sms table:










 *momt=MTsender=123456receiver=9123456msgdata=unicode
 messagesmsc_id=smsc1sms_type=2coding=2dlr_mask=31alt_dcs=1*
 *charset=utf-8*
 I notice one thing, when I'm inserting unicode message into
 sqlbox_send_sms table then stored correct sms in this table. But this table
 forward to kannel queue. It convert into codes, So message has not been
 received properly. Only ? sign.


 Please resolve this issue as soon as possible.

 Thanks
 Ammar Ali














 On Fri, Mar 27, 2015 at 5:10 PM, spameden spame...@gmail.com wrote:



 2015-03-27 13:52 GMT+03:00 Ammar Ali ammarali3...@gmail.com:

 Hello Everyone,

 When I'm sending UNICODE message through URL like:


 http://192.168.1.1:15010/cgi-bin/sendsms?username=tester2password=tester2to=9039238251text=%E0%A4%AF%E0%A4%B9%20%E0%A4%B8%E0%A4%A8%E0%A5%8D%E0%A4%A6%E0%A5%87%E0%A4%B6%20%E0%A4%B9%E0%A5%88from=454545coding=2charset=utf-8

 It has been receive correctly. But I'm using SQLBox then it has not been
 delivered properly.


 Make sure when you insert into database text source encoding is UTF-8 and
 text is urlencoded. Also there was some bug with builds posted on
 kannel.org site (specifically kannel-1.5.0 dev build), so make sure to
 use latest kannel version 1.4.4 or better build from SVN (which contains
 all the latest fixes and considered as stable).



 So please check my Kannel configuration and logs. Where is the exact
 problem.


 Thanks in advance.


 Thanks  Regards
 Ammar Ali





 -- Forwarded message --
 From: Ammar Ali ammarali3...@gmail.com
 Date: Fri, Mar 27, 2015 at 12:27 PM
 Subject: Unicode Message is not Delivered properly on cell phones
 To: users@kannel.org users@kannel.org
 Cc: Ammar Ali ammarali3...@gmail.com


 Hello Everyone,

 When I'm sending unicode message from my interface then it is not
 delivered properly on cell phones. Only ? got.

 I'm using sqlbox for message pushing. When I'm inserting sms into
 send_sms table then I'm also inserting the value of coding parameter (
 *coding=2*) and charset parameter (*charset=UTF-8*).


 This is my whole configuration:

 #-
 # THIS IS A CONFIGURATION FOR KANNEL
 #-
 #  Single Group CORE
 #-

 group = core
 admin-port = 15000
 admin-port-ssl=no
 admin-password = **
 status-password = **
 admin-deny-ip=*.*.*.*
 admin-allow-ip=*.*.*.*
 smsbox-interface =127.0.0.1
 smsbox-port = 15001
 #smsbox-port-ssl=no
 log-file = mykannel.log
 log-level = 0
 access-log = myaccess.access
 dlr-storage = internal
 sms-incoming-queue-limit = -1
 sms-outgoing-queue-limit = 100
 smsbox-max-pending = 100
 sms-resend-freq = 60
 sms-resend-retry = -1

 #-
 #  Single Group smsbox
 #-

 group = smsbox
 smsbox-id = smsbox
 bearerbox-host = 127.0.0.1
 bearerbox-port = 15001
 sendsms-port = 15010
 log-file = mysmsbox1.log
 log-level = 0
 access-log=smsaccess1.access
 sendsms-chars = 0123456789+ 
 #max-pending-requests = 512
 #sendsms-url=/cgi-bin/sendsms
 #global-sender = 123456
 #ms-length = 140
 #http-request-retry=5
 mo-recode='1'

 #-
 #  Multi Group SMSC
 #-

 group = smsc
 smsc = smpp
 smsc-id = smsc1
 log-file = mysmsc1.log
 log-level = 0
 host = ***.***.***.***
 port = *
 #receive-port=2776
 smsc-username = ***
 smsc-password = **
 denied-smsc-id = smsc2
 allowed-smsc-id = smsc1
 preferred-smsc-id = smsc1
 source-addr-ton = 0
 source-addr-npi = 1
 dest-addr-ton = 1
 dest-addr-npi = 1
 service-type = CMT
 validityperiod = 600
 system-type = VMA
 alt-charset=us-ascii
 #alt-charset =
 ASCII;windows-1252;UTF-8;ISO-8859-1;ISO-8859-7;GSM;UTF-16BE
 #alt-addr-charset = GSM
 address-range = ^$
 bind-addr-ton = 0
 bind-addr-npi = 0
 enquire-link-interval = 20
 reconnect-delay = 0
 transceiver-mode = true
 interface-version = 34
 connection-timeout = 0
 throughput = 1000.00
 max-pending-submits=10
 #reroute=true
 #reroute-smsc-id=smsc1
 reroute-dlr=true

 #---

 group = smsc
 smsc = smpp
 smsc-id = smsc2
 log-file = mysmsc2.log
 log-level = 0
 host = ***.***.***.***
 port = 
 #receive-port=2776
 smsc-username = *
 smsc-password = *
 denied-smsc-id = smsc1
 allowed-smsc-id = smsc2
 preferred-smsc-id = smsc2
 source-addr-ton = 0
 source-addr-npi = 1
 dest-addr-ton = 1
 dest-addr-npi = 1
 service-type = CMT
 validityperiod = 600
 system-type = VMA
 alt-charset=us-ascii
 #alt-charset =
 ASCII;windows-1252;UTF-8;ISO-8859

Re: Unicode Message is not Delivered properly on cell phones

2015-03-27 Thread spameden
2015-03-27 16:31 GMT+03:00 Ammar Ali ammarali3...@gmail.com:

 Hello Spameden,

 I have one more issue regarding smsc connection to the kannel. My smsc
 connections are going on reconnection mode again and again.


Most likely you have either a network issue or problem with upstream SMSC,
contact your upstream SMSC provider for details.


 This is my SMSC configuration in kannel

 group = smsc
 smsc = smpp
 smsc-id = smsc1
 log-file = mysmsc1.log
 log-level = 0
 host = ***.***.***.***
 port = 
 #receive-port=
 smsc-username = **
 smsc-password = **
 denied-smsc-id = smsc2
 allowed-smsc-id = smsc1
 preferred-smsc-id = smsc1
 source-addr-ton = 0
 source-addr-npi = 1
 dest-addr-ton = 1
 dest-addr-npi = 1
 service-type = CMT
 #validityperiod = 600
 system-type = VMA
 alt-charset=us-ascii
 #alt-addr-charset = GSM
 #address-range = ^$
 #bind-addr-ton = 0
 #bind-addr-npi = 0
 enquire-link-interval = 120
 reconnect-delay = 120
 transceiver-mode = true
 interface-version = 34
 connection-timeout = 120
 throughput = 100




 On Fri, Mar 27, 2015 at 6:59 PM, Ammar Ali ammarali3...@gmail.com wrote:

 I also use this urlencode function for encoding but not getting proper
 message on cell phone.

 On Fri, Mar 27, 2015 at 6:49 PM, spameden spame...@gmail.com wrote:

 msgdata needs to be urlencoded, you can use urlencode() php function to
 do this.

 2015-03-27 16:04 GMT+03:00 Ammar Ali ammarali3...@gmail.com:

 Hello Spameden,

 Yes, I'm currently use latest Kannel Version 1.4.4. I'm inserting this
 values in sqlbox_send_sms table:










 *momt=MTsender=123456receiver=9123456msgdata=unicode
 messagesmsc_id=smsc1sms_type=2coding=2dlr_mask=31alt_dcs=1*
 *charset=utf-8*
 I notice one thing, when I'm inserting unicode message into
 sqlbox_send_sms table then stored correct sms in this table. But this table
 forward to kannel queue. It convert into codes, So message has not been
 received properly. Only ? sign.


 Please resolve this issue as soon as possible.

 Thanks
 Ammar Ali














 On Fri, Mar 27, 2015 at 5:10 PM, spameden spame...@gmail.com wrote:



 2015-03-27 13:52 GMT+03:00 Ammar Ali ammarali3...@gmail.com:

 Hello Everyone,

 When I'm sending UNICODE message through URL like:


 http://192.168.1.1:15010/cgi-bin/sendsms?username=tester2password=tester2to=9039238251text=%E0%A4%AF%E0%A4%B9%20%E0%A4%B8%E0%A4%A8%E0%A5%8D%E0%A4%A6%E0%A5%87%E0%A4%B6%20%E0%A4%B9%E0%A5%88from=454545coding=2charset=utf-8

 It has been receive correctly. But I'm using SQLBox then it has not
 been delivered properly.


 Make sure when you insert into database text source encoding is UTF-8
 and text is urlencoded. Also there was some bug with builds posted on
 kannel.org site (specifically kannel-1.5.0 dev build), so make sure
 to use latest kannel version 1.4.4 or better build from SVN (which 
 contains
 all the latest fixes and considered as stable).



 So please check my Kannel configuration and logs. Where is the exact
 problem.


 Thanks in advance.


 Thanks  Regards
 Ammar Ali





 -- Forwarded message --
 From: Ammar Ali ammarali3...@gmail.com
 Date: Fri, Mar 27, 2015 at 12:27 PM
 Subject: Unicode Message is not Delivered properly on cell phones
 To: users@kannel.org users@kannel.org
 Cc: Ammar Ali ammarali3...@gmail.com


 Hello Everyone,

 When I'm sending unicode message from my interface then it is not
 delivered properly on cell phones. Only ? got.

 I'm using sqlbox for message pushing. When I'm inserting sms into
 send_sms table then I'm also inserting the value of coding parameter (
 *coding=2*) and charset parameter (*charset=UTF-8*).


 This is my whole configuration:

 #-
 # THIS IS A CONFIGURATION FOR KANNEL
 #-
 #  Single Group CORE
 #-

 group = core
 admin-port = 15000
 admin-port-ssl=no
 admin-password = **
 status-password = **
 admin-deny-ip=*.*.*.*
 admin-allow-ip=*.*.*.*
 smsbox-interface =127.0.0.1
 smsbox-port = 15001
 #smsbox-port-ssl=no
 log-file = mykannel.log
 log-level = 0
 access-log = myaccess.access
 dlr-storage = internal
 sms-incoming-queue-limit = -1
 sms-outgoing-queue-limit = 100
 smsbox-max-pending = 100
 sms-resend-freq = 60
 sms-resend-retry = -1

 #-
 #  Single Group smsbox
 #-

 group = smsbox
 smsbox-id = smsbox
 bearerbox-host = 127.0.0.1
 bearerbox-port = 15001
 sendsms-port = 15010
 log-file = mysmsbox1.log
 log-level = 0
 access-log=smsaccess1.access
 sendsms-chars = 0123456789+ 
 #max-pending-requests = 512
 #sendsms-url=/cgi-bin/sendsms
 #global-sender = 123456
 #ms-length = 140
 #http-request-retry=5
 mo-recode='1'

 #-
 #  Multi Group SMSC
 #-

 group = smsc
 smsc = smpp
 smsc-id = smsc1
 log-file

Re: Unicode Message is not Delivered properly on cell phones

2015-03-27 Thread spameden
Try using charset=utf8 and coding=2 it should work.

No need to specify alt-charset in the kannel's configuration.

2015-03-27 17:39 GMT+03:00 Ammar Ali ammarali3...@gmail.com:

 Hello Spameden,


 This will be valid value for alt-charset in SMSC group in kannel
 configuration

 alt-charset = ASCII;windows-1252;UTF-8;ISO-8859-1;ISO-8859-7;GSM;UTF-16BE



 Thanks
 Ammar Ali



 On Fri, Mar 27, 2015 at 8:00 PM, spameden spame...@gmail.com wrote:



 2015-03-27 16:31 GMT+03:00 Ammar Ali ammarali3...@gmail.com:

 Hello Spameden,

 I have one more issue regarding smsc connection to the kannel. My smsc
 connections are going on reconnection mode again and again.


 Most likely you have either a network issue or problem with upstream
 SMSC, contact your upstream SMSC provider for details.


 This is my SMSC configuration in kannel

 group = smsc
 smsc = smpp
 smsc-id = smsc1
 log-file = mysmsc1.log
 log-level = 0
 host = ***.***.***.***
 port = 
 #receive-port=
 smsc-username = **
 smsc-password = **
 denied-smsc-id = smsc2
 allowed-smsc-id = smsc1
 preferred-smsc-id = smsc1
 source-addr-ton = 0
 source-addr-npi = 1
 dest-addr-ton = 1
 dest-addr-npi = 1
 service-type = CMT
 #validityperiod = 600
 system-type = VMA
 alt-charset=us-ascii
 #alt-addr-charset = GSM
 #address-range = ^$
 #bind-addr-ton = 0
 #bind-addr-npi = 0
 enquire-link-interval = 120
 reconnect-delay = 120
 transceiver-mode = true
 interface-version = 34
 connection-timeout = 120
 throughput = 100




 On Fri, Mar 27, 2015 at 6:59 PM, Ammar Ali ammarali3...@gmail.com
 wrote:

 I also use this urlencode function for encoding but not getting proper
 message on cell phone.

 On Fri, Mar 27, 2015 at 6:49 PM, spameden spame...@gmail.com wrote:

 msgdata needs to be urlencoded, you can use urlencode() php function
 to do this.

 2015-03-27 16:04 GMT+03:00 Ammar Ali ammarali3...@gmail.com:

 Hello Spameden,

 Yes, I'm currently use latest Kannel Version 1.4.4. I'm inserting
 this values in sqlbox_send_sms table:










 *momt=MTsender=123456receiver=9123456msgdata=unicode
 messagesmsc_id=smsc1sms_type=2coding=2dlr_mask=31alt_dcs=1*
 *charset=utf-8*
 I notice one thing, when I'm inserting unicode message into
 sqlbox_send_sms table then stored correct sms in this table. But this 
 table
 forward to kannel queue. It convert into codes, So message has not been
 received properly. Only ? sign.


 Please resolve this issue as soon as possible.

 Thanks
 Ammar Ali














 On Fri, Mar 27, 2015 at 5:10 PM, spameden spame...@gmail.com wrote:



 2015-03-27 13:52 GMT+03:00 Ammar Ali ammarali3...@gmail.com:

 Hello Everyone,

 When I'm sending UNICODE message through URL like:


 http://192.168.1.1:15010/cgi-bin/sendsms?username=tester2password=tester2to=9039238251text=%E0%A4%AF%E0%A4%B9%20%E0%A4%B8%E0%A4%A8%E0%A5%8D%E0%A4%A6%E0%A5%87%E0%A4%B6%20%E0%A4%B9%E0%A5%88from=454545coding=2charset=utf-8

 It has been receive correctly. But I'm using SQLBox then it has not
 been delivered properly.


 Make sure when you insert into database text source encoding is
 UTF-8 and text is urlencoded. Also there was some bug with builds 
 posted on
 kannel.org site (specifically kannel-1.5.0 dev build), so make sure
 to use latest kannel version 1.4.4 or better build from SVN (which 
 contains
 all the latest fixes and considered as stable).



 So please check my Kannel configuration and logs. Where is the
 exact problem.


 Thanks in advance.


 Thanks  Regards
 Ammar Ali





 -- Forwarded message --
 From: Ammar Ali ammarali3...@gmail.com
 Date: Fri, Mar 27, 2015 at 12:27 PM
 Subject: Unicode Message is not Delivered properly on cell phones
 To: users@kannel.org users@kannel.org
 Cc: Ammar Ali ammarali3...@gmail.com


 Hello Everyone,

 When I'm sending unicode message from my interface then it is not
 delivered properly on cell phones. Only ? got.

 I'm using sqlbox for message pushing. When I'm inserting sms into
 send_sms table then I'm also inserting the value of coding parameter (
 *coding=2*) and charset parameter (*charset=UTF-8*).


 This is my whole configuration:

 #-
 # THIS IS A CONFIGURATION FOR KANNEL
 #-
 #  Single Group CORE
 #-

 group = core
 admin-port = 15000
 admin-port-ssl=no
 admin-password = **
 status-password = **
 admin-deny-ip=*.*.*.*
 admin-allow-ip=*.*.*.*
 smsbox-interface =127.0.0.1
 smsbox-port = 15001
 #smsbox-port-ssl=no
 log-file = mykannel.log
 log-level = 0
 access-log = myaccess.access
 dlr-storage = internal
 sms-incoming-queue-limit = -1
 sms-outgoing-queue-limit = 100
 smsbox-max-pending = 100
 sms-resend-freq = 60
 sms-resend-retry = -1

 #-
 #  Single Group smsbox
 #-

 group = smsbox
 smsbox-id = smsbox
 bearerbox-host = 127.0.0.1

Re: Is 1.4.4 stable?

2015-01-24 Thread spameden
1.4.4 is quite stable for us, been using it for a while, so most likely
there is either bad connection between you  smsc upstream (check mtu /
packet drop) or there is some issue with smsc.

most likely your smsc forces you to use only 1 connection and for some
reason your current connection stales that's why new connection isn't
happening.

2015-01-24 18:52 GMT+03:00 Eric Magutu emag...@gmail.com:

 Hi,
 I have been having issues with 1.4.4 connecting to a SMSC, the bind is
 being dropped due to missed enquiry links. The behaviour is very sporadic
 behaves for a few days then all of a sudden bind breaks, Kannel rebinds
 after receiving an unbind but doesn't send any more messages and keeps
 unbinding and binding again on receiving an unbind from the SMSC. This
 continues until I do a restart. We switched from a transceiver to TX/RX
 model but it only improved the situation slightly. I have other connections
 that are functioning without any issues.
 Problem is similar to what was posted below

 https://www.mail-archive.com/devel@kannel.org/msg03423.html


 They are using Redknee for the SMSC

 It appears from the tcpdumps that they are attempting to communicate
 across a connection that is no longer active, but this doesn't make sense
 to me as kannel responds to the unbind messages.

 They have requested us to send an unbind request to gracefully shut down
 the connection and avoid confusion with the SMSC as to what connection is
 active. Anyone know how this can be accomplished ?

 Before I attempt to downgrade I wanted to find out if anyone has any ideas
 on how I should tackle this problem.

 --
 Regards,
 Eric Magutu



Re: Minimum Requirement for getting 1000 message per second

2015-01-18 Thread spameden
-insert-table = send_sms
 log-file = sqlbox.log
 log-level = 0

 # Example MYSQL Connection

 group = mysql-connection
 id = sqlbox-db
 host=127.0.0.1
 port = 3306
 username = root
 password = **
 database = my_sms
 max-connections = 10
 ---

 And I'm using batch insertion in my application.

 Please check my whole configuration and let me know what is the actual
 issue. One more thing the speed of message sending is very fluctuate.

 Sometime its reached to 800 messages/sec and sometimes very low at
 200-300 messages/sec with same configurations.
 Is there any issue when mysql data grows.


 Thanks
 Ammar Ali
 Framp Technologies
 Pune (Maharashtra)



 On Sat, Jan 17, 2015 at 12:02 PM, spameden spame...@gmail.com wrote:



 2015-01-17 8:49 GMT+03:00 Ammar Ali ammarali3...@gmail.com:

 Hey,

 If mysql grows then it will be impact on mysql performance?

 Because When I'm deleting all records in mysql then the TPS increased
 and reached at 500-600 messages/second.


 If you need accurate benchmark results.

 1) Test kannel without any DLR reports activated, store spool in the
 memory (e.g. tmpfs), use internal storage for DLR.
 2) Slowly increase factors (e.g. add DLR reports in internal storage,
 measure.. add MySQL storage .. measure).
 3) In the end you'll get what's slowing down kannel.

 In my own experience the most slowing factor is either MySQL or sqlbox
 itself (if it's outdated it gets 1 message per query instead of the batch
 method where it gets multiple records at once).







 Ammar Ali
 Framp Technologies
 Pune (Maharashtra)

 On Sat, Jan 17, 2015 at 10:51 AM, RK Krishnas r...@krishnasoft.in
 wrote:

 Hi,
 use dlr-storage as mysql db.


 On 1/17/15, Ammar Ali ammarali3...@gmail.com wrote:
  Hey,
 
  I have one more serious issue. Kannel Bearerbox consumes 28% of My
 total
  RAM.
 
  So Can you suggest me where is actual issue in my whole setup?
 
 
 
 
 
  *Ammar Ali*
 
  *Framp Technologies*
  *Pune (Maharashtra)*
 
 
  On Fri, Jan 16, 2015 at 11:20 PM, RK Krishnas r...@krishnasoft.in
 wrote:
 
  Hi Everyone,
 
  with 2 cores , 2 GB Ram  20 GB H.D.D. In a virtual Machine with
 512 Kbps
  ILL.
  I am getting 550 TPS with my Live (Mobile) Operator. 2 Sessions
 with 250+
  tps each
 
  My Settings:
 
 
 1. SMS APP  SQLBOX  Bearerbox
 2. Kannel  sql box log level =3
 3.  log file is placed in a partition with ext2
 4. Dlr are placed in mysql table.
 5. Spool folder is placed in ext2
 6. Mysql 5.5
 7. Centos 6.6
 8. 1 Sqlbox
 9. 2 mysql connections in kannel  sqlbox
 
 
  With the above I am getting 550+ TPS.
 
 
  I want to try with 4 cores, 2+ Sqlboxes.
 
  Sqlbox performance  Smsboxes  as smsboxes have to hit a webpage,
 open
  mysql ,run query  close connection.
 
 
 
  *Rajeev Krishna*
 
  Operations Manager
  Krishnas Software Technologies
  www.krishnasoft.in
  mobile   :+91 888 5815 888
  Sales :+91 888 5813 888
  Support :+91 888 5817 888
 
  On Fri, Jan 16, 2015 at 7:14 PM, Ammar Ali 
 ammarali3...@gmail.com
  wrote:
 
  Hi David Szanto,
 
  I'm also testing with multiple SQLBoxes.
 
  This is the my configuration:
 
  *Application---BBox---Multiple SQLBoxes---SMSBoxMultiple SMSC
  (Fake)*
 
 
  But I'm not getting better performance. Thanks in advance.
 
 
  *Ammar Ali*
  *Framp Technology*
  *Pune (Maharashtra)*
 
 
 
  On Fri, Jan 16, 2015 at 7:05 PM, David Szanto 
 dsza...@genasys.com
  wrote:
 
   Hi Ammar!
  I suggest you check the load in the SQLBox, BearerBox, MySQL and
  SMSBox.
  Our experience is that Mysql tends to slow things down a lot.
  Another enhancement we've had success with has been having 3-6
 SMSBox
  instances running and connected to the bearerbox, and HAProxy
 on top
  distributing messages among them.  SMSBoxes are very scalable,
 and can
  even
  be set on separate machines.
 
  Ideally, something like:
 
  Application+SMSBOX   Bearerbox+Backends(ex:Mysql) 
 SMSC
 
 
  Yet, you must check where is the actual bottleneck.  On our
 experience
  it was MySQL.
 
  Finally, and again on our experience, Bearerbox will load CPU
 as it
  gets
  overworked, but RAM will be consumed only as long as messages
 are in
  queue
  (in RAM), Ex: pending DLR without DDBB backend (managed in
 memory)
 
  Hope this helps
 
  Cheers,
  David Szanto
 
  El 16/01/15 a las 13:24, Ammar Ali escribió:
 
  Hello Everyone,
 
   I had started kannel sms gateway before past 2 days. When I was
  started kannel then tested my application, it shows me
  500-800 messages second speed but now I'm getting 200-300 Max
  messages/second. And the main problem is that it is not
 increased above
  300.
 
   Can you suggest me that what is the main bottleneck in whole
 system
  setup. Because currently I'm connecting Fake SMSC connections.
 
 
   Thanks in advance
 
 
   *Ammar Ali*
  *Framp Technology*
  *Pune (Maharashtra)*
 
 
 
 
  On Fri, Jan 16, 2015 at 5:29 PM, Christopher Burke

Re: Minimum Requirement for getting 1000 message per second

2015-01-16 Thread spameden
Look into

2015-01-17 8:10 GMT+03:00 Ammar Ali ammarali3...@gmail.com:

 Hey,

 I have one more serious issue. Kannel Bearerbox consumes 28% of My total
 RAM.

 So Can you suggest me where is actual issue in my whole setup?


Look into smsbox-max-pending variable.

It's used in case you have temporary problems with smsbox connectivity to
keep pending queue of MT/MO messages in the memory for each smsbox instance.

So memory usage of bearerbox would depend on this variable pretty much * on
the number of connected smsbox/sqlbox instances.

If you want to learn more about it read user guide.







 *Ammar Ali*

 *Framp Technologies*
 *Pune (Maharashtra)*


 On Fri, Jan 16, 2015 at 11:20 PM, RK Krishnas r...@krishnasoft.in wrote:

 Hi Everyone,

 with 2 cores , 2 GB Ram  20 GB H.D.D. In a virtual Machine with 512 Kbps
 ILL.
 I am getting 550 TPS with my Live (Mobile) Operator. 2 Sessions with 250+
 tps each

 My Settings:


1. SMS APP  SQLBOX  Bearerbox
2. Kannel  sql box log level =3
3.  log file is placed in a partition with ext2
4. Dlr are placed in mysql table.
5. Spool folder is placed in ext2
6. Mysql 5.5
7. Centos 6.6
8. 1 Sqlbox
9. 2 mysql connections in kannel  sqlbox


 With the above I am getting 550+ TPS.


 I want to try with 4 cores, 2+ Sqlboxes.

 Sqlbox performance  Smsboxes  as smsboxes have to hit a webpage, open
 mysql ,run query  close connection.



 *Rajeev Krishna*

 Operations Manager
 Krishnas Software Technologies
 www.krishnasoft.in
 mobile   :+91 888 5815 888
 Sales :+91 888 5813 888
 Support :+91 888 5817 888

 On Fri, Jan 16, 2015 at 7:14 PM, Ammar Ali ammarali3...@gmail.com
 wrote:

 Hi David Szanto,

 I'm also testing with multiple SQLBoxes.

 This is the my configuration:

 *Application---BBox---Multiple SQLBoxes---SMSBoxMultiple SMSC (Fake)*


 But I'm not getting better performance. Thanks in advance.


 *Ammar Ali*
 *Framp Technology*
 *Pune (Maharashtra)*



 On Fri, Jan 16, 2015 at 7:05 PM, David Szanto dsza...@genasys.com
 wrote:

  Hi Ammar!
 I suggest you check the load in the SQLBox, BearerBox, MySQL and
 SMSBox. Our experience is that Mysql tends to slow things down a lot.
 Another enhancement we've had success with has been having 3-6 SMSBox
 instances running and connected to the bearerbox, and HAProxy on top
 distributing messages among them.  SMSBoxes are very scalable, and can even
 be set on separate machines.

 Ideally, something like:

 Application+SMSBOX   Bearerbox+Backends(ex:Mysql)  SMSC


 Yet, you must check where is the actual bottleneck.  On our experience
 it was MySQL.

 Finally, and again on our experience, Bearerbox will load CPU as it
 gets overworked, but RAM will be consumed only as long as messages are in
 queue (in RAM), Ex: pending DLR without DDBB backend (managed in memory)

 Hope this helps

 Cheers,
 David Szanto

 El 16/01/15 a las 13:24, Ammar Ali escribió:

 Hello Everyone,

  I had started kannel sms gateway before past 2 days. When I was
 started kannel then tested my application, it shows me
 500-800 messages second speed but now I'm getting 200-300 Max
 messages/second. And the main problem is that it is not increased above 
 300.

  Can you suggest me that what is the main bottleneck in whole system
 setup. Because currently I'm connecting Fake SMSC connections.


  Thanks in advance


  *Ammar Ali*
 *Framp Technology*
 *Pune (Maharashtra)*




 On Fri, Jan 16, 2015 at 5:29 PM, Christopher Burke 
 christopher.bu...@simulity.com wrote:

  Hey,

  If you’re attempting to optimise the solution, you’ll probably want
 to look at a testbed. Check out
 https://github.com/twitter/cloudhopper-smpp which is a Java SMPP
 implementation. I use this and on my 2012 Macbook Pro (2.6ghz i7/8GB
 RAM/512GB SSD) I get 4.8k submit/sec over 10 sessons when I use Netty 6.
 Perhaps you can setup another box using the ch-smpp impl for listening
 (they’ve got performance code/configuration examples in the test/../demo
 dirs, and have your Kannel submit to it.

  On the configuration you currently have, you should expect 200-300
 msg/sec using Kannel, I’ve never seen it submit much faster than that but
 admittedly I find understanding Java code a bit easier so I work with
 ch-smpp more now.

  Cheers,


 *Christopher Burke *http://simulity.com
 Office: +44 (0) 1248 679 281
 Fax: +44 (0) 1248 660 323
 Skype:krslynx



 *UK *Unit 8, Ash Court,
 Parc Menai, Bangor,
 Gwynedd, LL57 4DF,
 Wales, UK


 *Malaysia *Level 30,
 The Gardens North Tower,
 Mid Valley City,
 Lingkaran Syed Putra,
 59200, Kuala Lumpur,
 Malaysia

 NOTICE: This message contains privileged  confidential information
 intended only for the use of the addressee named above. If you are not the
 intended recipient of this message, you are hereby notified that you must
 not disseminate, copy or take any action in reliance on it. If you have
 received this message in error, please notify Simulity Labs immediately.
 Any views expressed in this 

Re: Minimum Requirement for getting 1000 message per second

2015-01-16 Thread spameden
2015-01-17 8:49 GMT+03:00 Ammar Ali ammarali3...@gmail.com:

 Hey,

 If mysql grows then it will be impact on mysql performance?

 Because When I'm deleting all records in mysql then the TPS increased and
 reached at 500-600 messages/second.


If you need accurate benchmark results.

1) Test kannel without any DLR reports activated, store spool in the memory
(e.g. tmpfs), use internal storage for DLR.
2) Slowly increase factors (e.g. add DLR reports in internal storage,
measure.. add MySQL storage .. measure).
3) In the end you'll get what's slowing down kannel.

In my own experience the most slowing factor is either MySQL or sqlbox
itself (if it's outdated it gets 1 message per query instead of the batch
method where it gets multiple records at once).







 Ammar Ali
 Framp Technologies
 Pune (Maharashtra)

 On Sat, Jan 17, 2015 at 10:51 AM, RK Krishnas r...@krishnasoft.in wrote:

 Hi,
 use dlr-storage as mysql db.


 On 1/17/15, Ammar Ali ammarali3...@gmail.com wrote:
  Hey,
 
  I have one more serious issue. Kannel Bearerbox consumes 28% of My total
  RAM.
 
  So Can you suggest me where is actual issue in my whole setup?
 
 
 
 
 
  *Ammar Ali*
 
  *Framp Technologies*
  *Pune (Maharashtra)*
 
 
  On Fri, Jan 16, 2015 at 11:20 PM, RK Krishnas r...@krishnasoft.in
 wrote:
 
  Hi Everyone,
 
  with 2 cores , 2 GB Ram  20 GB H.D.D. In a virtual Machine with 512
 Kbps
  ILL.
  I am getting 550 TPS with my Live (Mobile) Operator. 2 Sessions with
 250+
  tps each
 
  My Settings:
 
 
 1. SMS APP  SQLBOX  Bearerbox
 2. Kannel  sql box log level =3
 3.  log file is placed in a partition with ext2
 4. Dlr are placed in mysql table.
 5. Spool folder is placed in ext2
 6. Mysql 5.5
 7. Centos 6.6
 8. 1 Sqlbox
 9. 2 mysql connections in kannel  sqlbox
 
 
  With the above I am getting 550+ TPS.
 
 
  I want to try with 4 cores, 2+ Sqlboxes.
 
  Sqlbox performance  Smsboxes  as smsboxes have to hit a webpage, open
  mysql ,run query  close connection.
 
 
 
  *Rajeev Krishna*
 
  Operations Manager
  Krishnas Software Technologies
  www.krishnasoft.in
  mobile   :+91 888 5815 888
  Sales :+91 888 5813 888
  Support :+91 888 5817 888
 
  On Fri, Jan 16, 2015 at 7:14 PM, Ammar Ali ammarali3...@gmail.com
  wrote:
 
  Hi David Szanto,
 
  I'm also testing with multiple SQLBoxes.
 
  This is the my configuration:
 
  *Application---BBox---Multiple SQLBoxes---SMSBoxMultiple SMSC
  (Fake)*
 
 
  But I'm not getting better performance. Thanks in advance.
 
 
  *Ammar Ali*
  *Framp Technology*
  *Pune (Maharashtra)*
 
 
 
  On Fri, Jan 16, 2015 at 7:05 PM, David Szanto dsza...@genasys.com
  wrote:
 
   Hi Ammar!
  I suggest you check the load in the SQLBox, BearerBox, MySQL and
  SMSBox.
  Our experience is that Mysql tends to slow things down a lot.
  Another enhancement we've had success with has been having 3-6 SMSBox
  instances running and connected to the bearerbox, and HAProxy on top
  distributing messages among them.  SMSBoxes are very scalable, and
 can
  even
  be set on separate machines.
 
  Ideally, something like:
 
  Application+SMSBOX   Bearerbox+Backends(ex:Mysql)  SMSC
 
 
  Yet, you must check where is the actual bottleneck.  On our
 experience
  it was MySQL.
 
  Finally, and again on our experience, Bearerbox will load CPU as it
  gets
  overworked, but RAM will be consumed only as long as messages are in
  queue
  (in RAM), Ex: pending DLR without DDBB backend (managed in memory)
 
  Hope this helps
 
  Cheers,
  David Szanto
 
  El 16/01/15 a las 13:24, Ammar Ali escribió:
 
  Hello Everyone,
 
   I had started kannel sms gateway before past 2 days. When I was
  started kannel then tested my application, it shows me
  500-800 messages second speed but now I'm getting 200-300 Max
  messages/second. And the main problem is that it is not increased
 above
  300.
 
   Can you suggest me that what is the main bottleneck in whole system
  setup. Because currently I'm connecting Fake SMSC connections.
 
 
   Thanks in advance
 
 
   *Ammar Ali*
  *Framp Technology*
  *Pune (Maharashtra)*
 
 
 
 
  On Fri, Jan 16, 2015 at 5:29 PM, Christopher Burke 
  christopher.bu...@simulity.com wrote:
 
   Hey,
 
   If you’re attempting to optimise the solution, you’ll probably want
  to look at a testbed. Check out
  https://github.com/twitter/cloudhopper-smpp which is a Java SMPP
  implementation. I use this and on my 2012 Macbook Pro (2.6ghz i7/8GB
  RAM/512GB SSD) I get 4.8k submit/sec over 10 sessons when I use
 Netty
  6.
  Perhaps you can setup another box using the ch-smpp impl for
 listening
  (they’ve got performance code/configuration examples in the
  test/../demo
  dirs, and have your Kannel submit to it.
 
   On the configuration you currently have, you should expect 200-300
  msg/sec using Kannel, I’ve never seen it submit much faster than
 that
  but
  admittedly I find understanding Java code a bit easier so I work
 with
  ch-smpp more now.
 
   

Re: How To Route SMPP Port According To Free Status

2014-12-03 Thread spameden
2014-12-03 12:57 GMT+03:00 Aditya Khanna aditya.khanna111...@gmail.com:

 Hello Everyone,

 I'm successfully configured Kannel with Bearerbox, SMSBox, SQLBox and some
 SMPP Ports (Using Fake SMSC's).


 Now the problem is that When I'm sending 5000 messages through HTTP then
 it is show in queue of SMSC.
 I'm generating one more request of single message through HTTP.


Try using sqlbox instead with priority field (alter sqlbox source to
include ORDER by priority field) and INSERT messages with higher priority
(e.g. = 0)

Example:
http://stackoverflow.com/questions/8458566/implementing-priority-queue-in-kannel



 Now the problem is that this single message is also in proceeding queue.

 So, how to manage this type of issue with Kannel. How to send this message
 to a free SMSC port.


You can always specify free SMSC uplink with: smsc_id= via HTTP call
or  use smsc_id in sqlbox send_sms table.

For higher throughput read about max-pending-submits as well as consult
your upstream SMSC operator.


 Please share your valuable suggestions.


 Thanks,
 Aditya Khanna






Re: Delivery DLRs not appearing in logs

2014-12-01 Thread spameden
with DLR mask 63

did you mean 31 ?

2014-12-01 23:34 GMT+03:00 ha...@aeon.pk ha...@aeon.pk:

 Resolved.

 In connection 'group = smsc', add line 'msg-id-type = 0x01' to fix the
 issue.

 On Tue, Dec 2, 2014 at 12:04 AM, ha...@aeon.pk ha...@aeon.pk wrote:

 Hi,

 I have 2 SMSC connections. I am sending the same message with DLR mask 63
 (to get all possible delivery states). One SMSC connection is giving me
 submission-to-SMSC DLR and then DELIVERED DLR, both appearing in kannel
 traffic logs. The other connection is only giving me submission-to-SMSC
 DLR, and not the DELIVERED DLR in traffic logs. I took tcpdump trace to
 discover that the DELIVERED DLR is infact coming to kannel but for some
 reason, kannel is not showing it in the traffic log.

 Any idea which parameter to change for this DLR to appear in the logs?

 Regards,
 Hamza





Re: Configure --with-ssl

2014-11-10 Thread spameden
You need to install libssl-dev on Ubuntu.

And depends on the Ubuntu version OpenSSL will be 0.9.8 or 1.0.0 line.

Kannel compiles fine with both 0.9.8 and 1.0.0+.

2014-11-10 12:43 GMT+03:00 Milan P. Stanic m...@arvanta.net:

 On Mon, 2014-11-10 at 16:24, Willy Mularto wrote:
  I have checked *ssl* package that’s already installed in my Ubuntu, and
 found libssl, libssl-dev, libssl0.9.8, libssl08-dev, libssl09-dev,
 libssl095a-dev, libssl096-dev, openssl,  and still got this error
 “Configuring OpenSSL support ...
  configure: error: Unable to find OpenSSL libs and/or directories at yes”
 is there anything else we need here? Thanks.

 Do you have '--with-ssl=yes' parameter in the configure command line, by
 chance?

 If answer is yes replace it with --enable-ssl and try again.

 If answer is no then post your complete 'configure' command line here
 (to list).

   On Nov 10, 2014, at 4:00 PM, Milan P. Stanic m...@arvanta.net wrote:
  
   On Mon, 2014-11-10 at 08:09, Willy Mularto wrote:
   I don't think the package is exist in Ubuntu. All I found is openssl,
   libnssl-dev, is there any other?
  
   On Debian derived distribution (Ubuntu, ...) there is no openssl-devel
   package.
  
   On Mon, 10 Nov 2014 15:03 Tapan Kumar Thapa 
 tapan.thapa2...@gmail.com
   wrote:
   Have you also installed openssl-devel package?
   On Mon, Nov 10, 2014 at 1:27 PM, Willy Mularto sangpr...@gmail.com
   wrote:
   Just tried to install Kannel with SSL enabled on Ubuntu, already
   installed openssl and libssl-dev, the configure returns error
 “Unable to
   find OpenSSL libs and/or directories at yes”
   Is there any dependency I forget to install? Thanks

 --
 Kind regards,  Milan
 --
 Arvanta,http://www.arvanta.net
 Please do not send me e-mail containing HTML code or documents in
 proprietary format (word, excel, pps and so on)




Re: auto set coding for various charset in message

2014-11-10 Thread spameden
You need to do this on your application level or you can modify kannel's
source code to get this ability.

2014-11-10 18:28 GMT+03:00 Mi Ke mi...@null.net:

 Dear All,

 I'm using kannel smsbox and http requests for message sending. When coding
 is set to 2 and charset to UTF-8 I have all latin-based messages always
 treated as Unicode which waste half of it's 160 characters length. My
 question is: is there an elegant/easy way to save capacity for messages
 without Unicode chars and set coding to 1 automatically for them or I
 should detect charset myself and then set coding=2 if message contains
 Unicode chars?

 I'll be greatly appreciated for your help.

 Thanks  regards
 Mike




Re: Kannel 1.5 on a 64-bit OS

2014-11-10 Thread spameden
2014-11-10 21:30 GMT+03:00 Lamasuta Franck f.lamas...@cobratelematics.com:

  Hi all,



 We are running Kannel 1.5 on a server with RHEL4 (32 bits) and we are
 using the SMPP, CIMD2 and HTTP interfaces.

 We would like to upgrade the server to RHEL 6.4 (64 bits).

 Is Kannel fully compatible with a 64-bit OS?


It's working completely fine on 64bit environment, however it might consume
more memory because of 64bit pointers and memory allocation. Kannel's
memory consuming depends mostly on number of smsbox'es connected to
bearerbox * smsbox-max-pending parameter.

So if you want to lower amount of memory used by bearerbox
tweak smsbox-max-pending parameter.




 Regards,

 Franck



Re: How to Improve Performance of SQLBox

2014-11-05 Thread spameden
Can you please stop SPAMMING kannel lists?

Really annoying to get 100500 questions on the same issue from you all time.

You could read a bit of mailing lists, this question has been covered many
times already and there were many suggestions why you might be having low
performance.

2014-11-05 10:05 GMT+03:00 Aditya Khanna aditya.khanna111...@gmail.com:


 *Hello Everyone,*
 I'm new with Kannel SMS Gateway. I have configured Kannel as my
 requirements.

 This is my Gateway Architecture:

 *HTTP Application  BBox**  SQLBox**  SMSBox** 
 SMSCs*

 *  Mobile*
 Now, the problem is that When I'm observing send_sms table that are
 created by SQLBox then It sends 10 msgs/sec to particular connected SMSBox.

 So please suggest me that how to improve this speed in SQLBox.




 *Thanks,*

 *Aditya Khanna*



Re: How to Improve Performance of SQLBox

2014-11-05 Thread spameden
It's not the first time I see this message from Aditya.

If you google a bit you'll understand what I mean.

Don't get me wrong I just don't like people who can't put a bit effort into
problem solving and want complete final solution from others.

If you really want to solve this way -- rent a kannel specialist and pay
him money for his work (hourly-based).

2014-11-05 15:01 GMT+03:00 Willy Mularto sangpr...@gmail.com:

 Is that really 100500 questions? LOL. Maybe he needs your guidance mate.
 On 5 Nov 2014 18:16, spameden spame...@gmail.com wrote:

 Can you please stop SPAMMING kannel lists?

 Really annoying to get 100500 questions on the same issue from you all
 time.

 You could read a bit of mailing lists, this question has been covered
 many times already and there were many suggestions why you might be having
 low performance.

 2014-11-05 10:05 GMT+03:00 Aditya Khanna aditya.khanna111...@gmail.com:


 *Hello Everyone,*
 I'm new with Kannel SMS Gateway. I have configured Kannel as my
 requirements.

 This is my Gateway Architecture:

 *HTTP Application  BBox**  SQLBox**  SMSBox** 
 SMSCs*

 *  Mobile*
 Now, the problem is that When I'm observing send_sms table that are
 created by SQLBox then It sends 10 msgs/sec to particular connected SMSBox.

 So please suggest me that how to improve this speed in SQLBox.




 *Thanks,*

 *Aditya Khanna*





Re: How to Improve Performance of SQLBox

2014-11-05 Thread spameden
quick googling (only took me 30 seconds):

http://www.kannel.org/pipermail/users/2010-January/009745.html
http://www.kannel.org/pipermail/users/2013-June/019873.html
http://www.kannel.org/pipermail/users/2008-March/004260.html
http://www.kannel.org/pipermail/users/2007-February/001541.html
http://www.kannel.org/pipermail/users/2014-June/021242.html

etc...

in short:

1) test with fakesmsc where no SMPP remote binds involved with memory
storage and measure throughput with sqlbox or smsbox.
2) add DLR handling
3) add MySQL DLR handling and see how it goes
4) if you need additional hit-url add it and measure again
5) check mysql slow-log as well as mysql queries/sec variable via
mysqladmin pr, add needed index for dlr table (discussed many times for
quick ts,smsc_id matching)
6) check your connection with remote binds via tcpdump/ettercap/wireshark
if you're losing any packets or there are many re-transmissions going on
7) connect your remote binds and test again

as said 1000 x times kannel is usually NOT a problem, most problems
involved either with incorrect setup of middle software or your remote SMSC
upstream.

2014-11-06 8:05 GMT+03:00 RK Krishnas r...@krishnasoft.in:

 Dear Team,

 Please Suggest the best way or guide us for the proper approach.
 I saw 25 Answers saying Search in mailing List, Search In google.
 But I spent 2 weeks for the same  no result at all.
 Many told to tweak sqlbox  mysql. No one gave the solution.
 I personally mailed 5 members who said that they solved the issue. They
 never posted back the settings nor the steps.


 Problem:
 SQLBOX==BEARERBOX==SMSC==MOBILE.

 Here each session is getting an average of 10 tps only.  Even the ack 
 dlr are queued up in store.


 Please provide us the solution  i promise that I will reply to all users
 who keep asking the questions for tps  sqlbox.


 *Rajeev Krishna*

 Operations Manager
 Krishnas Software Technologies
 www.krishnasoft.in
 mobile   :+91 888 5815 888
 Sales :+91 888 5813 888
 Support :+91 888 5817 888

 On Wed, Nov 5, 2014 at 5:41 PM, Willy Mularto sangpr...@gmail.com wrote:

 Just joke mate, I agree with you. Saw many same posts from Aditya.
 On 5 Nov 2014 19:08, spameden spame...@gmail.com wrote:

 It's not the first time I see this message from Aditya.

 If you google a bit you'll understand what I mean.

 Don't get me wrong I just don't like people who can't put a bit effort
 into problem solving and want complete final solution from others.

 If you really want to solve this way -- rent a kannel specialist and pay
 him money for his work (hourly-based).

 2014-11-05 15:01 GMT+03:00 Willy Mularto sangpr...@gmail.com:

 Is that really 100500 questions? LOL. Maybe he needs your guidance
 mate.
 On 5 Nov 2014 18:16, spameden spame...@gmail.com wrote:

 Can you please stop SPAMMING kannel lists?

 Really annoying to get 100500 questions on the same issue from you all
 time.

 You could read a bit of mailing lists, this question has been covered
 many times already and there were many suggestions why you might be having
 low performance.

 2014-11-05 10:05 GMT+03:00 Aditya Khanna 
 aditya.khanna111...@gmail.com:


 *Hello Everyone,*
 I'm new with Kannel SMS Gateway. I have configured Kannel as my
 requirements.

 This is my Gateway Architecture:

 *HTTP Application  BBox**  SQLBox**  SMSBox**
  SMSCs*

 *  Mobile*
 Now, the problem is that When I'm observing send_sms table that are
 created by SQLBox then It sends 10 msgs/sec to particular connected 
 SMSBox.

 So please suggest me that how to improve this speed in SQLBox.




 *Thanks,*

 *Aditya Khanna*







Re: you must have the libxml2 (aka gnome-xml) library installed

2014-08-25 Thread spameden
install libxml2-devel via yum.


2014-08-25 11:12 GMT+04:00 Milan P. Stanic m...@arvanta.net:

 On Mon, 2014-08-25 at 08:05, Willy Mularto wrote:
  install it using rpm ;)

 Looks like he needs to install libxml2-dev package (and probably rest of
 development packages for Kannel building).

 So, your advice is quite appropriate but with small addition:
 Install Kannel using rpm

 And this (reworded with 'your distribution package manager' instead of
 'rpm') should be written on the Kannel web site with big font in red
 color.

 
 
  Willy Mularto
  SMS Gateway, Content Provider, Mobile Solution Specialist
  M: +62811923464, +62818923464
  PIN BBM: 74924429
 
 
 
  On Aug 23, 2014, at 11:31 PM, Sandesh Pradhan merosand...@gmail.com
 wrote:
 
   Dear Kannel user community,
  
   I am a new bie and trying to install kannel(1.4.3) in RedHat 6.5.
   After i untar the source file and go to the source folder,when i type
 ./configure I get
   you must have the libxml2 (aka gnome-xml) library installed
  
   I already have libxml2 package installed verified by rpm -q libxml2,
  
   what am i missing here ?
  
   Any help would be appreciated.
  
   --
   Sandesh Pradhan
   Nepal
 
 

 --
 Kind regards,  Milan
 --
 Arvanta,http://www.arvanta.net
 Please do not send me e-mail containing HTML code or documents in
 proprietary format (word, excel, pps and so on)




Re: you must have the libxml2 (aka gnome-xml) library installed

2014-08-25 Thread spameden
There is a new version of kannel: http://kannel.org/news.shtml#1.4.4

so your instruction is not really up-to-date :)


2014-08-25 15:51 GMT+04:00 Vinayak vinayak...@artzsource.in:

 Hi,
 I have created a simple installation guide, may be this installation guide
 is useful for newbies
 PFA



 On Sat, Aug 23, 2014 at 10:01 PM, Sandesh Pradhan merosand...@gmail.com
 wrote:

 Dear Kannel user community,

 I am a new bie and trying to install kannel(1.4.3) in RedHat 6.5.
 After i untar the source file and go to the source folder,when i type
 ./configure I get
 you must have the libxml2 (aka gnome-xml) library installed

 I already have libxml2 package installed verified by rpm -q libxml2,

 what am i missing here ?

 Any help would be appreciated.

 --
 Sandesh Pradhan
 Nepal




 --

 Regards,

 Vinayak


 Artzsource : www.artzsource.com | Enterprise Mobility Solutions |
 Android, I - Phone  Blackberry Apps | M-Commerce

 [image: http://artzsource.com/images/logo.png]
 http://artzsource.com/index.php
 --



 *HQ : Artzsource Technology Services Pvt. Ltd.* 2nd Floor DS  Sons
 Complex, Tripunithura Road, Vytilla, Kochi - 682 019, Kerala, India.
 *Tel:* +91 484 4066675 *Fax:* +91 484 4066674


 --


 This email, and any attachments, may be confidential and also privileged.
 If you are not the intended recipient, please notify the sender and delete
 all copies of this transmission along with any attachments immediately. You
 should not copy or use it for any purpose, nor disclose its contents to any
 other person.All rights reserved. Artzsource Technology Services Pvt Ltd
 2009

 *Please* *Save a tree...please don't print this e-mail unless you really
 need to*



Re: dlr-url routing failure

2014-08-21 Thread spameden
2014-08-21 23:03 GMT+04:00 Alejandro Mussi alemu...@gmail.com:

 Hi Alvaro,

 If i replace, it does not send dlr at all. According to the manual the
 dlr-mask is not an param in the dlr-url.

 Best


You're correct.

Problem is with your SMSC provider. As long as you see only 8 and 16, first
status means ACK and sent by kannel itself, 16 means sms was forbidden by
your SMSC provider, so contact them and resolve with them.






 On Thu, Aug 21, 2014 at 1:37 PM, Alvaro Cornejo cornejo.alv...@gmail.com
 wrote:

 Hi Alejandro

 Change %26type%3D%25ddlr-mask=31 with %26type%3D25%26dlr-mask%3D31

 Note that what you request as dlr is not necessarily what you will
 receive. Carriers define which dlr status will they forward. Some disable
 intermediate status, some allow all of them.

 Regards

 Alvaro




 |-|
 Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier
 celular y Nextel
 en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via
 SMS y GPRS online
   Visitenos en www.perusms.com


 On Thu, Aug 21, 2014 at 11:22 AM, Alejandro Mussi alemu...@gmail.com
 wrote:

 Hi guys,

 My kannel is not sending my dlr-url when type=1. I get it when type=16
 and type=8.

 Here is what log saids:

 2014-08-21 12:33:22 [2202] [7] DEBUG: DLR[internal]: Looking for DLR
 smsc=tigo, ts=11e22675ee6, dst=595981414913, type=1

 2014-08-21 12:33:22 [2202] [7] WARNING: DLR[internal]: DLR from
 SMSCtigo for DST595981414913 not found.

 2014-08-21 12:33:22 [2202] [7] ERROR: SMPP[tigo]: got DLR but could not
 find message or was not interested in it id11e22675ee6 dst595981414913,
 type1


 Here is my config files


 # SMS USER GROUP


 group = sendsms-user

 username = xxx

 password = yyy

 concatenation = true

 max-messages = 3

 max-messages = 10


 Here is the call to kannel


 http://localhost:13013/cgi-bin/sendsms?username=xxxpassword=yyyto=+595981414913from=1244binfo=CCHURtext=Prueba+de+envio+sms+2smsc=tigodlr-url=http%3A%2F%2Flocalhost%2Fsms%2Fapi%2Fdlr.php%3FmyId%3D1212%26type%3D%25ddlr-mask=31
 Thanks for the help

 Alejandro
 --
 -
 Alejandro Mussi Campos Cervera





 --
 -
 Alejandro Mussi Campos Cervera



Re: users Digest, Vol 95, Issue 31

2014-07-24 Thread spameden
Hi.

This list is only intented to support kannel's opensource solution.

It seems to me you're using _probably_ Stipe's modification.

Please contact him directly on dealing with these issues.


2014-07-24 16:36 GMT+04:00 Himanshu Matta himan...@hostnsoft.com:

 I am using this- *Kannel smppbox/1.8.140-meta-r3321 version
 `1.8.140-meta-r3321'*


 On Thu, Jul 24, 2014 at 6:00 PM, Ramesh G. Helaiya ram...@routesms.in
 wrote:


 Hi,

 I have used the same setting in smppbox.conf and its working.
 What smppbox u r using. Its open source?

 Regards,
 Ramesh Helaiya


 On Thursday 24 July 2014 03:51 PM, Himanshu Matta wrote:

  Hi Ramesh,

  Thanks for replying.
 When I set this directive then I am not able to start smppbox. Below is
 the errorr-

  */opt/kannel/sbin/smppbox -v 0 /FirstKannel/opt/kannel/etc/smppbox.conf*

 *2014-07-24 15:48:59.109 [18964] [0] INFO: Debug_lvl = 0, log_file =
 none, log_lvl = 0 *
 *2014-07-24 15:48:59.109 [18964] [0] DEBUG: Loading include file
 `/FirstKannel/opt/kannel/etc/kannel_server.conf' (on line 7 of file
 /FirstKannel/opt/kannel/etc/smppbox.conf).*
 *2014-07-24 15:48:59.110 [18964] [0] ERROR: Group 'core' may not contain
 field 'bearerbox-immune'.*
 *2014-07-24 15:48:59.110 [18964] [0] ERROR: Error found on line 25 of
 file `/FirstKannel/opt/kannel/etc/smppbox.conf'.*
 *2014-07-24 15:48:59.110 [18964] [0] PANIC: Error reading configuration
 file, cannot start.*
 *2014-07-24 15:48:59.150 [18964] [0] PANIC:
 /opt/kannel/sbin/smppbox(gw_backtrace+0x1e7) [0x4fe227]*
 *2014-07-24 15:48:59.150 [18964] [0] PANIC:
 /opt/kannel/sbin/smppbox(gw_panic+0x194) [0x4fe3c4]*
 *2014-07-24 15:48:59.150 [18964] [0] PANIC:
 /opt/kannel/sbin/smppbox(main+0x23be) [0x42772e]*
 *2014-07-24 15:48:59.150 [18964] [0] PANIC:
 /lib64/libc.so.6(__libc_start_main+0xfd) [0x340701ed1d]*
 *2014-07-24 15:48:59.150 [18964] [0] PANIC: /opt/kannel/sbin/smppbox()
 [0x412bc9]*
 *2014-07-24 15:48:59.150 [18964] [0] PANIC: release: Kannel
 smppbox/1.8.140-meta-r3321 (linux-amd64-centos-6.5)*
 *2014-07-24 15:48:59.150 [18964] [0] PANIC: sha1sum:
 dfa26216ebe048f8b481b04bf132ff81bd4ad0ee*

  Is this option exist ?
 Because I am not able to search it on google.


 On Thu, Jul 24, 2014 at 3:32 PM, Ramesh G. Helaiya ram...@routesms.in
 wrote:


 Dear Team,

 Please set below directive in smppbox.conf and smppbox will not be
 locked then.
 bearerbox-immune = yes

 Regards,
 Ramesh Helaiya

 On Thursday 24 July 2014 03:30 PM, users-requ...@kannel.org wrote:

 Send users mailing list submissions to
 users@kannel.org

 To subscribe or unsubscribe via the World Wide Web, visit
 http://www.kannel.org/mailman/listinfo/users
 or, via email, send a message with subject or body 'help' to
 users-requ...@kannel.org

 You can reach the person managing the list at
 users-ow...@kannel.org

 When replying, please edit your Subject line so it is more specific
 than Re: Contents of users digest...


 Today's Topics:

 1. Connectivity Issue b/w bearerbox and smppbox (Himanshu Matta)


 --

 Message: 1
 Date: Wed, 23 Jul 2014 16:09:31 +0530
 From: Himanshu Matta himan...@hostnsoft.com
 To: kannel users@kannel.org users@kannel.org
 Subject: Connectivity Issue b/w bearerbox and smppbox
 Message-ID:
 
 caottv9tzquydd6yiyt0x2n3md5xvv3vo3kdo1ky7vrjtwqs...@mail.gmail.com
 Content-Type: text/plain; charset=utf-8

 Hi,

 I am facing connectivity issue b/w bearerbox and smppbox. After every
 2-3
 days smpp goes offline and at the sametime I am not able to open status
 page of smppbox server from browser. When I restart smppbox then
 everything
 again starts working fine. What could be the issue ?







  --
 Thanks and regards,
 Himanshu Matta






 --
 Thanks and regards,
 Himanshu Matta




Re: SMPP Gateway

2014-07-18 Thread spameden
Look at OpenSMPPBox.

Althrough it has some drawbacks.


2014-07-18 12:41 GMT+04:00 Алексей Мальгин alexey.mal...@gmail.com:

 Hello,



 I need some opensource solution for SMPP Gateway, which can be used as
 operator. Users will connect to the gateway via SMPP, gateway will be
 collect sms from them and send it via SMPP to operator. Can I use kannel
 for this? Or it’s only for sending sms to operator? May be there are some
 other solutions? Please help find it, because I can’t.



Re: DLR does not match message id

2014-07-18 Thread spameden
It looks like your SMSC operator gives hex number in submit_sm packet and
hex number in deliver_sm, so you need to add this in smsc group
configuration:

msg-id-type = 0x02



2014-07-19 0:40 GMT+04:00 Mario Noboa mnobo...@gmail.com:

 Of course Niel, thanks!!!




 2014-07-18 15:30 GMT-05:00 Niel Smith daniel.alfred.sm...@gmail.com:

 Hi Mario,

 Would it be possible to supply the full submit_sm, submit_sm_resp, and
 deliver_sm PDU dumps?


 On 18 July 2014 22:12, Mario Noboa mnobo...@gmail.com wrote:


 Hi list,

 I got a DLR problem with an operator.

 When sent a submit_sm, kannel receipt a message id:

 *message_id: 1e13a15*
 *DLR[internal]: Adding DLR smsc=SMSC1, ts=31537685, src=30100,
 dst=XXX, mask=31, boxc=*


 But its DLR arrives with another id:

 *2014-07-17 12:45:16 [32271] [35] DEBUG: DLR[internal]: Looking for DLR
 smsc=SMSC1, ts=613852054, dst=975647918, type=1*
 *2014-07-17 12:45:16 [32271] [35] WARNING: DLR[internal]: DLR from
 SMSCSMSC1 for DST975647918 not found.*
 *2014-07-17 12:45:16 [32271] [35] ERROR: SMPP[SMSC1]: got DLR but could
 not find message or was not interested in it id613852054 dstX,
 type1*


 if you notice both are in decimal and they are different. *31537685
 and **613852054*

 I tried to configure version 33 to use Timestamp, but they don't let me
 connect in that way.  There is any way to use timestamp instead of message
 id?

 Thanks for your answers!

 Mario






Re: DLR does not match message id

2014-07-18 Thread spameden
err, I meant hex in submit_sm and decimal in deliver_sm packets.


2014-07-19 1:04 GMT+04:00 spameden spame...@gmail.com:

 It looks like your SMSC operator gives hex number in submit_sm packet and
 hex number in deliver_sm, so you need to add this in smsc group
 configuration:

 msg-id-type = 0x02



 2014-07-19 0:40 GMT+04:00 Mario Noboa mnobo...@gmail.com:

 Of course Niel, thanks!!!




 2014-07-18 15:30 GMT-05:00 Niel Smith daniel.alfred.sm...@gmail.com:

 Hi Mario,

 Would it be possible to supply the full submit_sm, submit_sm_resp, and
 deliver_sm PDU dumps?


 On 18 July 2014 22:12, Mario Noboa mnobo...@gmail.com wrote:


 Hi list,

 I got a DLR problem with an operator.

 When sent a submit_sm, kannel receipt a message id:

 *message_id: 1e13a15*
 *DLR[internal]: Adding DLR smsc=SMSC1, ts=31537685, src=30100,
 dst=XXX, mask=31, boxc=*


 But its DLR arrives with another id:

 *2014-07-17 12:45:16 [32271] [35] DEBUG: DLR[internal]: Looking for DLR
 smsc=SMSC1, ts=613852054, dst=975647918, type=1*
 *2014-07-17 12:45:16 [32271] [35] WARNING: DLR[internal]: DLR from
 SMSCSMSC1 for DST975647918 not found.*
 *2014-07-17 12:45:16 [32271] [35] ERROR: SMPP[SMSC1]: got DLR but could
 not find message or was not interested in it id613852054 dstX,
 type1*


 if you notice both are in decimal and they are different. *31537685
 and **613852054*

 I tried to configure version 33 to use Timestamp, but they don't let me
 connect in that way.  There is any way to use timestamp instead of message
 id?

 Thanks for your answers!

 Mario







Re: DLR does not match message id

2014-07-18 Thread spameden
Actually, I've just looked at your logs again:

2014-07-17 12:45:12 [32271] [36] DEBUG: SMPP[SMSC1]: Got PDU:
2014-07-17 12:45:12 [32271] [36] DEBUG: SMPP PDU 0x11f4cb80 dump:
2014-07-17 12:45:12 [32271] [36] DEBUG:   type_name: submit_sm_resp
2014-07-17 12:45:12 [32271] [36] DEBUG:   command_id: 2147483652 =
0x8004
2014-07-17 12:45:12 [32271] [36] DEBUG:   command_status: 0 = 0x
2014-07-17 12:45:12 [32271] [36] DEBUG:   sequence_number: 5579 = 0x15cb
2014-07-17 12:45:12 [32271] [36] DEBUG:   message_id: 1e13a15
2014-07-17 12:45:12 [32271] [36] DEBUG: SMPP PDU dump ends.
2014-07-17 12:45:12 [32271] [36] DEBUG: DLR[internal]: Adding DLR
smsc=SMSC1, ts=31537685, src=30100, dst=XXX, mask=31, boxc=
2014-07-17 12:45:12 [32271] [36] DEBUG: SMSC[SMSC1]: creating DLR message

Message ID is 31537685 in submit_sm.

In deliver_sm it's:
2014-07-17 12:45:16 [32271] [35] DEBUG:   short_message:
2014-07-17 12:45:16 [32271] [35] DEBUG:Octet string at 0x11f4cf80:
2014-07-17 12:45:16 [32271] [35] DEBUG:  len:  119
2014-07-17 12:45:16 [32271] [35] DEBUG:  size: 120
2014-07-17 12:45:16 [32271] [35] DEBUG:  immutable: 0
2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 69 64 3a 30 30 33 31 35
33 37 36 38 35 20 73 75   id:0031537685 su
2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 62 3a 30 30 31 20 64 6c
76 72 64 3a 30 30 31 20   b:001 dlvrd:001
2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 73 75 62 6d 69 74 20 64
61 74 65 3a 31 34 30 37   submit date:1407
2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 31 37 31 32 34 35 20 64
6f 6e 65 20 64 61 74 65   171245 done date
2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 3a 31 34 30 37 31 37 31
32 34 35 20 73 74 61 74   :1407171245 stat
2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 3a 44 45 4c 49 56 52 44
20 65 72 72 3a 30 30 30   :DELIVRD err:000
2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 20 74 65 78 74 3a 6d 65
6e 73 61 6a 65 20 64 65text:test messa
2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 20 70 72 75 65 62 61
  ge 000
2014-07-17 12:45:16 [32271] [35] DEBUG:Octet string dump ends.
2014-07-17 12:45:16 [32271] [35] DEBUG:   message_state: 2 = 0x0002
2014-07-17 12:45:16 [32271] [35] DEBUG:   receipted_message_id: 2496a396

In msg-log it says:  id:0031537685 so it must be either kannel converting
it to hex for some reason or maybe some SMSC bug.
I can't seem to be able to get hex number from source id so it must be
something either at your operator side or something.

What is the kannel version you're using? And show your configuration.


2014-07-19 1:16 GMT+04:00 Mario Noboa mnobo...@gmail.com:

 Thanks your answer Spameden. I thought the same thing, but the message ids
 are complete different:

 if you see the log:

 submit_sm_resp: message_id: 31537685   (decimal)
 deliver_sm:   ts=613852054   (decimal)

 regards,



 2014-07-18 16:04 GMT-05:00 spameden spame...@gmail.com:

 err, I meant hex in submit_sm and decimal in deliver_sm packets.


 2014-07-19 1:04 GMT+04:00 spameden spame...@gmail.com:

 It looks like your SMSC operator gives hex number in submit_sm packet and
 hex number in deliver_sm, so you need to add this in smsc group
 configuration:

 msg-id-type = 0x02



 2014-07-19 0:40 GMT+04:00 Mario Noboa mnobo...@gmail.com:

 Of course Niel, thanks!!!




 2014-07-18 15:30 GMT-05:00 Niel Smith daniel.alfred.sm...@gmail.com:

 Hi Mario,

 Would it be possible to supply the full submit_sm, submit_sm_resp, and
 deliver_sm PDU dumps?


 On 18 July 2014 22:12, Mario Noboa mnobo...@gmail.com wrote:


 Hi list,

 I got a DLR problem with an operator.

 When sent a submit_sm, kannel receipt a message id:

 *message_id: 1e13a15*
 *DLR[internal]: Adding DLR smsc=SMSC1, ts=31537685, src=30100,
 dst=XXX, mask=31, boxc=*


 But its DLR arrives with another id:

 *2014-07-17 12:45:16 [32271] [35] DEBUG: DLR[internal]: Looking for
 DLR smsc=SMSC1, ts=613852054, dst=975647918, type=1*
 *2014-07-17 12:45:16 [32271] [35] WARNING: DLR[internal]: DLR from
 SMSCSMSC1 for DST975647918 not found.*
 *2014-07-17 12:45:16 [32271] [35] ERROR: SMPP[SMSC1]: got DLR but
 could not find message or was not interested in it id613852054
 dstX, type1*


 if you notice both are in decimal and they are different. *31537685
 and **613852054*

 I tried to configure version 33 to use Timestamp, but they don't let
 me connect in that way.  There is any way to use timestamp instead of
 message id?

 Thanks for your answers!

 Mario









Re: DLR does not match message id

2014-07-18 Thread spameden
Try commenting out completely msg-id-type if it would be the same means its
something you need to settle down with your SMSC operator.


2014-07-19 2:13 GMT+04:00 Mario Noboa mnobo...@gmail.com:

 You're right the message id is in short_message but it should be in
 receipted_message_id. It's a bug of the operator, but they told me that
 they can't do any change.

 That's why I asked to use the timestamp  :)

 Here is my config (it tried msg-id-type = 2 but didn't work):

 #Rx SMSC1
 group = smsc
 smsc = smpp
 smsc-id = SMSC1
 host = X.X.X.X
 port = 0
 receive-port = 1
 smsc-username = esystem
 smsc-password = psystem
 system-type =
 interface-version = 34
 throughput=20
 msg-id-type = 1
 allowed-smsc-id = SMSC1


 #Tx SMSC1
 group = smsc
 smsc = smpp
 smsc-id = SMSC1
 host = X.X.X.X
 port = 1
 receive-port = 0
 smsc-username = esystem
 smsc-password = psystem
 system-type =
 interface-version = 34
 throughput=20
 msg-id-type = 1
 log-level = 0
 allowed-smsc-id = SMSC1

 Thanks!


 2014-07-18 16:35 GMT-05:00 spameden spame...@gmail.com:

 Actually, I've just looked at your logs again:

 2014-07-17 12:45:12 [32271] [36] DEBUG: SMPP[SMSC1]: Got PDU:
 2014-07-17 12:45:12 [32271] [36] DEBUG: SMPP PDU 0x11f4cb80 dump:
 2014-07-17 12:45:12 [32271] [36] DEBUG:   type_name: submit_sm_resp
 2014-07-17 12:45:12 [32271] [36] DEBUG:   command_id: 2147483652 =
 0x8004
 2014-07-17 12:45:12 [32271] [36] DEBUG:   command_status: 0 = 0x
 2014-07-17 12:45:12 [32271] [36] DEBUG:   sequence_number: 5579 =
 0x15cb
 2014-07-17 12:45:12 [32271] [36] DEBUG:   message_id: 1e13a15
 2014-07-17 12:45:12 [32271] [36] DEBUG: SMPP PDU dump ends.
 2014-07-17 12:45:12 [32271] [36] DEBUG: DLR[internal]: Adding DLR
 smsc=SMSC1, ts=31537685, src=30100, dst=XXX, mask=31, boxc=
 2014-07-17 12:45:12 [32271] [36] DEBUG: SMSC[SMSC1]: creating DLR message

 Message ID is 31537685 in submit_sm.

 In deliver_sm it's:
 2014-07-17 12:45:16 [32271] [35] DEBUG:   short_message:
 2014-07-17 12:45:16 [32271] [35] DEBUG:Octet string at 0x11f4cf80:
 2014-07-17 12:45:16 [32271] [35] DEBUG:  len:  119
 2014-07-17 12:45:16 [32271] [35] DEBUG:  size: 120
 2014-07-17 12:45:16 [32271] [35] DEBUG:  immutable: 0
 2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 69 64 3a 30 30 33 31
 35 33 37 36 38 35 20 73 75   id:0031537685 su
 2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 62 3a 30 30 31 20 64
 6c 76 72 64 3a 30 30 31 20   b:001 dlvrd:001
 2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 73 75 62 6d 69 74 20
 64 61 74 65 3a 31 34 30 37   submit date:1407
 2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 31 37 31 32 34 35 20
 64 6f 6e 65 20 64 61 74 65   171245 done date
 2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 3a 31 34 30 37 31 37
 31 32 34 35 20 73 74 61 74   :1407171245 stat
 2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 3a 44 45 4c 49 56 52
 44 20 65 72 72 3a 30 30 30   :DELIVRD err:000
 2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 20 74 65 78 74 3a 6d
 65 6e 73 61 6a 65 20 64 65text:test messa
 2014-07-17 12:45:16 [32271] [35] DEBUG:  data: 20 70 72 75 65 62 61
 ge 000
 2014-07-17 12:45:16 [32271] [35] DEBUG:Octet string dump ends.
 2014-07-17 12:45:16 [32271] [35] DEBUG:   message_state: 2 = 0x0002
 2014-07-17 12:45:16 [32271] [35] DEBUG:   receipted_message_id: 2496a396

 In msg-log it says:  id:0031537685 so it must be either kannel
 converting it to hex for some reason or maybe some SMSC bug.
 I can't seem to be able to get hex number from source id so it must be
 something either at your operator side or something.

 What is the kannel version you're using? And show your configuration.


 2014-07-19 1:16 GMT+04:00 Mario Noboa mnobo...@gmail.com:

 Thanks your answer Spameden. I thought the same thing, but the message
 ids are complete different:

 if you see the log:

 submit_sm_resp: message_id: 31537685   (decimal)
 deliver_sm:   ts=613852054   (decimal)

 regards,



 2014-07-18 16:04 GMT-05:00 spameden spame...@gmail.com:

 err, I meant hex in submit_sm and decimal in deliver_sm packets.


  2014-07-19 1:04 GMT+04:00 spameden spame...@gmail.com:

 It looks like your SMSC operator gives hex number in submit_sm packet
 and hex number in deliver_sm, so you need to add this in smsc group
 configuration:

 msg-id-type = 0x02



 2014-07-19 0:40 GMT+04:00 Mario Noboa mnobo...@gmail.com:

 Of course Niel, thanks!!!




 2014-07-18 15:30 GMT-05:00 Niel Smith daniel.alfred.sm...@gmail.com
 :

 Hi Mario,

 Would it be possible to supply the full submit_sm, submit_sm_resp,
 and deliver_sm PDU dumps?


 On 18 July 2014 22:12, Mario Noboa mnobo...@gmail.com wrote:


 Hi list,

 I got a DLR problem with an operator.

 When sent a submit_sm, kannel receipt a message id:

 *message_id: 1e13a15*
 *DLR[internal]: Adding DLR smsc=SMSC1, ts=31537685, src=30100,
 dst=XXX, mask=31, boxc=*


 But its DLR arrives with another id:

 *2014-07-17

Re: SQLBox and Store type

2014-07-08 Thread spameden
2014-07-08 11:26 GMT+04:00 Antonis Spirou anto...@kapatel.gr:

  Hi all,

 a quick question.
 If i use sqlbox do i have to use kannel's storage facility or one has
 nothing to do with the other?


kannel's storage HAS nothing to do with sqlbox.

kannel's storage it's just temporarily to track which messages are in queue
(file / spool storage) or awaiting delivery (DLR storage --
internal/mysql/postgresql/etc).

kannel's bearerbox have 2 storages as you can see: one for queue and other
one for DLR.

sqbox is used to save message log into DB and get items to the queue from
DB.


 BR
 --
 *Antonis Spirou*
 Systems Administrator






Re: Help with configuring delivery report and billing for Nowsms

2014-07-04 Thread spameden
2014-07-04 13:19 GMT+04:00 Herve Memba herveme...@gmail.com:

 Dear Sir,

   I found your E-mail address on https://www.mail-archive.com

I need your help with configuring nowsms as follows
 1) i need delivery report submitted to my SMPP/HTTP clients
 and also be able to see them. sent/received sms' stats need to be
 entered in a database (Access if possible) with entries such as user
 ID and i should be able to query these info at a frontend for stuff
 such as quantity sent/received per date and user ID


Hi.

For free solution: check sqlbox/opensmppbox. To suit all your needs (e.g.
sent/received stats and status in single MT row) you would need to modify
it.

For commercial: there are various SMPP servers around here based on kannel,
please e-mail s...@tolj.org or commerc...@kannel.org mailing list.

Please use users@kannel.org for future help. Always copy the list address
so others would benefit too.


  let me know if you can also come up with a billing solution



There is no 'complete billing solution' for kannel. You need to develop it
yourself or rent someone to code it for you. I'm not providing such
service, only helping on kannel mailing lists.





 waiting to hear from you


 Your prompt reply would be highly appreciated.


 --
 Best Regards

 Herve Memba

 Satvision Sarl

 Tel. +237 73 04 68 66
   +237 33 71 76 58
 Skyp: herve4biz
 MSN: herveme...@live.com



 --
 Best Regards

 Herve Memba

 Satvision Sarl

 Tel. +237 73 04 68 66
   +237 33 71 76 58
 Skyp: herve4biz
 MSN: herveme...@live.com



Re: Throttling Error

2014-07-02 Thread spameden
2014-07-02 11:35 GMT+04:00 Алексей Мальгин alexey.mal...@gmail.com:

 Hello,



 We need help with processing  Throttling Error. SMSC requires us to wait
 60 seconds and resend request. Can you help us to setup kannel well? Our
 config in attachment. Is it possible?


You've got weird setting for throughput. 0.32 means its even less than 1.

max-pending-submits is also 1, meaning kannel won't send next submit_sm
packet unless it receives acknowledgement from SMSC.

Ask your SMSC operator to increase throughput for your connection at least
to 10.




 We use Kannel 1.5.0 with sqlbox, smpp 3.4.



Re: Throttling Error

2014-07-02 Thread spameden
2014-07-02 12:20 GMT+04:00 Алексей Мальгин alexey.mal...@gmail.com:

 Hi,



 Thanks for the response!



  You've got weird setting for throughput. 0.32 means its even less than
 1.

  Ask your SMSC operator to increase throughput for your connection at
 least to 10.



 It’s test connection with 20 sms per minute. We need to pass test with
 these rules to have commercial connection.



  max-pending-submits is also 1, meaning kannel won't send next submit_sm
 packet unless it receives acknowledgement from SMSC.



 Yes, we have tried many confing variants, but still couldn't resolve the
 problem. Without this option, or with 1 value - no matter.





 *From:* spameden [mailto:spame...@gmail.com]
 *Sent:* Wednesday, July 02, 2014 3:04 PM
 *To:* Алексей Мальгин
 *Cc:* users@kannel.org
 *Subject:* Re: Throttling Error







 2014-07-02 11:35 GMT+04:00 Алексей Мальгин alexey.mal...@gmail.com:

 Hello,



 We need help with processing  Throttling Error. SMSC requires us to wait
 60 seconds and resend request. Can you help us to setup kannel well? Our
 config in attachment. Is it possible?



 You've got weird setting for throughput. 0.32 means its even less than 1.



 max-pending-submits is also 1, meaning kannel won't send next submit_sm
 packet unless it receives acknowledgement from SMSC.



 Ask your SMSC operator to increase throughput for your connection at least
 to 10.


throughput in kannel means msg/sec.

it can be a float value, e.g. 0.1 meaning, per minute you'll get  6
sms/minute.

but i'd strongly advise to increate limit at least 600 sms/min or 10
sms/sec.

20sms/min seems to be a very low limit.

max-pending-submits can be only integer value, so you really limiting
yourself at least to 1 sms/second.







 We use Kannel 1.5.0 with sqlbox, smpp 3.4.





Re: Fall Back SMSC Option

2014-06-28 Thread spameden
2014-06-28 2:44 GMT+04:00 Ramesh G. Helaiya ram...@routesms.in:

 Dear Team,

 How can we implement Fall Back SMSC Option in bearerbox.
 When one SMSC is rejecting the Message with NACK, the message must be
 retried with other SMSC.


There is no such option here.

You can implement yourself a simple check via monit/nagios/zabbix or any
other monitoring system or simple bash script to switch smsc via kannel's
admin interface command by checking web interface again if SMSC is still up.

e.g. you check with lynx http://localhost:13000/status page and grep if
smsc is still up if not, you just add needed smsc with:

lynx http://localhost:13000/add-smsc?smsc=XXXpassword=


 Regards,
 RGH





  1   2   3   4   5   >