Re: Issues with using UDH with sqlbox

2016-05-16 Thread spameden
My guess is you need to urlencode UDH field.

2016-05-16 22:46 GMT+03:00 Jon Schøpzinsky :

> 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: Not work "priority" in settings SMSC

2016-02-10 Thread spameden
Please don't post such questions to devel@ list.

This list is intended only for developers.

For general help always use users@.

And probably for different questions there should be a different e-mail.

2016-02-11 6:41 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?
>
> --
> С уважением,
> Беляев В.Н.
>
> -Original Message-
> From: users [mailto:users-boun...@kannel.org] On Behalf Of Milan P. Stanic
> Sent: Wednesday, February 10, 2016 11:05 PM
> To: us...@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: Concatenated SMS has no DLR

2016-01-13 Thread spameden
Yes, this is "by design", because of the DLR url engine.

There are two options:

1) Tweak kannel's source code to receive each DLR of each part (was
discussed before on mailing lists where to look).
2) Assemble yourself multipart MT via UDH field by sending multiple MT's so
you'll get DLR for each part (was discussed too I think before).

2016-01-13 16:51 GMT+03:00 Andreas Constantinou :

> When I send a long SMS, of lets say two parts, two submit_sm are issued.
> The second submit_sm does not request a delivery receipt and thus as
> implied by my SMSC support no DLR is received (for any of the two). Whys is
> that? Is there an option in kannel to fix it?
>
>
>
> Thank you.
>
> --Andreas Constantinou
>
>
>


Re: PATCH: Fix use of uninitialized variable (mysql port) in sqlbox

2015-11-09 Thread spameden
That's correct, host should be 'localhost'.

2015-11-09 18:31 GMT+03:00 Vyronas Tsingaras <vtsinga...@amdtelecom.net>:

> But according to
> https://dev.mysql.com/doc/refman/5.7/en/mysql-real-connect.html only when
> host is either NULL or "localhost" will mysql_real_connect do UNIX socket
> connection. The 'port' argument only applies to TCP/IP connections and thus
> should default to 0 if not specified.
>
> Kind Regards,
> Vyronas Tsingaras
>
> On Mon, Nov 9, 2015 at 5:24 PM, spameden <spame...@gmail.com> wrote:
>
>> If port wasn't specified that means kannel will use socket instead, so no
>> need to specify default port.
>>
>> 2015-11-09 17:23 GMT+03:00 Vyronas Tsingaras <vtsinga...@amdtelecom.net>:
>>
>>> sqlbox would try to connect to random ports on the mysql host if no port
>>> was defined due to an uninitialized variable use.
>>>
>>> Index: sqlbox_mysql.c
>>> ===
>>> --- sqlbox_mysql.c (revision 55)
>>> +++ sqlbox_mysql.c (working copy)
>>> @@ -396,6 +396,9 @@
>>>  if (have_port) {
>>>  db_conf->mysql->port = mysql_port;
>>>  }
>>> +else {
>>> +db_conf->mysql->port = 3306;
>>> +}
>>>
>>>  pool = dbpool_create(DBPOOL_MYSQL, db_conf, pool_size);
>>>  gw_assert(pool != NULL);
>>>
>>> --
>>> *Vyronas Tsingaras **| IT Department*
>>> 12th Km Thessaloniki - Liti, Zip.57200, GreeceTel.: +30.23940.20336,
>>> Fax: +30.23940.25922Skype id: vtsingaras.amdtelecomE-mail:
>>> vtsinga...@amdtelecom.net <b...@amdtelecom.net>www.amdtelecom.net
>>> <http://www.linkedin.com/company/amd-telecom-s.a.?trk=company_logo>
>>> <https://www.facebook.com/pages/AMD-Telecom/282439285138965?fref=ts>
>>> <https://www.twitter.com/amdtelecom>
>>> Please consider the environment before printing this email
>>>
>>> This e-mail message and all attachments transmitted with it are
>>> confidential and are intended solely for the addressee(s). If the reader of
>>> this message is not the intended recipient, you are hereby notified that
>>> any reading, dissemination, distribution, copying, or other use of this
>>> message or its attachment(s) is strictly prohibited.
>>>
>>
>>
>
>
> --
> *Vyronas Tsingaras **| IT Department*
> 12th Km Thessaloniki - Liti, Zip.57200, GreeceTel.: +30.23940.20336, Fax:
> +30.23940.25922Skype id: vtsingaras.amdtelecomE-mail:
> vtsinga...@amdtelecom.net <b...@amdtelecom.net>www.amdtelecom.net
> <http://www.linkedin.com/company/amd-telecom-s.a.?trk=company_logo>
> <https://www.facebook.com/pages/AMD-Telecom/282439285138965?fref=ts>
> <https://www.twitter.com/amdtelecom>
> Please consider the environment before printing this email
>
> This e-mail message and all attachments transmitted with it are
> confidential and are intended solely for the addressee(s). If the reader of
> this message is not the intended recipient, you are hereby notified that
> any reading, dissemination, distribution, copying, or other use of this
> message or its attachment(s) is strictly prohibited.
>


Re: PATCH: Fix use of uninitialized variable (mysql port) in sqlbox

2015-11-09 Thread spameden
If port wasn't specified that means kannel will use socket instead, so no
need to specify default port.

2015-11-09 17:23 GMT+03:00 Vyronas Tsingaras :

> sqlbox would try to connect to random ports on the mysql host if no port
> was defined due to an uninitialized variable use.
>
> Index: sqlbox_mysql.c
> ===
> --- sqlbox_mysql.c (revision 55)
> +++ sqlbox_mysql.c (working copy)
> @@ -396,6 +396,9 @@
>  if (have_port) {
>  db_conf->mysql->port = mysql_port;
>  }
> +else {
> +db_conf->mysql->port = 3306;
> +}
>
>  pool = dbpool_create(DBPOOL_MYSQL, db_conf, pool_size);
>  gw_assert(pool != NULL);
>
> --
> *Vyronas Tsingaras **| IT Department*
> 12th Km Thessaloniki - Liti, Zip.57200, GreeceTel.: +30.23940.20336, Fax:
> +30.23940.25922Skype id: vtsingaras.amdtelecomE-mail:
> vtsinga...@amdtelecom.net www.amdtelecom.net
> 
> 
> 
> Please consider the environment before printing this email
>
> This e-mail message and all attachments transmitted with it are
> confidential and are intended solely for the addressee(s). If the reader of
> this message is not the intended recipient, you are hereby notified that
> any reading, dissemination, distribution, copying, or other use of this
> message or its attachment(s) is strictly prohibited.
>


Re: Throughput discussion

2015-10-23 Thread spameden
2015-10-24 0:19 GMT+03:00 Rene Kluwen :

> We are facing a case with the smpp smsc where throughput is set to 20.
>
> Kannel obeys this nicely, according to it’s own message count.
>
> But viewing a tcpdump of the same session, we see that there’s a lot more
> messages going out the pipe; like 30 or more.
>
> So Kannel doesn’t seem to count the throughput correctly. This causes
> throttling errors, which of course we don’t want. It stalls the throughput
> of the entire batch.
>
>
>
> The questions:
>
> 1: Has anybody seen this behaviour before?
>

I've seen this issue long time ago. The only solution I've found is to get
an increased window (throughput) on my provider.

What is your max-pending-submits option? I believe it affects number of
outstanding operations between ESME and SMSC.

Also sometimes I've seen a behaviour of kannel sleeping for 1 minute and
then sending a lot of messages at once whilst there was bulk sending going
on.


> 2: When is a message “counted” for? Is it upon sending a submit_sm or when
> receiving the submit_sm_resp?
>

I'm not sure, but kannel logs throughput in smsc bearerbox log, so you can
check there or check by tcpdump as you suggested.

If you're on limited channel it's probably better to decrease throughput
and max-pending-submits settings to e.g.:

throughput = 10
max-pending-submits = 8


>
> == Rene
>
>
>


Re: question about postgresql dlr storage

2015-08-04 Thread spameden
2015-08-03 18:24 GMT+03:00 Alvaro Cornejo cornejo.alv...@gmail.com:

 Hi Marcin

 Seems you are getting the problem due to the ' on text Victoria's. Even
 though you are urlencoding it, it seems it is being taken as a field
 delimiter and not part of the text. I'm thinking on two options:

 -) Try to escape it with \' or \\'

 -) You might want to replace any ' within any field with ´ or  `
 (right/left sided apostrophe)  before urlencoding the fields.


I think Marcin spot a bug when you're receiving returning DLR data with '
(apostroph) it won't be escaped / urlencoded properly that's why there is
an error.
Would be nice to reproduce this bug somehow.


 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 Mon, Aug 3, 2015 at 9:15 AM, Marcin Matyaszczyk 
 m.matyaszc...@ogicom.pl wrote:

 Hello

 we have a problem with Postgresql DLR storage which looks like a bug:
 when we try to send sms with source field containing ' character we've
 got an error:

 2015-04-02 10:18:51 CEST STATEMENT:  INSERT INTO dlr (smsc, ts,
 source, destination, service, url, mask, boxc, status)
 VALUES ('smpp3', '', 'Victoria's', '+488', 'xx',
 '
 http://.domain.pl/dlr2.php?id=110725920source=XXXt=%ti=%id=%dD=%DA=%AF=%F
 ',
 '31', '', '0');

 2015-04-02 10:21:51 CEST ERROR:  syntax error at or near s at
 character 147

 We urlencode all fields and sms is submitted ok to kannel, problem
 appears in dlr's insert query only. We use kannel 1.5.

 regards
 Marcin Matyaszczyk






Re: how to generate rpm from src

2015-06-15 Thread spameden
You need to make a .spec file and build RPM yourself.

You can look as an example here:
https://github.com/blinohod/kannel-altlinux/blob/upstream/kannel.spec

2015-06-15 10:41 GMT+03:00 Ajay Patel ajay.pa...@elitecore.com:

 Hi All,



 Previously I have used 1.4.2, I have directly install this version using
 rpm. But now I wanted to install 1.4.4 (but I could not find rpm) So I have
 download and configure source (“gateway.tar.gz
 http://www.kannel.org/download/1.4.4/gateway-1.4.4.tar.gz”) in RHEL 6.4
 64bit server, Now I wanted to generate rpm for the same.



 Can anyone help me for the same? How can I generate rpm.



 Thanks  Regards,

 *Ajay Patel*

 *(M) 9228114542*





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: Throttling Error

2014-07-03 Thread spameden
2014-07-03 10:16 GMT+04:00 Andreas Fink af...@list.fink.org:

 there is nothing to be done about this. Kannel does stop sending if it
 gets a throttling error and resumes a little bit later.
 This is part of the protocol and does not require any further config
 settings


Yup. Alexey, you should contact your SMSC operator and ask them to modify
throttling limit for you to reflect your needs. (e.g. at least
10sms/second).


 On 03 Jul 2014, at 05:08, Алексей Мальгин alexey.mal...@gmail.com wrote:

 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?

 We use Kannel 1.5.0 with sqlbox, smpp 3.4.
 sqlbox.confkannel.conf





Re: Strange sqlbox/kannel bug(?)

2014-04-28 Thread spameden
First of all, what kannel's version you're using?

Try building from source latest version from SVN.


2014-04-28 19:02 GMT+04:00 Ciaran Scolard cia...@phonovation.com:

  Further tracing with strace and SQL Profiler shows this:



 Strace output:

 write(7, 15:36:11.403232 20842 (write.c:140):tds_put_string converting
 298 bytes of \INSERT INTO euro_sent_sms00 (momt, sender, receiver,
 udhdata, msgdata, xtime, smsc_id, service, account, sms_type, mclass, mwi,
 coding, compress, validity, deferred, dlr_mask, dlr_url, pid, alt_dcs, rpi,
 charset, boxc_id, binfo, meta_data, foreign_id) VALUES ('MT',
 '353872115934', '53535', NULL, '*\\n,* 376) = 376



 SQL Profiler output:

 INSERT INTO euro_sent_sms00 (momt, sender, receiver, udhdata, msgdata,
 xtime, smsc_id, service, account, sms_type, mclass, mwi, coding, compress,
 validity, deferred, dlr_mask, dlr_url, pid, alt_dcs, rpi, charset, boxc_id,
 binfo, meta_data, foreign_id) VALUES ('MT', '353872115934', '53535', NULL, '











 *From:* Ciaran Scolard
 *Sent:* 28 April 2014 10:34
 *To:* devel@kannel.org
 *Cc:* Pedro Quintas
 *Subject:* Strange sqlbox/kannel bug(?)



 Hi All,



 I’ve encountered a very strange bug(?) to do with kannel and sqlbox.

 I’m wondering if anyone can shed some light on it.



 When I insert into send_sms and specify the charset field, things start to
 go strange.



 When I do this.

 INSERT INTO send_sms00 (momt, sender, receiver, udhdata, msgdata, smsc_id,
 sms_type, coding, compress, validity, dlr_mask ) VALUES ('MT',
 '353872115934', '53535', NULL, 'abcde12345', 'euro', 2, 2,  NULL, 4200, 0
 )

 Everything works fine.

 This is without the charset field.



 When I do this:

 INSERT INTO euro_send_sms00 (charset, momt, sender, receiver, udhdata,
 msgdata, smsc_id, sms_type, coding, compress, validity, dlr_mask ) VALUES
 ('utf-8', 'MT', '353872115934', '53535', NULL, 'charset', 'euro', 2, 2,
 NULL, 4200, 0 )

 Things go strange.

 This is with the charset field.



 Using the freetds debug log and wireshark I can see that the SELECT TOP 1
 from send_sms is working fine.

 But interstingley

 1)  the charset field is not honoured. When I specify utf-8 it goes
 out as UCS-2.

 2)  When doing the insert into sent_sms the transaction is being
 truncated.



 This is the command being sent to mssql:

 INSERT INTO sent_sms00 (momt, sender, receiver, udhdata, msgdata, xtime,
 smsc_id, service, account, sms_type, mclass, mwi, coding, compress,
 validity, deferred, dlr_mask, dlr_url, pid, alt_dcs, rpi, charset, boxc_id,
 binfo, meta_data, foreign_id) VALUES ('MT', '353872115934', '53535', NULL, '



 For comparison purposes here is a successful INSERT into sent_sms
 generated earlier by not specifying the charset field.

 INSERT INTO sent_sms00 (momt, sender, receiver, udhdata, msgdata, xtime,
 smsc_id, service, account, sms_type, mclass, mwi, coding, compress,
 validity, deferred, dlr_mask, dlr_url, pid, alt_dcs, rpi, charset, boxc_id,
 binfo, meta_data, foreign_id) VALUES ('MT', '353872115934', '53535', NULL,
 'abcde12345', 0, 'euro', NULL, NULL, 2, 0, 0, 2, 0, 4200, 0, 0, NULL, 0, 0,
 0, NULL, NULL, NULL, NULL, '80069')





Re: GIT

2014-04-21 Thread spameden
if you don't want to bother switching to GIT (too used to SVN) you can just
setup a simple SVN hook to push into github automatically upon commit.

first you'd need to put up current kannel's projects with history by using
git-svn tool.

github actually supports SVN directly:
https://help.github.com/articles/support-for-subversion-clients

ye, would be cool to have kannel's source mirrored on github as well.


2014-04-21 9:15 GMT+04:00 Rachman Chavik rcha...@gmail.com:

 Hi,

 Is there any plans to migrate to git? Or even to github?
 IMO, this will make contributions much easier.





Re: Redis delivery report DLR backend

2014-03-13 Thread spameden
Forwarding to devel-list, hopefully someone would check and copying
Alexander.


2014-03-13 17:10 GMT+04:00 Lorenzo Bagni ba...@networkweb.net:

 Hi,
 I've found the problem under redis backend crash.
 My dlr-url (
 http://my.fqdn.name/DlrManager.aspx31oa=%pda=%Psmsc=%idlrtype=%ddetail=%atempo=%Tid=%idelr=%Auser=%nforeign=%Fidgen=0|1|2|3|4|5|6)
  contais many parameters with values as %[char], some of this broke
 /usr/bin/bearerbox, some not but store on Redis backend different values:
 %p %P %T %n = PANIC
 %a is soted as 0x0.07f1160003b48p-1022
 %A is soted as 0x0.07f1160003b48p-1022
 %F is soted as 0.00
 %i is soted as 378
 %d is soted as 378

 The dlr-url is passed is urlencoded, so I guess the issue is when the
 bearer decode and evaluate per params sent to
 http://kannel-ip:13013/cgi-bin/sendsms.

 Last thing, I've tried to register under Kannel Redmine, but after
 successully registration I cannot login because I've nevere recevied the
 confirmation mail.
 For admins: could you kinldy check my account and unlock my account?

 Thanks in advance
 Bagni


 2014-03-12 16:06 GMT+01:00 Lorenzo Bagni ba...@networkweb.net:

 Hi,
 I've activated the REDIS_DEBUG but the HMSET command works on redis-cli,
 but not with Kannel:
 bearerbox.log:
 2014-03-12 15:54:14 [30938] [8] DEBUG: DLR[redis]: Adding DLR
 smsc=kannelfake, ts=8f3d43b4-f93c-4d8f-b681-35b658f74d90, src=51303,
 dst=39328000, mask=31, boxc=
 2014-03-12 15:54:14 [30938] [8] DEBUG: Adding DLR into keystore
 2014-03-12 15:54:14 [30938] [8] DEBUG: redis cmd: HMSET
 dlr:kannelfake:8f3d43b4-f93c-4d8f-b681-35b658f74d90:4677782 smsc kannelfake
 ts 8f3d43b4-f93c-4d8f-b681-35b658f74d90 source 51303 destination
 39328 service user_mobyt_fake url
 http://my.fqdn.name/DlrManager.aspx31oa=%pda=%Psmsc=%idlrtype=%ddetail=%atempo=%Tid=%idelr=%Auser=%nforeign=%Fidgen=0|1|2|3|4|5|6mask
  _NULL_ boxc ? status 0
 2014-03-12 15:54:14 [30938] [8] PANIC: /usr/sbin/bearerbox() [0x4a810c]
 2014-03-12 15:54:14 [30938] [8] PANIC: /lib64/libpthread.so.0(+0xf710)
 [0x7f3d26ec0710]
 2014-03-12 15:54:14 [30938] [8] PANIC: /usr/sbin/bearerbox() [0x48d431]
 2014-03-12 15:54:14 [30938] [8] PANIC: /usr/sbin/bearerbox() [0x41fa63]
 2014-03-12 15:54:14 [30938] [8] PANIC:
 /usr/sbin/bearerbox(dlr_add_real+0x3a3) [0x41cf63]
 2014-03-12 15:54:14 [30938] [8] PANIC: /usr/sbin/bearerbox() [0x457b7f]
 2014-03-12 15:54:14 [30938] [8] PANIC:
 /usr/sbin/bearerbox(smscconn_send+0x5f) [0x42406f]
 2014-03-12 15:54:14 [30938] [8] PANIC:
 /usr/sbin/bearerbox(smsc2_rout+0x428) [0x417f68]
 2014-03-12 15:54:14 [30938] [8] PANIC: /usr/sbin/bearerbox() [0x418e1d]
 2014-03-12 15:54:14 [30938] [8] PANIC: /usr/sbin/bearerbox() [0x491da9]
 2014-03-12 15:54:14 [30938] [8] PANIC: /lib64/libpthread.so.0(+0x79d1)
 [0x7f3d26eb89d1]
 2014-03-12 15:54:14 [30938] [8] PANIC: /lib64/libc.so.6(clone+0x6d)
 [0x7f3d25c50b6d]

 Any clue for this?
 Thanks in advance
 Bagni


 2014-03-06 12:37 GMT+01:00 Lorenzo Bagni ba...@networkweb.net:

  Hi all,
 I'm facing a blocking problem on redis backend for delivery report.
 I'm sendig correctly (and receive on my MT) but the bearerbox hangs when
 try to write on redis:

 smsc log:
 2014-03-06 11:44:54 [25724] [7] DEBUG: SMPP[mobytusaprod]: Got PDU:
 2014-03-06 11:44:54 [25724] [7] DEBUG: SMPP PDU 0x7f6c08000a10 dump:
 2014-03-06 11:44:54 [25724] [7] DEBUG:   type_name: submit_sm_resp
 2014-03-06 11:44:54 [25724] [7] DEBUG:   command_id: 2147483652 =
 0x8004
 2014-03-06 11:44:54 [25724] [7] DEBUG:   command_status: 0 = 0x
 2014-03-06 11:44:54 [25724] [7] DEBUG:   sequence_number: 2 = 0x0002
 2014-03-06 11:44:54 [25724] [7] DEBUG:   message_id:
 2014-03-06 11:44:54 [25724] [7] DEBUG:Octet string at 0x7f6c080011a0:
 2014-03-06 11:44:54 [25724] [7] DEBUG:  len:  36
 2014-03-06 11:44:54 [25724] [7] DEBUG:  size: 37
 2014-03-06 11:44:54 [25724] [7] DEBUG:  immutable: 0
 2014-03-06 11:44:54 [25724] [7] DEBUG:  data: 37 35 33 31 62 34 32
 61 2d 66 34 34 66 2d 34 33   7531b42a-f44f-43
 2014-03-06 11:44:54 [25724] [7] DEBUG:  data: 38 31 2d 39 63 35 61
 2d 36 31 37 65 32 32 33 31   81-9c5a-617e2231
 2014-03-06 11:44:54 [25724] [7] DEBUG:  data: 36 30 35 63
 605c
 2014-03-06 11:44:54 [25724] [7] DEBUG:Octet string dump ends.
 2014-03-06 11:44:54 [25724] [7] DEBUG: SMPP PDU dump ends.
 2014-03-06 11:44:54 [25724] [7] DEBUG: new group created `smpp'
 2014-03-06 11:44:54 [25724] [7] DEBUG: group=`smpp'
 key=`mobyt_campaignid' value=`1245'
 2014-03-06 11:44:54 [25724] [7] DEBUG: DLR[redis]: Adding DLR
 smsc=mobytusaprod, ts=7531b42a-f44f-4381-9c5a-617e2231605c, src=51303,
 dst=393284677782, mask=31, boxc=
 2014-03-06 11:44:54 [25724] [7] DEBUG: Adding DLR into keystore

 bearerbox log:
 2014-03-06 11:44:33 [25724] [9] DEBUG: Started thread 10
 (gw/bb_boxc.c:boxc_sender)
 2014-03-06 11:44:33 [25724] [10] DEBUG: Thread 10
 (gw/bb_boxc.c:boxc_sender) maps to pid 25724.
 2014-03-06 11:44:54 [25724] [9] DEBUG: 

Re: [PATCH] No PANIC on failing store_load()

2013-09-17 Thread spameden
I think first edit @ 20th line is not needed.

@@ -7,7 +7,7 @@
 momt ENUM('MO', 'MT', 'DLR') NULL, sender VARCHAR(20) NULL, \
 receiver VARCHAR(20) NULL, udhdata BLOB NULL, msgdata TEXT NULL, \
 time BIGINT(20) NULL, smsc_id VARCHAR(255) NULL, service VARCHAR(255) NULL, \
-account VARCHAR(255) NULL, id BIGINT(20) NULL, sms_type BIGINT(20) NULL, \
+account VARCHAR(255) NULL, id BIGINT(20) NULL, sms_type BIGINT(20)
NOT NULL DEFAULT 2, \
 mclass BIGINT(20) NULL, mwi BIGINT(20) NULL, coding BIGINT(20) NULL, \
 compress BIGINT(20) NULL, validity BIGINT(20) NULL, deferred BIGINT(20) NULL, \
 dlr_mask BIGINT(20) NULL, dlr_url VARCHAR(255) NULL, pid BIGINT(20) NULL, \

because it edits definition of sent_sms table, but you need only
send_sms, because records inserted there (which is a 2nd edit -
#define SQLBOX_MYSQL_CREATE_INSERT_TABLE ...)

2013/9/17 Stipe Tolj st...@kannel.org:
 Am 17.09.2013 18:56, schrieb Rene Kluwen:

 Agreed with Stipe here.
 If the users enters a different value for sms_type, it is their
 responsibility.

 What is covered here, is an accidental wrong value for sms_type, because
 nowhere is documented that sms_type should be set to MT (value '2')
 because
 otherwise Kannel will panic.

 Attached is a simple solution that will benefit everyone. Which is ready
 to
 be committed.


 +1 from me. What about the direction implication? Is this table only for the
 MT direction?

 For an MO table we may have an other value for sms_type here.

 Stipe

 --
 ---
 Kölner Landstrasse 419
 40589 Düsseldorf, NRW, Germany

 tolj.org system architecture  Kannel Software Foundation (KSF)
 http://www.tolj.org/  http://www.kannel.org/

 mailto:st_{at}_tolj.org   mailto:stolj_{at}_kannel.org
 ---




Re: [PATCH] No PANIC on failing store_load()

2013-09-17 Thread spameden
2013/9/18 spameden spame...@gmail.com:
 I think first edit @ 20th line is not needed.

 @@ -7,7 +7,7 @@
  momt ENUM('MO', 'MT', 'DLR') NULL, sender VARCHAR(20) NULL, \
  receiver VARCHAR(20) NULL, udhdata BLOB NULL, msgdata TEXT NULL, \
  time BIGINT(20) NULL, smsc_id VARCHAR(255) NULL, service VARCHAR(255) NULL, \
 -account VARCHAR(255) NULL, id BIGINT(20) NULL, sms_type BIGINT(20) NULL, \
 +account VARCHAR(255) NULL, id BIGINT(20) NULL, sms_type BIGINT(20)
 NOT NULL DEFAULT 2, \
  mclass BIGINT(20) NULL, mwi BIGINT(20) NULL, coding BIGINT(20) NULL, \
  compress BIGINT(20) NULL, validity BIGINT(20) NULL, deferred BIGINT(20) 
 NULL, \
  dlr_mask BIGINT(20) NULL, dlr_url VARCHAR(255) NULL, pid BIGINT(20) NULL, \

 because it edits definition of sent_sms table, but you need only
 send_sms, because records inserted there (which is a 2nd edit -
 #define SQLBOX_MYSQL_CREATE_INSERT_TABLE ...)

I'm sorry in first sentence I've said first edit @ 20 is not needed,
but actually I meant first edit @ 7th line.

So the correct patch would look like (for only send_sms table):

--- sqlbox_mysql.h2013-09-18 00:01:37.0 +0400
+++ sqlbox_mysql.h.edit2013-09-18 00:02:30.0 +0400
@@ -20,7 +20,7 @@
 momt ENUM('MO', 'MT') NULL, sender VARCHAR(20) NULL, \
 receiver VARCHAR(20) NULL, udhdata BLOB NULL, msgdata TEXT NULL, \
 time BIGINT(20) NULL, smsc_id VARCHAR(255) NULL, service VARCHAR(255) NULL, \
-account VARCHAR(255) NULL, id BIGINT(20) NULL, sms_type BIGINT(20) NULL, \
+account VARCHAR(255) NULL, id BIGINT(20) NULL, sms_type BIGINT(20)
NULL DEFAULT 2, \
 mclass BIGINT(20) NULL, mwi BIGINT(20) NULL, coding BIGINT(20) NULL, \
 compress BIGINT(20) NULL, validity BIGINT(20) NULL, deferred BIGINT(20) NULL, \
 dlr_mask BIGINT(20) NULL, dlr_url VARCHAR(255) NULL, pid BIGINT(20) NULL, \



 2013/9/17 Stipe Tolj st...@kannel.org:
 Am 17.09.2013 18:56, schrieb Rene Kluwen:

 Agreed with Stipe here.
 If the users enters a different value for sms_type, it is their
 responsibility.

 What is covered here, is an accidental wrong value for sms_type, because
 nowhere is documented that sms_type should be set to MT (value '2')
 because
 otherwise Kannel will panic.

 Attached is a simple solution that will benefit everyone. Which is ready
 to
 be committed.


 +1 from me. What about the direction implication? Is this table only for the
 MT direction?

 For an MO table we may have an other value for sms_type here.

 Stipe

 --
 ---
 Kölner Landstrasse 419
 40589 Düsseldorf, NRW, Germany

 tolj.org system architecture  Kannel Software Foundation (KSF)
 http://www.tolj.org/  http://www.kannel.org/

 mailto:st_{at}_tolj.org   mailto:stolj_{at}_kannel.org
 ---




Re: [PATCH] No PANIC on failing store_load()

2013-09-16 Thread spameden
+1 for this patch!

I remember struggling with sqlbox without injecting proper sms_type =
2 and after restart kannel was crashing.

I had to manually clean specific message out of spool.



2013/9/16 Porter, Kelvin kelvin.por...@h3net.com:
 Hi,

 This sounds like a good change.  This principle should be applied, in general.

 Regards,

 Kelvin R. Porter

 -Original Message-
 From: devel [mailto:devel-boun...@kannel.org] On Behalf Of Stipe Tolj
 Sent: Monday, September 16, 2013 10:59 AM
 To: devel@kannel.org
 Subject: [PATCH] No PANIC on failing store_load()

 Hi list,

 attached is a very simple change in behavior in being more runtime
 constraining, in case a message in the spool has an invalid 'sms_type'
 we SHOULD NOT PANIC i.e. but rather dump an ERROR entry and try to continue.

 Otherwise we may enter an infinite PANIC/restart loop for cases that such 
 messages get somehow injected to the spool.

 If no objections, will be committing soon.

 Stipe

 --
 ---
 Kölner Landstrasse 419
 40589 Düsseldorf, NRW, Germany

 tolj.org system architecture  Kannel Software Foundation (KSF)
 http://www.tolj.org/  http://www.kannel.org/

 mailto:st_{at}_tolj.org   mailto:stolj_{at}_kannel.org
 ---




Re: setting esm-class

2013-08-13 Thread spameden
smsc_smpp.c is located in trunk/gw/smsc/smsc_smpp.c.


2013/8/14 Eric Magutu emag...@gmail.com

 Hi,
 I am running the following version of kannel
Kannel bearerbox version `1.5.0'. Build `Dec 25 2010 11:25:25',
compiler `4.4.5'. System Linux, release 3.2.0-30-virtual, version
#48-Ubuntu SMP Fri Aug 24 17:34:24 UTC 2012, machine i686. Hostname
ip-10-248-101-18, IP 127.0.0.1. Libxml version 2.7.8. Using OpenSSL
0.9.8o 01 Jun 2010. Compiled with MySQL 5.1.49, using MySQL 5.1.70.
Using SQLite 3.7.3. Using native malloc.

 I have tried to set the esm-class in kannel.conf with no success. I keep
 getting the following error
 ERROR: Group 'smsc' may not contain field 'esm-class'

 My provider requires I set esm class to 0. I have read about patching the
 smsc_smpp.c on line: pdu-u.submit_sm.esm_class =
 ESM_CLASS_SUBMIT_STORE_AND_
 FORWARD_MODE
 to pdu-u.submit_sm.esm_class = ESM_CLASS_SUBMIT_DEFAULT_SMSC_MODE

 but I am unable to locate the file. The post is old so maybe the file name
 has changed. Can someone tell me where I can locate it please.


 --
 Regards,
 Eric Magutu



Re: Proposal for Real-time Routing in opensmppbox and bearerbox

2013-07-24 Thread spameden
Hi.


2013/7/24 Porter, Kelvin kelvin.por...@h3net.com

 Hi,

 ** **

 Using HTTP RPCs to access the functionality would actually be more work in
 implementation on both the client (kannel) side and the server
 (application) side.  For our application, the routing criteria (for say a
 number) will change once and then remain constant for quite some time.
 This is perfect for a database (possibly including caching).

About caching: you can implement simple one-time load from the database
on the start and reload configuration on some trigger, maybe add URL to do
so, let's say http://localhost:13000/reload-routes.

so if you change rules in the database you hit the url and you're done!


 

 ** **

 I think that the billing side is addressed brilliantly with the sqlbox
 functionality.  At least, it works perfectly for our applications.

Indeed. We're using patched sqlbox with bearerbox only too, deleting DLRs
and updating MT records with all needed info.

 

 ** **

 Regards,

 ** **

 Kelvin R. Porter

 ** **

 *From:* Rinor Hoxha [mailto:rinorho...@gmail.com]
 *Sent:* Tuesday, July 23, 2013 5:33 PM

 *To:* Porter, Kelvin
 *Cc:* devel@kannel.org; us...@kannel.org
 *Subject:* Re: Proposal for Real-time Routing in opensmppbox and bearerbox
 

 ** **

 How about using (implementing or adapting) HTTP-based callbacks.

 So you could implement routing, billing or whatever you may need based on
 callback responses.

 Br, Rinor


I think it would be additional overhead in this case, I'm more into
database / memcached idea.

Same thing with calling smsbox HTTP url each time sms comes in instead of
just updating info in the db directly.

Very often there is separate server for sending purposes, so its not really
convinient to have multiple HTTP-callbacks.

Also if you're doing HTTP callback on WAN network I consider it being
insecure, it should be HTTPS at least, no problem tho if its done over VPN
/ trusted LAN network.




 On 07/22/2013 10:45 PM, Porter, Kelvin wrote:

 *Hi,*

 * *

 *I have included a proposed enhancement for routing message based on
 database contents below.*

 * *

 *I am looking for feedback.*

 * *

 *Please share your thoughts as to whether this would be of interest.*

 * *

 *Thank you.*

 * *

 *Regards,*

 * *

 *Kelvin R. Porter*

 * *

  

 I would like to propose an enhancement to the source code to kannel
 bearerbox and opensmppbox.  The enhancement would supercede the existing
 configuration groups:

  

 “smsbox-route” in the bearerbox, and

 “smsc-route” in the oppensmppbox.

  

 The enhancement dynamically consults a database table/view to determine
 the mapping based on the sender, receiver and original connection (smsc or
 box).  The purpose of this enhancement is to allow dynamically changing the
 message routing without requiring a change to the configuration file(s) and
 then the subsequent restart of the opensmppbox and/or bearerbox.

  

 The enhancement works by taking advantage of the database access
 functionality currently used for storing DLRs in a database.

  

 The DLR code currently supports the following databases: “mysql”,
 “oracle”, “pgsql”, “mssql”, and “sdb” (where  SDB is the simplified DB
 interface).  The “internal” option refers to storing DLRs in memory and
 would not apply to this enhancement.  I can write the code for these
 databases, but may require some assistance from the kannel community in
 testing them.

  

 The enhancement adds two new table parameters to the group “dlr-db”:

  

 “table-smsc” specifies the name of the table/view mapping a message to a
 smsc-id, and

 “table-box” specifies the name of the table/view mapping a message to a
 (sms)box.

  

 The enhancement is selectively enabled by configuring the parameters above.
 

  

 The following existing fields parameters of the group “dlr-db” are re-used:
 

  

 “field-source” specifies the name of the field that matches the sender of
 a message, and

 “field-destination” specifies the name of the field that matches the
 receiver of a message, and

 “field-smsc” specifies the name of the field that matches the smsc, and***
 *

 “field-boxc-id” specifies the name of the field that matches the name of
 the box.

  

 The following are two routines added to the dlr.h interface:

  

 /** Given message, then map to smsc id. */

 Octstr * map_to_smsc(Msg *msg);

  

 /** Given message, then map to boxc-id. */

 Ocstr *map_to_box(Msg *msg);

  

 If these methods return a (non-NULL) result, then they supercede the
 configuration-based routing.  If the results are NULL, then the default
 configured routing can be applied.

  

 The queries for this the match look something like the following:

  

 **1.  **To determine the smsc…

 “SELECT field-smsc FROM 

Re: Proposal for Real-time Routing in opensmppbox and bearerbox

2013-07-23 Thread spameden
Hi!


2013/7/23 Porter, Kelvin kelvin.por...@h3net.com

 Hi,

 ** **

 Responses below.

 ** **

 Regards,

 ** **

 Kelvin R. Porter

 ** **

 *From:* spameden [mailto:spame...@gmail.com]
 *Sent:* Monday, July 22, 2013 6:23 PM

 *To:* Porter, Kelvin
 *Cc:* devel@kannel.org; us...@kannel.org
 *Subject:* Re: Proposal for Real-time Routing in opensmppbox and bearerbox
 

 ** **

 ** **

 ** **

 2013/7/23 Porter, Kelvin kelvin.por...@h3net.com

 Hi,

  

 In the straightforward implementation, the load on the database would be 1
 query per message sent (MT) and 1 query per message received (MO)
 (excluding situations where loopback occurred). 

  

 A caching component could be added separately afterwards. The trade-offs
 would involve added code complexity, and the increasing latency in having
 database changes affect message routing.

  

 Different applications (e.g., A2P vs. P2P) might or might not see much
 benefit depending on how long the caching interval is, the rate of
 back-and-forth conversation, and the size of the cache.

  

 I am not familiar with all aspects of the code base, is there a caching
 mechanism that can be reused?

 ** **

 I think there is no caching mechanism at all and grace reload is not
 implemented yet. Stipe was posting a patch earlier giving kannel the
 ability to gracefully reload it's configuration, but I think it's still
 bugy and needs to be cleaned up before accepted in the codebase.

 [KRP] That would be great.  Is it for both opensmppbox and bearerbox?  How
 would you trigger the reload on opensmppbox?


Bearerbox only. Here is a patch - http://pastebin.com/v4rSRHrJ (I hope
Stipe wouldnt mind posting it).

 

 The problem getting configuration from SQL is 1 more query per MT, if you
 have busy site with huge traffic (100-200 MT /sec) it could affect on your
 database, so caching definitely needed somehow. Alternatively you can look
 into storing configuration into memcached.

 [KRP] 100 – 200 T/sec does not seem that like that many transactions for
 one of our servers.


Well, in this case you get 100-200 additional queries, it was just an
example and rly depends on your database workload.

 

 [KRP] I can definitely look into a caching component as a subsequent
 enhancement.



 The route mechanism you're wanting can be implemented without database as
 well using add-smsc / remove-smsc commands for example. I'm using myself
 this 2 hooks for failsafe configuration (when 1 of the smsc goes down, I
 change with sed 'allowed-smsc-id' directive and re-add via remove-smsc,
 add-smsc commands specific smsc - everything done automatically via monit
 with additional scripts).

 [KRP] Unfortunately, that will not address my needs.  I need to be able to
 add and remove numbers dynamically and affect their routing accordingly. *
 ***

 I even heard someone implemented whole kannel configuration in the
 database, if you could make it - it would be awesome, because it would be
 MUCH easier to code web interface for kannel to configure it more easily.*
 ***

 [KRP] Well, you could not implement the entire configuration in a
 database, because the process needs configuration information to find the
 database.

True, ofc, you need to provide connection settings as in everywhere.

 Also, currently, the configuration is read in once at start up time.  The
 code would need to be changed to consult the database or keep in sync with
 it dynamically.  I am proposing an enhancement that would dynamically
 consult the database (when configured to do so).  Migrating the code to
 dynamic configuration would be useful, I believe; however, moving some or
 all of the code in this direction would be a significant undertaking.

I'm not against your proposal, just thinking about potential problems you
might get .. The best plan is to make different engines, i.e. MySQL /
PostgreSQL / Oracle / etc.

Only dynamic variables like smsbox-route and various smsc settings should
be kept into the database to operate them on the fly I think.. Other data
like DLR / bearerbox core settings can be static in the configuration I
think.

Anyways, I'm waiting for your version of the patched opensmppbox /
bearerbox to test out! :)

 I think that if caching is added that it should be configurable as to size
 and duration.

  

 Regards,

  

 Kelvin R. Porter

  

 *From:* spameden [mailto:spame...@gmail.com spame...@gmail.com]
 *Sent:* Monday, July 22, 2013 3:55 PM
 *To:* Porter, Kelvin
 *Cc:* devel@kannel.org; us...@kannel.org
 *Subject:* Re: Proposal for Real-time Routing in opensmppbox and bearerbox
 

  

 Interesting idea, but what about load on the database? Will it be cached
 or it's gonna get results from the database everytime SMS arrives?

  

 2013/7/23 Porter, Kelvin kelvin.por...@h3net.com

 *Hi,*

 * *

 *I have included a proposed enhancement for routing message

Re: opensmppbox: thread terminates when another smpp client (kannel) terminates

2013-07-18 Thread spameden
I think it was a bug in OpenSMPPBox, try updating to the latest SVN version.


2013/7/18 Qqblog Qqblog qqb...@ymail.com

 i have the following config:

 kannel (smpp client) - opensmppbox - kannel - 3rd party smpp server

 when i quit (unbind) the bearerbox of smpp client (kannel), the
 opensmppbox will terminate. why?

 2013-07-18 17:49:38 [27504] [4] DEBUG: SMPP[kannel]: Got PDU:
 2013-07-18 17:49:38 [27504] [4] DEBUG: SMPP PDU 0x1a75aa0 dump:
 2013-07-18 17:49:38 [27504] [4] DEBUG:   type_name: unbind
 2013-07-18 17:49:38 [27504] [4] DEBUG:   command_id: 6 = 0x0006
 2013-07-18 17:49:38 [27504] [4] DEBUG:   command_status: 0 = 0x
 2013-07-18 17:49:38 [27504] [4] DEBUG:   sequence_number: 17 = 0x0011
 2013-07-18 17:49:38 [27504] [4] DEBUG: SMPP PDU dump ends.
 2013-07-18 17:49:38 [27504] [4] DEBUG: SMPP[kannel]: Sending PDU:
 2013-07-18 17:49:38 [27504] [4] DEBUG: SMPP PDU 0x1a79290 dump:
 2013-07-18 17:49:38 [27504] [4] DEBUG:   type_name: unbind_resp
 2013-07-18 17:49:38 [27504] [4] DEBUG:   command_id: 2147483654 =
 0x8006
 2013-07-18 17:49:38 [27504] [4] DEBUG:   command_status: 0 = 0x
 2013-07-18 17:49:38 [27504] [4] DEBUG:   sequence_number: 17 = 0x0011
 2013-07-18 17:49:38 [27504] [4] DEBUG: SMPP PDU dump ends.
 2013-07-18 17:49:38 [27504] [4] ERROR: opensmppbox: smpp_to_bearerbox:
 thread terminates
 2013-07-18 17:49:38 [27504] [4] DEBUG: Thread 4
 (opensmppbox.c:smpp_to_bearerbox) terminates.
 2013-07-18 17:49:38 [27504] [3] ERROR: opensmppbox: bearerbox_to_smpp:
 thread terminates
 2013-07-18 17:49:38 [27504] [3] DEBUG: Thread 3 (opensmppbox.c:function)
 terminates.
 2013-07-18 17:49:38 [27504] [1] ERROR: opensmppbox: bearerbox_to_smpp:
 thread terminates
 2013-07-18 17:49:39 [27504] [0] INFO: No more waiting for SMPP connections.
 2013-07-18 17:49:39 [27504] [0] DEBUG: Thread 1 (opensmppbox.c:function)
 still running
 2013-07-18 17:49:39 [27504] [0] DEBUG: Thread 2
 (opensmppbox.c:smpp_to_bearerbox) still running
 2013-07-18 17:49:39 [27504] [0] DEBUG: Immutable octet strings: 104.





Re: opensmppbox: error compiling latest version

2013-07-18 Thread spameden
Forgot to include list. Answer is below

And your question related to users rather than devel list.


2013/7/18 spameden spame...@gmail.com

 hi, it's not an official source code for opensmppbox

 check here https://svn.kannel.org/opensmppbox/


 2013/7/18 Qqblog Qqblog qqb...@ymail.com

 i downloaded the latest version from
 https://github.com/pruiz/kannel-opensmppbox

 server: debian 7.1.0

 ./configure
 make

 make  all-recursive
 make[1]: Entering directory `/root/kannel-opensmppbox-master'
 Making all in gw
 make[2]: Entering directory `/root/kannel-opensmppbox-master/gw'
 /bin/bash ../libtool --tag=CC --mode=link gcc  -g -O2 -D_XOPEN_SOURCE=600
 -D_BSD_SOURCE -I/usr/local/include/kannel -g -O2 -D_XOPEN_SOURCE=600
 -D_BSD_SOURCE -D_LARGE_FILES= -I/usr/include/libxml2 -I/usr/include/mysql
 -rdynamic -o opensmppbox  box-dlr.o opensmppbox.o  -L/usr/local/lib/kannel
 -lgw -lwap -lgwlib -lmysqlclient_r -lrt -lresolv -lnsl -lm  -lpthread
 -L/usr/lib -lxml2 -L/usr/lib/x86_64-linux-gnu -lmysqlclient_r -lpthread -lz
 -lm -lrt -ldl
 gcc -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -I/usr/local/include/kannel
 -g -O2 -D_XOPEN_SOURCE=600 -D_BSD_SOURCE -D_LARGE_FILES=
 -I/usr/include/libxml2 -I/usr/include/mysql -rdynamic -o opensmppbox
 box-dlr.o opensmppbox.o  -L/usr/local/lib/kannel -lgw -lwap -lgwlib
 -lresolv -lnsl -L/usr/lib -lxml2 -L/usr/lib/x86_64-linux-gnu
 -lmysqlclient_r -lpthread -lz -lm -lrt -ldl
 /usr/bin/ld: cannot find -lgw
 /usr/bin/ld: cannot find -lwap
 /usr/bin/ld: cannot find -lgwlib
 collect2: error: ld returned 1 exit status
 make[2]: *** [opensmppbox] Error 1
 make[2]: Leaving directory `/root/kannel-opensmppbox-master/gw'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/root/kannel-opensmppbox-master'
 make: *** [all] Error 2

 pls advise.





Re: Multi record sending patch

2013-07-18 Thread spameden
+1 for this patch to be included!

the only thing is sqlbox deletes record from the database before its sent
to the bearerbox, so if sqlbox crashes at this point some messages could be
lost.


2013/7/18 Rene Kluwen rene.klu...@chimit.nl

 Hello Alejandro,

 ** **

 I found this patch and I consider it useful enough to include in sqlbox
 trunk.

 Is this the latest version? And is it tested well?

 ** **

 Maybe you have a diff against current trunk.

 ** **

 == Rene

 ** **



Re: Multi record sending patch

2013-07-18 Thread spameden
I will wait for your revised patch!

currently I'm using Alejandro's patch but on outdated r4968 kannel/sqlbox.


2013/7/18 Rene Kluwen rene.klu...@chimit.nl

 I could come up with a re-patch. Where the sqlbox_id’s are returned in a
 separate list.

 This way, performance can even be boosted by using only 1 delete
 statement: DELETE FROM send_sms_table WHERE sqlbox_id in (id1, id2, id3,
 etc….)

 ** **

 What do you think?

 ** **

 == Rene

 ** **

 *From:* spameden [mailto:spame...@gmail.com]
 *Sent:* donderdag 18 juli 2013 17:24
 *To:* Rene Kluwen
 *Cc:* Alejandro Guerrieri; kannel_dev_mailinglist devel@kannel.org
 *Subject:* Re: Multi record sending patch

 ** **

 +1 for this patch to be included!

 the only thing is sqlbox deletes record from the database before its sent
 to the bearerbox, so if sqlbox crashes at this point some messages could be
 lost.

 ** **

 2013/7/18 Rene Kluwen rene.klu...@chimit.nl

 Hello Alejandro,

  

 I found this patch and I consider it useful enough to include in sqlbox
 trunk.

 Is this the latest version? And is it tested well?

  

 Maybe you have a diff against current trunk.

  

 == Rene

  

 ** **



Re: Multi record sending patch

2013-07-18 Thread spameden
2013/7/18 Rene Kluwen rene.klu...@chimit.nl

 Also gw_sql_save_msg could then be adapted to a multi-record insert.

 Which also gives a big performance boost on a large number of messages.***
 *

 This is getting interesting.

 ** **

 Spameden: Do you have any insights about how Alejandro’s current patch
 compares to an unpatched sqlbox in terms of performance?


I don't have exact numbers, but I've been using sqlbox with Alejandro's
patch with limit-per-cycle = 50 for quite a while and never had problems
with MySQL bottlenecks.

I'd say If you have more than 10k messages in a queue and have a busy MySQL
installation (i.e. have simultaneous about 100 users on your website) it
would definitely give you a boost.

Althrough I'm also deleting old messages from sent_sms table and
OPTIMIZE'ing it from time to time but still ..


 

 ** **

 == Rene

 ** **

 ** **

 *From:* spameden [mailto:spame...@gmail.com]
 *Sent:* donderdag 18 juli 2013 17:57

 *To:* Rene Kluwen
 *Cc:* Alejandro Guerrieri; kannel_dev_mailinglist devel@kannel.org
 *Subject:* Re: Multi record sending patch

 ** **

 I will wait for your revised patch!

 currently I'm using Alejandro's patch but on outdated r4968 kannel/sqlbox.
 

 ** **

 2013/7/18 Rene Kluwen rene.klu...@chimit.nl

 I could come up with a re-patch. Where the sqlbox_id’s are returned in a
 separate list.

 This way, performance can even be boosted by using only 1 delete
 statement: DELETE FROM send_sms_table WHERE sqlbox_id in (id1, id2, id3,
 etc….)

  

 What do you think?

  

 == Rene

  

 *From:* spameden [mailto:spame...@gmail.com]
 *Sent:* donderdag 18 juli 2013 17:24
 *To:* Rene Kluwen
 *Cc:* Alejandro Guerrieri; kannel_dev_mailinglist devel@kannel.org
 *Subject:* Re: Multi record sending patch

  

 +1 for this patch to be included!

 the only thing is sqlbox deletes record from the database before its sent
 to the bearerbox, so if sqlbox crashes at this point some messages could be
 lost.

  

 2013/7/18 Rene Kluwen rene.klu...@chimit.nl

 Hello Alejandro,

  

 I found this patch and I consider it useful enough to include in sqlbox
 trunk.

 Is this the latest version? And is it tested well?

  

 Maybe you have a diff against current trunk.

  

 == Rene

  

  

 ** **



Re: Add receiver based smsc-route to opensmppbox

2013-07-08 Thread spameden
Maybe you could just attach whole patch as a .diff?

Would be handy for developers :)

Thanks


2013/7/8 Porter, Kelvin kelvin.por...@h3net.com

 Hi,

 Included below is the diff with the documentation update.

 Please let me know if you have any questions or comments.

 Regards,

 Kelvin R. Porter

 Index: doc/userguide.xml
 ===
 --- doc/userguide.xml   (revision 72)
 +++ doc/userguide.xml   (working copy)
 @@ -954,6 +954,18 @@
 originating from the smsbox A, B or C will
 be assigned a smsc id mysmsc.
 /para

 +   paraYet another example:
 +
 +   programlisting
 +group = smsc-route
 +smsc-id = mysmsc
 +receiver-shortcode = +1888777;+1888777;+1888666
 +   /programlisting
 +
 +   Which means all outbound messages with
 receiver number +1888777, +1888777, +1888666
 +   will be assigned a smsc id mysmsc.
 +   /para
 +
 para
 If none of the rules have been defined or
 none match the criteria, the
 default smsc route defined in
 route-to-smsc configuration variable
 @@ -1024,6 +1036,21 @@
  smsboxes are matched against the shortcode list.
/entry
  /row
 +row
 +  entry
 +literalreceiver-shortcode (o)/literal
 +  /entry
 +  entry
 +literalnumber-list/literal
 +  /entry
 +  entry valign=bottom
 +If set, specifies which receiver numbers for outbound
 +messages should be routed to this smsc. List contains
 +numbers separated by semicolon (;).
 +This option takes higher precedence than smsbox-id and
 +shortcode; it supercedes these options.
 +  /entry
 +/row
/tbody
  /tgroup
  /table
 Index: gw/opensmppbox-cfg.def
 ===
 --- gw/opensmppbox-cfg.def  (revision 72)
 +++ gw/opensmppbox-cfg.def  (working copy)
 @@ -86,4 +86,5 @@
 OCTSTR(smsc-id)
 OCTSTR(smsbox-id)
 OCTSTR(shortcode)
 +   OCTSTR(receiver-shortcode)
  )
 Index: gw/opensmppbox.c
 ===
 --- gw/opensmppbox.c(revision 72)
 +++ gw/opensmppbox.c(working copy)
 @@ -116,6 +116,7 @@
  static long smpp_dest_addr_ton = -1;
  static long smpp_dest_addr_npi = -1;

 +static Dict *smsc_by_receiver = NULL;
  static Dict *smsc_by_smsbox_id = NULL;
  static Dict *smsc_by_sender = NULL;
  static Dict *smsc_by_sender_smsbox_id = NULL;
 @@ -1784,10 +1785,17 @@
 if (msg-sms.smsc_id != NULL)
 return msg-sms.smsc_id;

 -   os = octstr_format(%s:%s, octstr_get_cstr(msg-sms.sender),
 -   octstr_get_cstr(box-boxc_id));
 +char *receiver =  octstr_get_cstr(msg-sms.receiver);
 +if ( (receiver)  (strlen(receiver)  0) ) {
 +smsc_id = dict_get(smsc_by_receiver, msg-sms.receiver);
 +   os = octstr_format(receiver:%s, receiver);
 +};

 -   smsc_id = dict_get(smsc_by_sender_smsbox_id, os);
 +   if (!smsc_id) {
 +   os = octstr_format(%s:%s,
 octstr_get_cstr(msg-sms.sender),
 +   octstr_get_cstr(box-boxc_id));
 +   smsc_id = dict_get(smsc_by_sender_smsbox_id, os);
 +};
 if (!smsc_id)
 smsc_id = dict_get(smsc_by_sender, msg-sms.sender);
 if (!smsc_id)
 @@ -2251,14 +2259,15 @@
  {
  CfgGroup *grp;
  List *list, *items;
 -Octstr *smsc_id, *boxc_ids, *shortcodes;
 +Octstr *smsc_id, *boxc_ids, *shortcodes, *receiver_shortcodes;
  int i, j;

 +smsc_by_receiver = dict_create(1000, (void(*)(void *))
 octstr_destroy);
  smsc_by_smsbox_id = dict_create(30, (void(*)(void *)) octstr_destroy);
  smsc_by_sender = dict_create(50, (void(*)(void *)) octstr_destroy);
  smsc_by_sender_smsbox_id = dict_create(50, (void(*)(void *))
 octstr_destroy);

 -smsc_id = boxc_ids = shortcodes = NULL;
 +smsc_id = boxc_ids = shortcodes = receiver_shortcodes = NULL;
  list = items = NULL;

  list = cfg_get_multi_group(cfg, octstr_imm(smsc-route));
 @@ -2281,7 +2290,26 @@
   */
  boxc_ids = cfg_get(grp, octstr_imm(smsbox-id));
  shortcodes = cfg_get(grp, octstr_imm(shortcode));
 +receiver_shortcodes = cfg_get(grp,
 octstr_imm(receiver-shortcode));

 +/* Consider the receiver options: receiver-shortcode. */
 +{
 +/* receiver-shortcode applies to all MTs from all smscs */
 +items = octstr_split(receiver_shortcodes, 

Re: Timeframes for SMS + Profanity filter

2013-06-18 Thread spameden
http://stackoverflow.com/questions/8458566/implementing-priority-queue-in-kannel

similarly you can add WHERE time=UNIX_TIMESTAMP(NOW) in sqlbox_mysql.h
file.


2013/6/18 Teodor Arteni teodor.art...@nobelglobe.com

 Hi guys,

 Alvaro/Rene Thanks a lot for your feedbacks!

  There has been a simple patch for SQLBox that does this on the
 mailinglist
 a few times earlier

 @Rene: Could you please give me a hint/link.


  Kannel does not have any of the mentioned features. You should do it by
 yourself either in an external application or inside kannel.

 I'm JAVA developer and unfortunately don't have any experience with C, so
 implementing it inside Kannel is not an option for me.
 Could you please let me know what's the best way to intercept all incoming
 traffic from an external app apply some filters(or any other logic) and
 forward it back to the normal flow? I need some inside info to understand
 how it works, I don't know from where to start :)

 Thanks in advance!
 Regards,
 Teodor.


 -Original Message-
 From: Rene Kluwen [mailto:rene.klu...@chimit.nl]
 Sent: Monday, June 17, 2013 10:21 PM
 To: 'Alvaro Cornejo'; 'Teodor Arteni'
 Cc: us...@kannel.org
 Subject: RE: Timeframes for SMS + Profanity filter

 There has been a simple patch for SQLBox that does this on the mailinglist
 a
 few times earlier (scheduled messages).

 -Original Message-
 From: users [mailto:users-boun...@kannel.org] On Behalf Of Alvaro Cornejo
 Sent: maandag 17 juni 2013 17:53
 To: Teodor Arteni
 Cc: us...@kannel.org
 Subject: Re: Timeframes for SMS + Profanity filter

 Hi

 Kannel does not have any of the mentioned features. You should do it by
 yourself either in an external application or inside kannel.

 Regards

 Alvaro

 On 6/17/13, Teodor Arteni teodor.art...@nobelglobe.com wrote:
  Hi guys,
 
 
 
  I have 2 questions: is these any support in Kannel for:
 
 
 
  1. Establishing timeframes for SMS to be sent? I'd like to schedule
  one SMS to be send after 1 week.
 
  2. Profanity filter for SMS? I'd like to define some dirty words and
  make sure non of SMS are sent if they contain any DW.
 
 
 
  I'm sure it's possible to implement this outside Kannel but I think
  re-inventing the wheel is not always the best option.
 
 
 
  Thank you,
 
  Teodor.
 
 
 
 


 --

 |---
 --|
 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.NET www.smsglobal.com.mx y
 www.pravcom.com








Re: Timeframes for SMS + Profanity filter

2013-06-18 Thread spameden
no

if you add an index on time there would be absolutely no problems.


2013/6/18 Willy Mularto sangpr...@gmail.com

 IMHO During high traffic/queue this approach will cause high load
 situation on SQLBox



 Willy Mularto
 sangpr...@gmail.com

 On Jun 18, 2013, at 2:39 PM, spameden spame...@gmail.com wrote:


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

 similarly you can add WHERE time=UNIX_TIMESTAMP(NOW) in sqlbox_mysql.h
 file.


 2013/6/18 Teodor Arteni teodor.art...@nobelglobe.com

 Hi guys,

 Alvaro/Rene Thanks a lot for your feedbacks!

  There has been a simple patch for SQLBox that does this on the
 mailinglist
 a few times earlier

 @Rene: Could you please give me a hint/link.


  Kannel does not have any of the mentioned features. You should do it by
 yourself either in an external application or inside kannel.

 I'm JAVA developer and unfortunately don't have any experience with C, so
 implementing it inside Kannel is not an option for me.
 Could you please let me know what's the best way to intercept all incoming
 traffic from an external app apply some filters(or any other logic) and
 forward it back to the normal flow? I need some inside info to understand
 how it works, I don't know from where to start :)

 Thanks in advance!
 Regards,
 Teodor.


 -Original Message-
 From: Rene Kluwen [mailto:rene.klu...@chimit.nl]
 Sent: Monday, June 17, 2013 10:21 PM
 To: 'Alvaro Cornejo'; 'Teodor Arteni'
 Cc: us...@kannel.org
 Subject: RE: Timeframes for SMS + Profanity filter

 There has been a simple patch for SQLBox that does this on the
 mailinglist a
 few times earlier (scheduled messages).

 -Original Message-
 From: users [mailto:users-boun...@kannel.org] On Behalf Of Alvaro Cornejo
 Sent: maandag 17 juni 2013 17:53
 To: Teodor Arteni
 Cc: us...@kannel.org
 Subject: Re: Timeframes for SMS + Profanity filter

 Hi

 Kannel does not have any of the mentioned features. You should do it by
 yourself either in an external application or inside kannel.

 Regards

 Alvaro

 On 6/17/13, Teodor Arteni teodor.art...@nobelglobe.com wrote:
  Hi guys,
 
 
 
  I have 2 questions: is these any support in Kannel for:
 
 
 
  1. Establishing timeframes for SMS to be sent? I'd like to schedule
  one SMS to be send after 1 week.
 
  2. Profanity filter for SMS? I'd like to define some dirty words and
  make sure non of SMS are sent if they contain any DW.
 
 
 
  I'm sure it's possible to implement this outside Kannel but I think
  re-inventing the wheel is not always the best option.
 
 
 
  Thank you,
 
  Teodor.
 
 
 
 


 --

 |---
 --|
 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.NET http://www.perusms.net/
 www.smsglobal.com.mx y
 www.pravcom.com










Re: Kannel 1.5 DLR - segmentation fault

2013-05-16 Thread spameden
1. Did you modify kannel source?
2. What's the revision from SVN are you using? Is it latest?


2013/5/16 Andreas Fink af...@list.fink.org

 there's two issues to solve here:
 a) why are you getting a DLR for a message you have sent but don't
 remember.
 b) why is it bailing out at this time because this should simply ignore
 the DLR in that case.


 for b) we need a backtrace, a PANIC log or something like that to find out
 what is creating the segfault (PANIC does it on purpose but the panic
 output is what we must be able to see). You should compile kannel with
 symbols on or run it in gdb and do a backtrace there.

 for a) this could be a config issue of all kinds or simply a bug but I
 guess it's the first. So how this is configured exactly has to be analyzed.

 Maybe you can share an example of the exact URL's as passed out and back
 into kannel.


 On 16.05.2013, at 13:04, Adam Pinter adam.pin...@dream.hu wrote:

  Hello everyone,
 
  I have a problem with the DLR on kannel 1.5
  The remote SMSC sending DLRs which are not found in our DLR table as you
 can see in attached logs.
  This causes segmentation fault end kills kannel.
 
  I've found a patch to solve this problem which trying to find the DLR in
 table for X times, but after X attempts the problem is same: DLR not found
 braerbox stops and segmentation fault
 
  Anyone can help me with it?
  Thanks
  Adam
 
  Logs:
 
  smsbox.log
  
  2013-05-16 11:03:34 [14915] [0] ERROR: connect to 127.0.0.1 failed
  2013-05-16 11:03:34 [14915] [0] ERROR: System error 111: Connection
 refused
  2013-05-16 11:03:34 [14915] [0] DEBUG: Connecting to 127.0.0.1
  2013-05-16 11:03:34 [14915] [0] ERROR: connect to 127.0.0.1 failed
  2013-05-16 11:03:34 [14915] [0] ERROR: System error 111: Connection
 refused
  2013-05-16 11:03:34 [14915] [0] ERROR: error connecting to server
 `localhost' at port `29005'
  2013-05-16 11:03:34 [14915] [0] PANIC: Couldn't connect to the bearerbox.
  2013-05-16 11:03:34 [14915] [0] PANIC:
 /usr/local/kannel15/sbin/smsbox(gw_backtrace+0xad) [0x808b44d]
  2013-05-16 11:03:34 [14915] [0] PANIC:
 /usr/local/kannel15/sbin/smsbox(gw_panic+0xe8) [0x808b548]
  2013-05-16 11:03:34 [14915] [0] PANIC:
 /usr/local/kannel15/sbin/smsbox(main+0x1040) [0x8055dd0]
  2013-05-16 11:03:34 [14915] [0] PANIC:
 /lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0) [0xb7112450]
  2013-05-16 11:03:34 [14915] [0] PANIC: /usr/local/kannel15/sbin/smsbox
 [0x8054531]
 
  kannel.log
  -
  2013-05-16 11:03:23 [14504] [8] DEBUG: boxc_receiver: sms received
  2013-05-16 11:03:23 [14504] [8] DEBUG: send_msg: sending msg to box:
 127.0.0.1
  2013-05-16 11:03:23 [14504] [8] DEBUG: boxc_receiver: sms received
  2013-05-16 11:03:23 [14504] [8] DEBUG: send_msg: sending msg to box:
 127.0.0.1
  2013-05-16 11:03:23 [14504] [8] DEBUG: boxc_receiver: sms received
  2013-05-16 11:03:23 [14504] [8] DEBUG: send_msg: sending msg to box:
 127.0.0.1
  2013-05-16 11:03:23 [14504] [6] PANIC:
 /usr/local/kannel15/sbin/bearerbox [0x80fc18d]
  2013-05-16 11:03:23 [14504] [6] PANIC: [0xb77c5440]
  2013-05-16 11:03:23 [14504] [6] PANIC:
 /usr/local/kannel15/sbin/bearerbox [0x80a338f]
  2013-05-16 11:03:23 [14504] [6] PANIC:
 /usr/local/kannel15/sbin/bearerbox [0x80a4156]
  2013-05-16 11:03:23 [14504] [6] PANIC:
 /usr/local/kannel15/sbin/bearerbox [0x80a523d]
  2013-05-16 11:03:23 [14504] [6] PANIC:
 /usr/local/kannel15/sbin/bearerbox [0x80e5edc]
  2013-05-16 11:03:23 [14504] [6] PANIC:
 /lib/tls/i686/cmov/libpthread.so.0 [0xb752a4fb]
 
  Smsc.log
  --
  2013-05-16 11:03:23 [14504] [6] DEBUG: DLR from SMSCremotesmsc for
 DST06301234567. Attempt 19 of 20.
  2013-05-16 11:03:23 [14504] [6] DEBUG: Sleeping for 1.000 seconds
  2013-05-16 11:03:23 [14504] [6] DEBUG: sql: SELECT `mask`, `service`,
 `url`, `source`, `destination`, `boxc` FROM `dlrtablename` WHERE `smsc`=?
 AND `ts`=? AND `destination` LIKE CONCAT('%', ?) LIMIT 1
  2013-05-16 11:03:23 [14504] [6] DEBUG: column=mask buffer_type=252
 max_length=0 length=65535
  2013-05-16 11:03:23 [14504] [6] DEBUG: column=service buffer_type=252
 max_length=0 length=65535
  2013-05-16 11:03:23 [14504] [6] DEBUG: column=url buffer_type=252
 max_length=0 length=65535
  2013-05-16 11:03:23 [14504] [6] DEBUG: column=source buffer_type=252
 max_length=0 length=65535
  2013-05-16 11:03:23 [14504] [6] DEBUG: column=destination
 buffer_type=252 max_length=0 length=65535
  2013-05-16 11:03:23 [14504] [6] DEBUG: column=boxc buffer_type=252
 max_length=0 length=65535
  2013-05-16 11:03:23 [14504] [6] DEBUG: DLR from SMSCremotesmsc for
 DST06301234567. Attempt 20 of 20.
  2013-05-16 11:03:23 [14504] [6] WARNING: DLR[mysql]: DLR from
 SMSCremotesmsc for DST06301234567 not found after 20 attempts.
  2013-05-16 11:03:44 [15036] [6] INFO: EMI2[remotesmsc]: connecting to
 Primary SMSC






500 error in redmine

2013-05-12 Thread spameden
https://redmine.kannel.org/issues/686


Re: [PATCH] Add start- stop- box/smsc, store-status functionality to debian init script

2013-03-12 Thread spameden
2013/3/12 Alexander Malysh amal...@kannel.org:
 Hi,

 patch not tested but the idea is good and I'm +1 to commit it.

 Any objections?

 Alex

 Am 12.03.2013 um 00:09 schrieb Konstantin Vayner pon...@gmx.net:

 This adds some new features to debian init script:

 1. Allow start/stop separate boxes via /etc/init.d/kannel {start|stop}-box 
 boxname

Nice idea, but needs better handling, I've looked into the patch it
seems does not support multiple configuration files (for example for
starting multiple smsbox'es or sqlbox'es, e.g.
/etc/kannel/sqlbox1.conf /etc/kannel/sqlbox2.conf, etc)

 2. Allow start/stop smsc by /etc/init.d/kannel {start|stop}-smsc smsc-id
 3. Allow querying store status via /etc/init.d/kannel store-status
 4. Actually, it also allows arbitrary http admin commands via 
 /etc/init.d/kannel http-admin command params , where params should be a 
 single-argument string, prepared to be passed via url (in form 
 param1=valueparam2=value)

Would be nice to require/chacking of lynx installation before giving
any of the opportunity to execute those commands.


 NB: startup/shutdown output format changed to multiple lines of output here 
 (because it uses start-box / stop-box internally, and each call like that 
 outputs a line)

The main problem with current init.d script it's not always working.

If there was a big queue on the restart bearerbox takes some time to
populate the memory with it, thus

sleep 1 is not enough anymore.

I'm using this solution on the start:

PORTCONF=$(grep '^smsbox-port' ${CONF}|awk {'print $3'})
while [ -z $(netstat -nl|grep :${PORTCONF}.*LISTEN) ]; do sleep 1; done

and on stop:

while [ ! -z $(netstat -nl|grep :${PORTCONF}.*LISTEN) ]; do sleep 1; done


My version also handles multiple sqlbox.conf files depending on the
values in the /etc/default/kannel file for debian.

So if you don't want to start specific service (e.g. OpenSMPPBox, you
just change value from 1 to 0 for START_SMPPBOX in the
/etc/default/kannel).

I've attached my init.d script and default file for understanding.

 Attached.

 Regards,
Konstantin
 debian_kannel_init.patch




kannel.init.d.debian.sh
Description: Bourne shell script


default.kannel
Description: Binary data


Re: Problem with kannel

2013-02-17 Thread spameden
   Change the esm_class parameter sent from Kannel.

   Accepted values are 0 (Default SMSC Mode) and 3 (Store and Forward).

   Defaults to 3.

so you can use esm_class parameter to set ESM class, thanks to Alan!

2013/2/18 Alan McNatty a...@catalyst.net.nz:
 Hi Rene,

 That's incorrect ..

 r4926 | amalysh | 2011-09-15 08:07:10 +1200 (Thu, 15 Sep 2011) | 3 lines

 *  doc/userguide/userguide.xml, gw/smsc/smsc_smpp.c, gwlib/cfg.def:
 applied
patch that allows setting of esm_class in SMPP module.
Thanks to Alan McNatty alan at catalyst.net.nz for the patch.

 Please check the user-guide.

 Cheers,
 Alan


 On Sat, 2013-02-16 at 11:51 +0100, Rene Kluwen wrote:
 You cannot change esm class by configuration.

 It’s hard coded.

 For data-coding, see the alt-dcs field.



 From: devel-boun...@kannel.org [mailto:devel-boun...@kannel.org] On
 Behalf Of orlis moreta
 Sent: zaterdag 2 februari 2013 1:02
 To: Willy Mularto
 Cc: kannel_dev_mailinglist devel@kannel. org
 Subject: Re: Problem with kannel




 Thanks for help





 I have an other question, i need to set Data Coding = 0x00 (SMSC
 default Alphabet) and esm_class = 0 (Default)





 Is it possible to do that in conf file?








  SMPP PDU 0x97b5670 dump:


 2013-02-01 19:17:42 [6011] [6] DEBUG:   type_name: submit_sm


 2013-02-01 19:17:42 [6011] [6] DEBUG:   command_id: 4 = 0x0004


 2013-02-01 19:17:42 [6011] [6] DEBUG:   command_status: 0 = 0x


 2013-02-01 19:17:42 [6011] [6] DEBUG:   sequence_number: 3 =
 0x0003


 2013-02-01 19:17:42 [6011] [6] DEBUG:   service_type: NULL


 2013-02-01 19:17:42 [6011] [6] DEBUG:   source_addr_ton: 1 =
 0x0001


 2013-02-01 19:17:42 [6011] [6] DEBUG:   source_addr_npi: 1 =
 0x0001


 2013-02-01 19:17:42 [6011] [6] DEBUG:   source_addr: 18299620518


 2013-02-01 19:17:42 [6011] [6] DEBUG:   dest_addr_ton: 1 = 0x0001


 2013-02-01 19:17:42 [6011] [6] DEBUG:   dest_addr_npi: 1 = 0x0001


 2013-02-01 19:17:43 [6011] [6] DEBUG:   destination_addr:
 18299622439


 2013-02-01 19:17:43 [6011] [6] DEBUG:   esm_class: 3 =
 0x0003---


 2013-02-01 19:17:43 [6011] [6] DEBUG:   protocol_id: 0 = 0x


 2013-02-01 19:17:43 [6011] [6] DEBUG:   priority_flag: 0 = 0x


 2013-02-01 19:17:43 [6011] [6] DEBUG:   schedule_delivery_time: NULL


 2013-02-01 19:17:43 [6011] [6] DEBUG:   validity_period: NULL


 2013-02-01 19:17:43 [6011] [6] DEBUG:   registered_delivery: 1 =
 0x0001


 2013-02-01 19:17:43 [6011] [6] DEBUG:   replace_if_present_flag: 0 =
 0x


 2013-02-01 19:17:43 [6011] [6] DEBUG:   data_coding: 241 = 0x00f1
  ---


 2013-02-01 19:17:43 [6011] [6] DEBUG:   sm_default_msg_id: 0 =
 0x


 2013-02-01 19:17:43 [6011] [6] DEBUG:   sm_length: 10 = 0x000a


 2013-02-01 19:17:43 [6011] [6] DEBUG:   short_message:


 2013-02-01 19:17:43 [6011] [6] DEBUG:Octet string at 0x97b5760:


 2013-02-01 19:17:43 [6011] [6] DEBUG:  len:  10








 Thanks


 Orlis






 __
 De: Willy Mularto sangpr...@gmail.com
 Para: orlis moreta orl...@yahoo.com
 CC: kannel_dev_mailinglist devel@kannel. org devel@kannel.org
 Enviado: Domingo, 20 de enero, 2013 10:31 A.M.
 Asunto: Re: Problem with kannel




 You need to use http smsc not smpp


 SlyDroid


 On Jan 19, 2013 4:32 AM, orlis moreta orl...@yahoo.com wrote:




 Hi All





 I have GW 1.4-3 version installed but i'm failing to bind an SMSC.:








 Any help would be apreciated








  SMPP PDU 0x9e5f740 dump:


 2013-01-18 13:05:16 [9859] [6] DEBUG:   type_name: bind_transceiver


 2013-01-18 13:05:16 [9859] [6] DEBUG:   command_id: 9 = 0x0009


 2013-01-18 13:05:16 [9859] [6] DEBUG:   command_status: 0 = 0x


 2013-01-18 13:05:16 [9859] [6] DEBUG:   sequence_number: 1 =
 0x0001


 2013-01-18 13:05:16 [9859] [6] DEBUG:   system_id: ivan


 2013-01-18 13:05:16 [9859] [6] DEBUG:   password: ivan1234


 2013-01-18 13:05:16 [9859] [6] DEBUG:   system_type: 'VMA'


 2013-01-18 13:05:16 [9859] [6] DEBUG:   interface_version: 48 =
 0x0030


 2013-01-18 13:05:16 [9859] [6] DEBUG:   addr_ton: 0 = 0x


 2013-01-18 13:05:16 [9859] [6] DEBUG:   addr_npi: 0 = 0x


 2013-01-18 13:05:16 [9859] [6] DEBUG:   address_range: NULL


 2013-01-18 13:05:16 [9859] [6] DEBUG: SMPP PDU dump ends.


 2013-01-18 13:05:16 [9859] [7] DEBUG:
 SMPP[SMPP:sms.secure-mytouchtone.net:9501/9501:ivan:'VMA']: Sending
 PDU:


 2013-01-18 13:05:16 [9859] [7] DEBUG: SMPP PDU 0x9e5f888 dump:


 2013-01-18 13:05:16 [9859] [7] DEBUG:   type_name: bind_receiver


 2013-01-18 13:05:16 [9859] [7] DEBUG:   command_id: 1 = 0x0001


 2013-01-18 13:05:16 [9859] [7] DEBUG:   command_status: 0 = 0x


 2013-01-18 13:05:16 [9859] [7] DEBUG:   sequence_number: 2 =
 0x0002


 2013-01-18 

Re: Multiple patches for Kannel

2013-02-05 Thread spameden
I'm not a developer, but I'd love to get a standard git patch against
latest SVN trunk.

Many thanks.

2013/2/5 Aris Adamantiadis a...@badcode.be:
 Hi,

 When speaking with the rest of the team, we agreed that is was better to
 wait until we finish another kannel-related task (back-porting the
 ParlayX to our current patchset and testing it) before posting the
 patches, in order not to miss anything.
 You will hear from me before the end of the week.
 Which format is the better ? A big .patch with all differences ? Is it
 ok if I get that diff from kannel release 1.5.0 ?

 Kr,

 Aris
 Le 5/02/13 14:18, spameden a écrit :
 Interesting find.. Would love to see what actually you've changed and
 what's considered to be insecure. I think you can post your diff to
 this devel list.

 Many thanks for your work.

 2013/2/5 Aris Adamantiadis a...@badcode.be:
 Dear Kannel developers,

 During a security audit of Kannel, we identified several weaknesses in
 the code, mostly unsafe C functions or data copying used without bound
 checkings. These patches currently run in production on our site, but
 we'd prefer to give them out to the community (and this makes our update
 process easier as well).

 What is the best way to provide you with these patches ? Currently, they
 are being tracked in a local git repository. I can make the work of
 porting them to the latest subversion repository, but you would still
 need someone to review and publish them on your svn.

 How can we proceed ?

 Kind regards,

 Aris Adamantiadis

 output of git diff old_prod..new_prod --stat:

  addons/opensmppbox/gw/opensmppbox.c |2 +-
  gw/smsbox.c |6 +-
  gw/smsc/smsc.c  |2 +-
  gw/smsc/smsc_at.c   |6 +-
  gw/smsc/smsc_cgw.c  |2 +-
  gw/smsc/smsc_cimd.c |   47 ++--
  gw/smsc/smsc_cimd2.c|4 +-
  gw/smsc/smsc_emi_x25.c  |   74 +-
  gw/smsc/smsc_ois.c  |  140
 +--
  gw/smsc/smsc_sema.c |   66 ++---
  gw/smsc/smsc_sema.h |2 +-
  gw/smsc/smsc_soap.c |   27 ---
  gw/wap-appl.c   |   10 ++-
  gw/wap_push_ppg.c   |   10 ++-
  gwlib/accesslog.c   |6 +-
  gwlib/conn.c|2 +-
  gwlib/date.c|2 +-
  gwlib/gw_uuid.c |6 +-
  gwlib/gwthread-pthread.c|2 +-
  gwlib/log.c |   33 +
  gwlib/octstr.c  |4 +-
  gwlib/utils.c   |   13 
  gwlib/utils.h   |6 --
  test/fakewap.c  |8 +-
  utils/run_kannel_box.c  |2 +-
  utils/seewbmp.c |8 +-
  utils/start-stop-daemon.c   |   26 ---
  wap/cookies.c   |8 +-
  wap/wsp_session.c   |4 +-
  wmlscript/wsstream_data.c   |   12 +--
  wmlscript/wsstream_file.c   |6 +-
  31 files changed, 288 insertions(+), 258 deletions(-)






Re: debian wheezy kannel 1.5.0 with kannel-sqlbox 0.7.2.-3

2013-01-05 Thread spameden
1st DO NOT post to the devel list, it's only for developers!

use us...@kannel.org for all your questions.

2nd DO NOT use 3rd party .deb packages, because they can contain
backdoor or anything, always USE official (from debian repositories)
and NEVER install different versions (one from subversion, one from
repository), they can only work together if they are from the same
source

3rd use subversion and install kannel like that:

svn co https://svn.kannel.org/gateway/trunk kannel-1.5
cd kannel-1.5
./configure --with-mysql --prefix=/usr/local
make
make install
cd addons/sqlbox
./configure --prefix=/usr/local
make
make install

this way you'd have both kannel-1.5 and sqlbox installed into
/usr/local directory, DO NOT forget to remove ALL packages related to
kannel kannel-sqlbox kannel* from your system BEFORE doing any of
these actions!

also I'd suggest building actually a .deb package, you'd need to make
some scripts for that read this if you want
http://www.debian.org/doc/manuals/maint-guide/build.en.html or use
checkinstall.

you might need as well libxml2 and a bunch of other dependencies for
kannel's compilation
2013/1/5 cgchen cgch...@yahoo.com.au:
 Hi

 I've been trying to integrate sqlbox with kannel. Kannel 1.5.0 is installed
 through the downloaded deb package as per installation guide and
 kannel-sqlbox 0.7.2-3 is installed through apt-get install on Debian Wheezy.

 My problem is that when smsbox is connected directly to the bearerbox,
 everything works fine but when I added sqlbox in the middle of the 2, all
 the processes starts up fine as usual but as soon as I send a msg, both the
 smsbox and sqlbox processes crashes instantly. Please see below for sqlbox
 logs:

  2013-01-05 22:38:18 [8658] [0] INFO: Added logfile
 `/var/log/kannel/kannel-sqlbox.log' with level `0'.
 2013-01-05 22:38:18 [8658] [0] INFO: MYSQL: Connected to server at
 localhost.
 2013-01-05 22:38:18 [8658] [0] INFO: MYSQL: server version
 5.1.66-0+squeeze1, client version 5.1.66.
 2013-01-05 22:38:18 [8658] [0] DEBUG: Started thread 1
 (sqlbox.c:sql_to_bearerbox)
 2013-01-05 22:38:18 [8658] [1] DEBUG: Thread 1 (sqlbox.c:sql_to_bearerbox)
 maps to pid 8658.
 2013-01-05 22:38:18 [8658] [1] INFO: Connected to bearerbox at 127.0.0.1
 port 13001.
 2013-01-05 22:38:18 [8658] [1] DEBUG: Started thread 2
 (sqlbox.c:bearerbox_to_sql)
 2013-01-05 22:38:18 [8658] [2] DEBUG: Thread 2 (sqlbox.c:bearerbox_to_sql)
 maps to pid 8658.
 2013-01-05 22:38:19 [8658] [0] DEBUG: Started thread 3 (sqlbox.c:function)
 2013-01-05 22:38:19 [8658] [3] DEBUG: Thread 3 (sqlbox.c:function) maps to
 pid 8658.
 2013-01-05 22:38:19 [8658] [3] INFO: Client connected from 127.0.0.1
 2013-01-05 22:38:19 [8658] [3] INFO: Connected to bearerbox at 127.0.0.1
 port 13001.
 2013-01-05 22:38:19 [8658] [3] DEBUG: Started thread 4
 (sqlbox.c:bearerbox_to_smsbox)
 2013-01-05 22:38:19 [8658] [3] DEBUG: smsbox_to_bearerbox: got boxc_id
 smsbox1 from 127.0.0.1
 2013-01-05 22:38:19 [8658] [4] DEBUG: Thread 4
 (sqlbox.c:bearerbox_to_smsbox) maps to pid 8658.
 2013-01-05 22:38:53 [8658] [3] DEBUG: smsbox_to_bearerbox: sms received
 2013-01-05 22:38:53 [8658] [4] INFO: Connection closed by the box
 127.0.0.1
 2013-01-05 22:38:53 [8658] [4] DEBUG: bearerbox_to_smsbox: connection to
 bearerbox died.
 2013-01-05 22:38:53 [8658] [4] DEBUG: Thread 4
 (sqlbox.c:bearerbox_to_smsbox) terminates.
 2013-01-05 22:38:53 [8658] [3] DEBUG: Thread 3 (sqlbox.c:function)
 terminates.
 2013-01-05 22:38:53 [8658] [1] DEBUG: Thread 1 (sqlbox.c:sql_to_bearerbox)
 terminates.
 2013-01-05 22:39:03 [8658] [0] DEBUG: Thread 2 (sqlbox.c:bearerbox_to_sql)
 still running
 2013-01-05 22:39:03 [8658] [0] DEBUG: Immutable octet strings: 62.


 Does anybody know why this is happening or had any success with such setup
 and could provide any assistance is much appreciated.

 Thanks in advance.

 Here is my complete setup:

 group = core
 dlr-storage = internal
 admin-port = 13000
 admin-password = abcabc
 status-password = abcabc
 admin-deny-ip = *.*.*.*
 admin-allow-ip = 127.0.0.1;192.168.1.*
 smsbox-port = 13001
 log-level = 0
 log-file = /var/log/kannel/bearerbox.log
 box-deny-ip = *.*.*.*
 box-allow-ip = 127.0.0.1;192.168.1.*

 group = smsbox
 smsbox-id = smsbox1
 bearerbox-host = 127.0.0.1
 bearerbox-port = 13003
 sendsms-port = 13013
 log-file = /var/log/kannel/smsbox.log
 log-level = 0
 access-log = /var/log/kannel/access.log

 group = sendsms-user
 username = abcabc
 password = abcabc

 group = smsc
 smsc = smpp
 smsc-id = SMSC1
 host = 1
 port = 1
 smsc-username = abcabc
 smsc-password = abcabc
 address-range = 
 system-type = 
 transceiver-mode = true

 group = sms-service
 keyword = default
 accept-x-kannel-headers = true
 max-messages = 100
 assume-plain-text = true
 catch-all = true

 ##sqlbox
 group = sqlbox
 id = sqlbox-db
 smsbox-id = smsbox1
 #smsbox-id = sqlbox
 #global-sender = 
 bearerbox-host = 127.0.0.1
 bearerbox-port = 13001
 smsbox-port = 13003
 smsbox-port-ssl = false
 

Re: *** MERRY CHRISTMAS and a HAPPY NEW YEAR! *** from the Kannel Group!

2012-12-24 Thread spameden
Merry christmas, Stipe!

Have a good NYE as well :)

Hopefully we'll see more improvements in kannel's architecture :)

2012/12/24 Stipe Tolj st...@kannel.org

 Dear developers,
 Dear users,

 in the name of the whole Kannel Group, and to all the great individual
 supporters and contributor that have shown again tremendous participation
 and encouragement in this year we wish you:

   *** Merry Christmas, Happy Holidays and a Happy New Year! ***

 Enjoy the holiday season and make yourself a great time, either with
 family, friends or both. :)

 Stipe

 --
 --**--**---
 Kölner Landstrasse 419
 40589 Düsseldorf, NRW, Germany

 tolj.org system architecture  Kannel Software Foundation (KSF)
 http://www.tolj.org/  http://www.kannel.org/

 mailto:st_{at}_tolj.org   mailto:stolj_{at}_kannel.org
 --**--**---




Re: Kannel certificate

2012-12-19 Thread spameden
http://www.godaddy.com/ssl/ssl-open-source.aspx

https://cert.startcom.org/

others seems to be limited for 90 days..

2012/12/19 Alexander Malysh amal...@kannel.org

 Hi,

 yes, I'm the person who requested certs in the past but unable to do so by
 StartSSL now because unable to verify our domain.
 Seems they are unable to deliver emails to our domain. I'm in contact with
 support.

 If anyone else know free CA where the most browser nowadays accept their
 cert, I'm open for alternatives.

 Alex

 Am 18.12.2012 um 18:37 schrieb Rene Kluwen rene.klu...@chimit.nl:

 When I try to update from svn https, I get:

 $ svn update
 Error validating server certificate for 'https://svn.kannel.org:443':
 - The certificate hostname does not match.
 - The certificate has expired.
 Certificate information:
 - Hostname: redmine.kannel.org
 - Valid: from Dec 18 03:47:17 2011 GMT until Dec 18 15:40:34 2012 GMT
 - Issuer: Secure Digital Certificate Signing, StartCom Ltd., IL
 - Fingerprint: ee:f7:38:a9:89:ce:12:cf:3a:4f:ba:8a:ee:47:85:88:f8:1a:be:c5
 
 (R)eject, accept (t)emporarily or accept (p)ermanently? T


 Who is in charge of the Kannel server?





Re: Kannel certificate

2012-12-19 Thread spameden
as an alternative you can buy rapidssl cert they are really cheap!

2012/12/19 spameden spame...@gmail.com

 http://www.godaddy.com/ssl/ssl-open-source.aspx

 https://cert.startcom.org/

 others seems to be limited for 90 days..


 2012/12/19 Alexander Malysh amal...@kannel.org

 Hi,

 yes, I'm the person who requested certs in the past but unable to do so
 by StartSSL now because unable to verify our domain.
 Seems they are unable to deliver emails to our domain. I'm in contact
 with support.

 If anyone else know free CA where the most browser nowadays accept their
 cert, I'm open for alternatives.

 Alex

 Am 18.12.2012 um 18:37 schrieb Rene Kluwen rene.klu...@chimit.nl:

 When I try to update from svn https, I get:

 $ svn update
 Error validating server certificate for 'https://svn.kannel.org:443':
 - The certificate hostname does not match.
 - The certificate has expired.
 Certificate information:
 - Hostname: redmine.kannel.org
 - Valid: from Dec 18 03:47:17 2011 GMT until Dec 18 15:40:34 2012 GMT
 - Issuer: Secure Digital Certificate Signing, StartCom Ltd., IL
 - Fingerprint: ee:f7:38:a9:89:ce:12:cf:3a:4f:ba:8a:ee:47:85:88:f8:1a:be:c5
 
 (R)eject, accept (t)emporarily or accept (p)ermanently? T


 Who is in charge of the Kannel server?






Re: Kannel certificate

2012-12-19 Thread spameden
there is a certificate mismatch on:

https://svn.kannel.org/

you can actually use svn within redmine

2012/12/19 Alexander Malysh amal...@kannel.org

 fixed, cert is OK now

 Am 19.12.2012 um 15:37 schrieb Alexander Malysh amal...@kannel.org:

 Hi,

 cheap != free

 startcom == StartSSL

 godaddy take too much time and only one year free.

 Alex

 Am 19.12.2012 um 15:02 schrieb spameden spame...@gmail.com:

 as an alternative you can buy rapidssl cert they are really cheap!

 2012/12/19 spameden spame...@gmail.com

 http://www.godaddy.com/ssl/ssl-open-source.aspx

 https://cert.startcom.org/

 others seems to be limited for 90 days..


 2012/12/19 Alexander Malysh amal...@kannel.org

 Hi,

 yes, I'm the person who requested certs in the past but unable to do so
 by StartSSL now because unable to verify our domain.
 Seems they are unable to deliver emails to our domain. I'm in contact
 with support.

 If anyone else know free CA where the most browser nowadays accept their
 cert, I'm open for alternatives.

 Alex

 Am 18.12.2012 um 18:37 schrieb Rene Kluwen rene.klu...@chimit.nl:

 When I try to update from svn https, I get:

 $ svn update
 Error validating server certificate for 'https://svn.kannel.org:443':***
 *
 - The certificate hostname does not match.
 - The certificate has expired.
 Certificate information:
 - Hostname: redmine.kannel.org
 - Valid: from Dec 18 03:47:17 2011 GMT until Dec 18 15:40:34 2012 GMT***
 *
 - Issuer: Secure Digital Certificate Signing, StartCom Ltd., IL
 - Fingerprint:
 ee:f7:38:a9:89:ce:12:cf:3a:4f:ba:8a:ee:47:85:88:f8:1a:be:c5
 (R)eject, accept (t)emporarily or accept (p)ermanently? T


 Who is in charge of the Kannel server?









Re: Kannel certificate

2012-12-18 Thread spameden
I think alexander handles kannel's servers now.

2012/12/18 Rene Kluwen rene.klu...@chimit.nl

 When I try to update from svn https, I get:

 ** **

 $ svn update

 Error validating server certificate for 'https://svn.kannel.org:443':

 - The certificate hostname does not match.

 - The certificate has expired.

 Certificate information:

 - Hostname: redmine.kannel.org

 - Valid: from Dec 18 03:47:17 2011 GMT until Dec 18 15:40:34 2012 GMT

 - Issuer: Secure Digital Certificate Signing, StartCom Ltd., IL

 - Fingerprint: ee:f7:38:a9:89:ce:12:cf:3a:4f:ba:8a:ee:47:85:88:f8:1a:be:c5
 

 (R)eject, accept (t)emporarily or accept (p)ermanently? T

 ** **

 ** **

 Who is in charge of the Kannel server?



Re: outgoing queue limit in bearbox

2012-12-13 Thread spameden
I think this issue should be escalated to the bug tracker because it's
quite serious.

Could you post all details here -
http://redmine.kannel.org/projects/kannel

Queue on one of the binds shouldnt affect queue of other ones at all.

We experienced something similar when there were problems with one of our
binds.


2012/12/14 Nick Mahilani nicky.mahil...@gmail.com

 I had tried setting the sms-outgoing-queue-limit = 0 but I still saw
 messages getting enqueued to the outgoing_sms queue. Also, in my load tests
 with SMPP simulator binds connected to kannel, I saw a lot of full_found
 queue full error with this setting set to 0.. Having a small buffer ~10
 helped avoid most of the errors, but setting the limit to 10 caused retries
 for all binds going to the global outgoing_sms queue and hit the
 sum(#queues) limit condition in smsc2_rout(), which is what I wanted to
 avoid.. Since one saturated bind can affect traffic on other binds..

 On Thu, Dec 13, 2012 at 12:00 PM, Rene Kluwen rene.klu...@chimit.nlwrote:

 What if you just set the queue-limit to 0. Won’t that have the same
 effect?

 ** **

 == Rene

 ** **

 ** **

 *From:* devel-boun...@vm1.kannel.org [mailto:devel-boun...@vm1.kannel.org]
 *On Behalf Of *Nick Mahilani

 *Sent:* donderdag 13 december 2012 19:04
 *To:* Amin Mukhaimer
 *Cc:* de...@vm1.kannel.org
 *Subject:* Re: outgoing queue limit in bearbox

 ** **

 Thanks Amin !

 While this approach works it is not very scalable if we have more
 operators in the future. As an alternative, I have defined a configurable
 in kannel config to bypass retries using the outgoing_sms queue. When
 turned on, this option disables queuing any messages to the 'outgoing_sms'
 queue and sends back a DLR NACK for any messages that fail for any
 reason(QFULL or submit_sm_resp with error from SMSC). This essentially
 moves the retry logic from kannel to the application using kannel and gives
 the application more control of the retry logic. This also avoids one
 saturated bind from affecting other binds.

 I wanted to get some feedback and if you see any potential problems with
 this approach. I have attached a diff for this change. Please review.

 ** **

 -Nick

 ** **

 Hi,
 I am using kannel with multiple SMSCs in my org and we often see that
 high load on one of the binds impacts the traffic on the other binds. After
 looking at the code, I see that the outgoing_sms queue is used as a global
 retry queue and if high load is directed to one of the binds, this fills up
 the outgoing_sms queue and causes 503 for the other sms traffic going
 through other binds..
 As a potential fix, I have defined a configurable in kannel config to
 bypass retries using the outgoing_sms queue. When turned on, this option
 disables queuing any messages to the 'outgoing_sms' queue and sends back a
 DLR NACK for any messages that fail due to QFULL conditions or other cases
 that would otherwise enqueue to the 'outgoing_sms' queue. This essentially
 moves the retry logic from kannel to the application using kannel..

 I wanted to get some feedback on if you see any potential problems with
 this approach.
 I can forward a diff if someone could review the diff and provide
 feedback.

 thanks,
 Nick

 ** **

 On Wed, Nov 21, 2012 at 11:01 PM, Amin Mukhaimer 
 ami...@arabmobilecontent.com wrote:

 Yes of course, just make different config files for each and run an
 instance for each, like

  

 bearerbox  operator1_config

 smsboxoperator1_config

  

 bearerbox operator2_config

 smsbox  operator2_config

  

 make sure they have different ports/spool directory/database tables/ log
 files… and good luck

  

 Amin

  

 *From:* Nick Mahilani [mailto:nicky.mahil...@gmail.com]
 *Sent:* Wednesday, November 21, 2012 7:00 PM
 *To:* ami...@arabmobilecontent.com
 *Cc:* devel@kannel.org
 *Subject:* RE: outgoing queue limit in bearbox

  

 Thanks Amin for your suggestion...

 Can we run multiple kannel instances on the same box?


 Amin Mukhaimer ami...@arabmobilecontent.com wrote:

 I had a somewhat similar problem is that it tends to get slow when
 sending high amounts of SMSs to specific SMSC, and SMSs sent to other SMSCs
 are delayed for a while, so I decided to run multiple Kannels, one for each
 operator, hopping that would increase overall performance.

  

 I don’t know if that helps, but good luck.

  

 *From:* devel-boun...@kannel.org 
 [mailto:devel-boun...@kannel.orgdevel-boun...@kannel.org]
 *On Behalf Of *Nick Mahilani
 *Sent:* Wednesday, November 21, 2012 1:16 AM
 *To:* devel@kannel.org
 *Subject:* outgoing queue limit in bearbox

  

 Hi,

 I have an application which is using Kannel to send outgoing sms via
 multiple SMSC's. However, there is an insane volume of messages that needs
 to go through one of the SMSC which is impacting the other binds due to the
 global outgoing 

Re: Votes for opensmppbox

2012-12-09 Thread spameden
I vote +1 for new stable extended OpenSMPPBox with clean documentation and
configuration examples!

2012/12/9 Willy Mularto sangpr...@gmail.com

 imho a new clean copy development will be better. easier to read, easier
 to debug, and somehow will be faster development time.



 On Dec 9, 2012, at 2:47 AM, Rene Kluwen wrote:

 The latest opensmppbox head revision keeps giving me headaches.
 ** **
 For example, if use-smppbox-id = true, then it doesn’t store dlr
 information.
 ** **
 Also, the redundant code of box-dlr.c is a little bit too much for me.
 ** **
 Besides that I received a useful routing patch. But that one depends on
 opensmppbox before the use-smppbox-id patch.
 ** **
 What I would like is to make a separate branch of the current opensmppbox.
 And then start with a clean copy where we can start developing on again.**
 **
 ** **
 Does this make sense?
 ** **
 == Rene
 ** **


 Willy Mularto
 F300HD+MR18DE (NLC1725)












Re: Bulk SMS individual response for each number

2012-12-05 Thread spameden
1. You need to post to us...@kannel.org instead of devel! Devel only
intended for kannel's developers, bugs and patches. All questions related
to configuration and understanding how kannel does work should be posted *ONLY
*to us...@kannel.org

2. As Andreas said you should send each message via single transaction
either via HTTP submit to smsbox or via sqlbox plugin

3. Kannel already can receive separate reponses for each recipient, you're
just doing it wrong.

2012/12/5 Andreas Fink af...@list.fink.org

 this is conceptually not possible. If you send multiple SMS in one go,
 kannel sees this as one transaction and thus can only acknowledge one.
 So the best is to send them one by one.

 On 05.12.2012, at 09:36, Steven Nsubuga snsub...@applab.org wrote:

  In the event that I send an SMS to 2 numbers via kannel, ie to=178+179,
 is it possible to get a separate response from kannel for each of the 2
 numbers I have specified? This would  mostly help in the event that one of
 the numbers is wrong, for example in my smsbox setup I have set
 sendsms-chars = 0123456789 +- meaning that if I had to=abc that would
 be rejected by kannel. However, when I include that wrong format in a
 multi-send, ie to=abc+178, I do not get any error and the correct number
 178 does receive the SMS. So my question is, is it possible to receive from
 kannel a separate response for each recipient?






Re: gateway svn 5011

2012-11-27 Thread spameden
quick googling gives me a result:

http://www.mail-archive.com/devel@kannel.org/msg11105.html

you need to re-install bison instead of byacc

2012/11/27 Ahmed Shabana a.shab...@cequens.com

  Dears , have not any one face the same problem . ?

 ** **

 ** **

 ** **

 Best regards ,

 Ahmed Shabana

 ** **

 *From:* Ahmed Shabana
 *Sent:* Tuesday, November 27, 2012 9:55 AM
 *To:* 'spameden'; Guillaume Cottenceau
 *Cc:* devel@kannel.org; de...@vm1.kannel.org
 *Subject:* RE: gateway svn 5011

 ** **

 Sorry Dears it is my fault 

 ** **

 Find the error log as below ,

 ** **

 Command make result

 ** **

 wmlscript/wsgram.y: In function ‘ws_yy_parse’:
 wmlscript/wsgram.y:125:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:125:27: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:138:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:138:27: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:149:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:149:25: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:310:11: error: stray ‘@’ in program
 wmlscript/wsgram.y:310:64: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:339:21: error: stray ‘@’ in program
 wmlscript/wsgram.y:339:55: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:357:21: error: stray ‘@’ in program
 wmlscript/wsgram.y:357:55: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:382:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:382:38: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:388:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:388:41: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:390:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:390:38: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:398:11: error: stray ‘@’ in program
 wmlscript/wsgram.y:398:37: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:399:11: error: stray ‘@’ in program
 wmlscript/wsgram.y:399:36: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:404:7: error: stray ‘@’ in program
 wmlscript/wsgram.y:404:30: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:427:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:427:41: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:429:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:429:27: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:466:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:466:35: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:468:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:468:35: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:473:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:473:38: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:480:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:480:36: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:483:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:483:36: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:488:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:488:39: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:502:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:502:38: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:508:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:508:39: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:510:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:510:39: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:512:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:512:39: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:514:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:514:39: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:516:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:516:39: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:518:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:518:39: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:520:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:520:39: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:522:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:522:39: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:524:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:524:39: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:526:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:526:39: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:528:2

Re: gateway svn 5011

2012-11-27 Thread spameden
1) reinstall bison instead of byacc
2) do a clean checkout of kannel's source
3) issue make clean
4) start usual procedure of ./configure --with-what-you-need; make; make
install

2012/11/27 spameden spame...@gmail.com

 quick googling gives me a result:

 http://www.mail-archive.com/devel@kannel.org/msg11105.html

 you need to re-install bison instead of byacc


 2012/11/27 Ahmed Shabana a.shab...@cequens.com

  Dears , have not any one face the same problem . ?

 ** **

 ** **

 ** **

 Best regards ,

 Ahmed Shabana

 ** **

 *From:* Ahmed Shabana
 *Sent:* Tuesday, November 27, 2012 9:55 AM
 *To:* 'spameden'; Guillaume Cottenceau
 *Cc:* devel@kannel.org; de...@vm1.kannel.org
 *Subject:* RE: gateway svn 5011

 ** **

 Sorry Dears it is my fault 

 ** **

 Find the error log as below ,

 ** **

 Command make result

 ** **

 wmlscript/wsgram.y: In function ‘ws_yy_parse’:
 wmlscript/wsgram.y:125:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:125:27: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:138:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:138:27: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:149:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:149:25: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:310:11: error: stray ‘@’ in program
 wmlscript/wsgram.y:310:64: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:339:21: error: stray ‘@’ in program
 wmlscript/wsgram.y:339:55: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:357:21: error: stray ‘@’ in program
 wmlscript/wsgram.y:357:55: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:382:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:382:38: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:388:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:388:41: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:390:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:390:38: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:398:11: error: stray ‘@’ in program
 wmlscript/wsgram.y:398:37: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:399:11: error: stray ‘@’ in program
 wmlscript/wsgram.y:399:36: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:404:7: error: stray ‘@’ in program
 wmlscript/wsgram.y:404:30: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:427:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:427:41: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:429:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:429:27: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:466:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:466:35: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:468:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:468:35: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:473:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:473:38: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:480:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:480:36: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:483:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:483:36: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:488:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:488:39: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:502:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:502:38: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:508:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:508:39: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:510:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:510:39: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:512:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:512:39: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:514:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:514:39: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:516:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:516:39: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:518:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:518:39: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:520:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:520:39: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:522:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:522:39: error: invalid suffix first_line on floating
 constant
 wmlscript/wsgram.y:524:2: error: stray ‘@’ in program
 wmlscript/wsgram.y:524

Re: devel Digest, Vol 75, Issue 17

2012-11-20 Thread spameden
just insert a record into send_sms table

2012/11/21 Navdeep Bagga ad...@navdeepbagga.com

 Thanking You
 Now I can send sms through browser

 On Tue, Nov 20, 2012 at 11:18 PM, Andreas Fink af...@list.fink.org
 wrote:
  http://
 your-hosts:smppbox-port/cgi-bin/sendsms?from=originatorto=destinationtext=the-message-testuser=usernamepassword=password
 
  replace everything within ...



 --
 Navdeep Bagga
 Happy Bird
 [W] http://navdeepbagga.com
 [T]  http://www.navdeepbagga.com/category/daily-diary-3/




wrong source code link on main page

2012-11-15 Thread spameden
Goto http://kannel.org

click Source code

link is http://redmine.kannel.org/repositories/show/kannel

instead of https://redmine.kannel.org/projects/kannel/repository

please fix


Re: Small bug on dead-start directive

2012-10-22 Thread spameden
Could this potentially lead to problems if there is pending queue?

(and you don't want to process specific messages through speicific SMSC)

2012/10/22 Juan Nin jua...@gmail.com

 Hi!

 There's a small bug on the dead-start directive (smsc group)
 implementation.
 It seems that the dead-start code is executed after the TCP network
 connection is attempted.

 So on a case where there's connectivity to the remote SMSC's specified
 host and port(s) a TCP connection will be established first, and
 immediately after that the dead-start code will be executed without issuing
 the bind request, where the bind's status will show as dead. Same thing
 will happen if the connection is refused, it will immediately execute the
 dead-start code and show as dead.

 On a case where there's no immediate reply on the TCP network connection
 attempt (e.g filtered packets, where packets are just being dropped) we
 will see the binds status as connecting, until it times out, and there
 the dead-start code will be executed, bringing it's status to dead.

 The correct behavior should be to not do anything at all if dead-start is
 set to true, so no TCP network connection should be attempted at all.

 Regards,

 Juan



Re: [PATCH] Kannel bearerbox graceful restart support (via SIGHUP or HTTP admin command)

2012-10-20 Thread spameden
Great work, Stipe!

That was really quick.

What about connected smsbox'es / sqlbox'es to the bearerbox when reload
happens?

Bearerbox is not closing the connection port right (so it's still accepting
requests from smsbox / sqlbox)?

2012/10/20 Stipe Tolj st...@kannel.org

 Hi list,

 ok, this has been long awaited I guess: graceful restarting of Kannel
 bearerbox.

 At the moment we can shutdown a specific SMSC and restart it again. But we
 can't effectively move SMSC config parts in and out while keeping the
 bearerbox running for those SMSC connections that should be unchanged and
 supposed to keep running.

 This patchset allows this, by making use of a checksum for each 'group =
 smsc' context. So we can detect if there are groups that haven't changed,
 and hence will be kept running. Other groups are counter-compared based on
 their 'smsc-id' value.

 I.e. if the newly read-in config has a smsc-id = A and this smsc-id = A
 also exists in the running config, AND they do not match, hence the
 checksum doesn't match, then we assume there is a change for smsc-id = A.
 This results in the running smsc group to be shutdown and destroyed and the
 new smsc group to be started.

 Similar if there is a smsc-id = B in the running configuration, but is not
 present anymore in the new one, then we shutdown and destroy it. For the
 opposite side, smsc-id = C is in the new config, but not in the running
 config, we add it to the running config.

 I have tested this fairly, and it works pretty nice. BTW, it fixes even a
 couple of memory leaks that we haven't detected yet, due that we are not
 re-init'ing the corresponding data structure. There is STILL a memory leak
 in the cfg_read() when a config is broken and tried to be gracefully
 restarted. I need to work on this.

 Please test, I would love to see this going into SVN trunk ASAP. You can
 find the patchset at URL:

 http://www.kannel.org/~tolj/**patchsets/graceful/gateway-**
 graceful-restart.diffhttp://www.kannel.org/~tolj/patchsets/graceful/gateway-graceful-restart.diff

 After finalizing the current open patches, I would like to endorse Kannel
 1.5.1 devel, giving it a 2-3 month time to settle for bug fixes and then
 push the release button for Kannel 1.6.0 stable.

 Comments always welcome.
 Stipe

 --
 --**--**---
 Kölner Landstrasse 419
 40589 Düsseldorf, NRW, Germany

 tolj.org system architecture  Kannel Software Foundation (KSF)
 http://www.tolj.org/  http://www.kannel.org/

 mailto:st_{at}_tolj.org   mailto:stolj_{at}_kannel.org
 --**--**---




Re: [PATCH] Kannel bearerbox graceful restart support (via SIGHUP or HTTP admin command)

2012-10-20 Thread spameden
2012/10/20 Stipe Tolj st...@kannel.org

 Am 20.10.2012 10:14, schrieb spameden:

  Great work, Stipe!

 That was really quick.


 thanks :).  Please express your thanks also via the PayPal donation button
 on the web site. We are getting literally no donations within the last 1-2
 years. Which is really a shame, being the most used SMS gateway in the
 world, and creating a lot of assets for users of it.


Just did small portion from my another e-mail.



  What about connected smsbox'es / sqlbox'es to the bearerbox when reload
 happens?


 they keep on going the same way. All that the graceful reload does is to
 set a lock on the smsc_list, do the in/out mangling, and then release the
 lock again. I.e. the locking is relevant for the routing of MTs etc. MOs
 will keep on rolling to the smsbox instances, and the MTs also from the
 smsbox instances to the abstraction layer of the bearerbox. So no service
 interruption here from my perspective.


Thanks, will test this. What If I have smsc1 with queue of 1k sms (queued
already) and I'm gonna change it's ID to smsc2, will it continue or message
queue gonna be broken on smsc1?



  Bearerbox is not closing the connection port right (so it's still
 accepting requests from smsbox / sqlbox)?


 correct, all keeps running there.


 Stipe

 --
 --**--**---
 Kölner Landstrasse 419
 40589 Düsseldorf, NRW, Germany

 tolj.org system architecture  Kannel Software Foundation (KSF)
 http://www.tolj.org/  http://www.kannel.org/

 mailto:st_{at}_tolj.org   mailto:stolj_{at}_kannel.org
 --**--**---




Re: [PATCH] Abstraction for config resources, allowing file, URL, pipe, etc.

2012-10-19 Thread spameden
kannel needs graceful reload option badly :)

2012/10/19 Nicolas de Bari Embriz Garcia Rojas nb...@backup.sh

 Hi, this is nice, but now that the configuration topic is mentioned, I
 would like to know if there is a way of adding  smsc groups 'group:
 smsc' on the fly without need to restart bearerbox each time a new
 connection is added.

 regards.

 On Fri, Oct 19, 2012 at 4:34 AM, Stipe Tolj st...@kannel.org wrote:
  Hi list,
 
  I have abstracted the gwlib/cfg.[ch] module in order not to handle
 simply a
  'config file', but a 'config resource', which then can be either of:
 
  - a config file
  - a config URL, retrieving the config via the HTTP body
  - the stdin pipe, allowing to pipe in a config
  - a data block itself, interpreted as config
 
  Now, to demonstrate the effect, here are some sample ways on how Kannel's
  daemon can be then started:
 
$ bearerbox
 
  will look for 'kannel.conf', as it does today.
 
$ bearerbox smskannel.conf
 
  will open the local 'smskannel.conf' file, parse and expand it, as it
 does
  today.
 
$ bearebox http://host/smskannel.conf
 
  will HTTP GET to the URL and pull the config from the HTTP response body.
 
$ cat smskannel.conf | bearerbox pipe
 
  will instruct bearerbox to read in the config from the stdin pipe.
 
  Ok, sounds sweet, right? But is there more? Yes, there is. Due that the
  gwlib/cfg.[ch] module is abstracted on these types of resources for the
  config, we can mix them using the 'include = resource' statement.
 
  I.e. I can have a local smskannel.conf that includes a remote URL config
  part, or I can fetch a remote URL config block, but refer again to local
  config files, etc.
 
  Now you may ask what's this used for, you have been living quite fine
 with
  the normal local config style, or even have sync'ed configs via rsync to
  achieve HA setups?
 
  Yes, sync'ing the filesystem is a way to make remote changes for a
 Kannel
  worker node. But I wanted something that is even more simple, like the
 HTTP
  URL call fetching of the config.
 
  This allows a controler node to instruct how the Kannel worker nodes
  will operate. Meaning, to which SMSCs they connect, which sms-services
 they
  need to obey, etc.
 
  It makes things simply more flexible, especially when you start to look
 at
  large scalability, HA and LB issues.
 
  The patchset can be found at URL:
  http://www.kannel.org/~tolj/patchsets/cfg/gateway-cfg.diff
 
  NOTE: The user's guide part is still missing, I'll make sure this gets
 into
  the patchset before committing.
 
  Reviews, comments, votes welcome.
 
  Stipe
 
  --
  ---
  Kölner Landstrasse 419
  40589 Düsseldorf, NRW, Germany
 
  tolj.org system architecture  Kannel Software Foundation (KSF)
  http://www.tolj.org/  http://www.kannel.org/
 
  mailto:st_{at}_tolj.org   mailto:stolj_{at}_kannel.org
  ---
 




slow store_load with large queue

2012-10-16 Thread spameden
Hi.

I've copied both devel and users list to get quicker response, sorry if
it's not right.

We are suffering from quite slow store load (about 100sms/sec) with large
queue (about 100k MTs).

What could be a possible reason? Could it be slow disk or is there a bug
itself inside the kannel?


Also we encountered another error while restarting bearerbox:
2012-10-16 12:26:02 [9976] [9] PANIC: gwlib/gw-rwlock.c:137:
gw_rwlock_rdlock: Assertion `lock != NULL' failed.
2012-10-16 12:26:02 [9976] [9] PANIC:
/usr/sbin/bearerbox(gw_backtrace+0xae) [0x48ba6e]
2012-10-16 12:26:02 [9976] [9] PANIC: /usr/sbin/bearerbox(gw_panic+0x145)
[0x48bbc5]
2012-10-16 12:26:02 [9976] [9] PANIC:
/usr/sbin/bearerbox(gw_rwlock_rdlock+0x54) [0x4818e4]
2012-10-16 12:26:02 [9976] [9] PANIC:
/usr/sbin/bearerbox(route_incoming_to_boxc+0x4b) [0x4126db]
2012-10-16 12:26:02 [9976] [9] PANIC:
/usr/sbin/bearerbox(bb_smscconn_receive+0x628) [0x419728]
2012-10-16 12:26:02 [9976] [9] PANIC:
/usr/sbin/bearerbox(bb_smscconn_sent+0x110) [0x41a3d0]
2012-10-16 12:26:02 [9976] [9] PANIC: /usr/sbin/bearerbox() [0x4596af]
2012-10-16 12:26:02 [9976] [9] PANIC: /usr/sbin/bearerbox() [0x45af97]
2012-10-16 12:26:02 [9976] [9] PANIC: /usr/sbin/bearerbox() [0x48292e]
2012-10-16 12:26:02 [9976] [9] PANIC: /lib/libpthread.so.0(+0x68ca)
[0x7fcd35d1a8ca]
2012-10-16 12:26:02 [9976] [9] PANIC: /lib/libc.so.6(clone+0x6d)
[0x7fcd3538fb6d]

NOTE: we are using simple scheme bearerbox - sqlbox and when we are
restarting we are closing sqlbox prior to bearerbox


Re: slow store_load with large queue

2012-10-16 Thread spameden
Is it possible to have store_load in a separate thread? So SQLBox / SMSBox
would connect before store fully loaded?

2012/10/16 spameden spame...@gmail.com

 Hi.

 I've copied both devel and users list to get quicker response, sorry if
 it's not right.

 We are suffering from quite slow store load (about 100sms/sec) with large
 queue (about 100k MTs).

 What could be a possible reason? Could it be slow disk or is there a bug
 itself inside the kannel?


 Also we encountered another error while restarting bearerbox:
 2012-10-16 12:26:02 [9976] [9] PANIC: gwlib/gw-rwlock.c:137:
 gw_rwlock_rdlock: Assertion `lock != NULL' failed.
 2012-10-16 12:26:02 [9976] [9] PANIC:
 /usr/sbin/bearerbox(gw_backtrace+0xae) [0x48ba6e]
 2012-10-16 12:26:02 [9976] [9] PANIC: /usr/sbin/bearerbox(gw_panic+0x145)
 [0x48bbc5]
 2012-10-16 12:26:02 [9976] [9] PANIC:
 /usr/sbin/bearerbox(gw_rwlock_rdlock+0x54) [0x4818e4]
 2012-10-16 12:26:02 [9976] [9] PANIC:
 /usr/sbin/bearerbox(route_incoming_to_boxc+0x4b) [0x4126db]
 2012-10-16 12:26:02 [9976] [9] PANIC:
 /usr/sbin/bearerbox(bb_smscconn_receive+0x628) [0x419728]
 2012-10-16 12:26:02 [9976] [9] PANIC:
 /usr/sbin/bearerbox(bb_smscconn_sent+0x110) [0x41a3d0]
 2012-10-16 12:26:02 [9976] [9] PANIC: /usr/sbin/bearerbox() [0x4596af]
 2012-10-16 12:26:02 [9976] [9] PANIC: /usr/sbin/bearerbox() [0x45af97]
 2012-10-16 12:26:02 [9976] [9] PANIC: /usr/sbin/bearerbox() [0x48292e]
 2012-10-16 12:26:02 [9976] [9] PANIC: /lib/libpthread.so.0(+0x68ca)
 [0x7fcd35d1a8ca]
 2012-10-16 12:26:02 [9976] [9] PANIC: /lib/libc.so.6(clone+0x6d)
 [0x7fcd3538fb6d]

 NOTE: we are using simple scheme bearerbox - sqlbox and when we are
 restarting we are closing sqlbox prior to bearerbox



Re: slow store_load with large queue

2012-10-16 Thread spameden
Putting queue into tmpfs helped a lot, now I'm thinking about storing it
permanently and dumping with cronjob regularly.

Btw, I'm using spool instead of kannel-store currently.

Is there any performance difference between spool and store (when queue is
in 1 file) ?

2012/10/16 spameden spame...@gmail.com

 Is it possible to have store_load in a separate thread? So SQLBox / SMSBox
 would connect before store fully loaded?


 2012/10/16 spameden spame...@gmail.com

 Hi.

 I've copied both devel and users list to get quicker response, sorry if
 it's not right.

 We are suffering from quite slow store load (about 100sms/sec) with large
 queue (about 100k MTs).

 What could be a possible reason? Could it be slow disk or is there a bug
 itself inside the kannel?


 Also we encountered another error while restarting bearerbox:
 2012-10-16 12:26:02 [9976] [9] PANIC: gwlib/gw-rwlock.c:137:
 gw_rwlock_rdlock: Assertion `lock != NULL' failed.
 2012-10-16 12:26:02 [9976] [9] PANIC:
 /usr/sbin/bearerbox(gw_backtrace+0xae) [0x48ba6e]
 2012-10-16 12:26:02 [9976] [9] PANIC: /usr/sbin/bearerbox(gw_panic+0x145)
 [0x48bbc5]
 2012-10-16 12:26:02 [9976] [9] PANIC:
 /usr/sbin/bearerbox(gw_rwlock_rdlock+0x54) [0x4818e4]
 2012-10-16 12:26:02 [9976] [9] PANIC:
 /usr/sbin/bearerbox(route_incoming_to_boxc+0x4b) [0x4126db]
 2012-10-16 12:26:02 [9976] [9] PANIC:
 /usr/sbin/bearerbox(bb_smscconn_receive+0x628) [0x419728]
 2012-10-16 12:26:02 [9976] [9] PANIC:
 /usr/sbin/bearerbox(bb_smscconn_sent+0x110) [0x41a3d0]
 2012-10-16 12:26:02 [9976] [9] PANIC: /usr/sbin/bearerbox() [0x4596af]
 2012-10-16 12:26:02 [9976] [9] PANIC: /usr/sbin/bearerbox() [0x45af97]
 2012-10-16 12:26:02 [9976] [9] PANIC: /usr/sbin/bearerbox() [0x48292e]
 2012-10-16 12:26:02 [9976] [9] PANIC: /lib/libpthread.so.0(+0x68ca)
 [0x7fcd35d1a8ca]
 2012-10-16 12:26:02 [9976] [9] PANIC: /lib/libc.so.6(clone+0x6d)
 [0x7fcd3538fb6d]

 NOTE: we are using simple scheme bearerbox - sqlbox and when we are
 restarting we are closing sqlbox prior to bearerbox





bearerbox memory report usage

2012-10-16 Thread spameden
Hi

I've checked bearerbox source code and found that If you send SIGQUIT to
the bearerbox process it should report it's memory usage, current memory
allocated, highest usage, etc.

But, it seems it's not working for me.

What I did:

I've set log-level to 0, did a kill -SIGQUIT `pidof bearerbox`, the only
thing I see in logs is:

2012-10-16 16:28:49 [21958] [0] WARNING: SIGQUIT received, reporting memory
usage.

and nothing else, any idea how to get this ?

or do I need to compile kannel with custom options?

in source code I see this in gwlib/gwmem-check.c:

void gw_check_check_leaks(void)
{
long calculated_size;
long index;

gw_assert(initialized);
lock();

for (index = 0; index  free_ring_len; index++) {
drop_from_free_ring(index);
}
free_ring_len = 0;

calculated_size = 0;
for (index = 0; index  num_allocations; index++) {
calculated_size += allocated[index].area_size;
}
gw_assert(calculated_size == total_size);

debug(gwlib.gwmem, 0, );
debug(gwlib.gwmem, 0, Current allocations: %ld areas, %ld bytes,
  num_allocations, total_size);
debug(gwlib.gwmem, 0, Highest number of allocations: %ld areas,
  highest_num_allocations);
debug(gwlib.gwmem, 0, Highest memory usage: %ld bytes,
  highest_total_size);
for (index = 0; index  num_allocations; index++) {
check_marks(allocated[index], index);
dump_area(allocated[index]);
}

unlock();
}


Kannel MongoDB dlr support

2012-10-16 Thread spameden
Found this accidentally - https://github.com/romanbsd/kannel-mongodb

Interested to hear what core developers is thinking about implementing this
as a DLR storage engine / kannel-store as well?


Re: OpenSNMPP and SQLBox package building ?

2012-09-29 Thread spameden
You mean build it as a debian package (.deb)?

Yeah, you would need to add manually folder with a rules or use
checkinstall.

2012/9/30 Sebastien Cramatte scrama...@nixus.es

   Hi,

  I've just rebuild Kannel 1.5  package for my Debian squeeze.

  I would like to build SQLBox and OpenSNMPP.
 Does it exists somewhere base  debian folder  to achieve this  as
 unfortunately  in SVN doesn't exists ?

  Best regards



Re: Stable version

2012-09-13 Thread spameden
You can use version from the trunk. Latest SVN revision.

2012/9/13 Ahmed Shabana a.shab...@cequens.com

  ** **

 Dears ,

 What is the most stable kannel version we can use at
 production ?

 ** **

 Best Regards,

 ** **

 Ahmed Shabana | Creative Communication Solutions – Cequens ** **

 Skypeid : AhmedShabana2000

 ** **



Re: Stable version

2012-09-13 Thread spameden
Forgot to say I'm using r4968 (it's hacked tho - that's the reason of
additional r4975M)

Kannel bearerbox version `svn-r4968:4975M'.
Build `May 10 2012 19:14:58', compiler `4.4.5'.
Hostname localhost, IP 127.0.0.1.
Libxml version 2.7.8.
Using OpenSSL 0.9.8o 01 Jun 2010.
Compiled with MySQL 5.5.24, using MySQL 5.5.25a.
Using native malloc.
 Status: running, uptime 41d 18h 25m 21s

It's very stable - been running for 41 days.


2012/9/13 Abdul Basit basit.e...@gmail.com


 We are using Kannel bearerbox version `svn-r4837M' successfully in
 production.
 You can go ahead for latest SVN release. Usually SVN is more recent and
 found stable.

 --
 Regards,

 Abdul Basit | P: +92 32 1416 4196 | O: +92 30 0841 1445 | UK: +447937429394



 On Thu, Sep 13, 2012 at 9:46 PM, spameden spame...@gmail.com wrote:

 You can use version from the trunk. Latest SVN revision.


 2012/9/13 Ahmed Shabana a.shab...@cequens.com

  ** **

 Dears ,

 What is the most stable kannel version we can use at
 production ?

 ** **

 Best Regards,

 ** **

 Ahmed Shabana | Creative Communication Solutions – Cequens ** **

 Skypeid : AhmedShabana2000




Re: Unstable BB plz help

2012-09-12 Thread spameden
Try compiling latest version from the trunk.

2012/9/12 Ahmed Shabana a.shab...@cequens.com

  But we have at contract lot more than 1 submit-sm per second !!

 ** **

 How can we reach this with your suggested config ?

 ** **

 Best Regards,

 ** **

 Ahmed Shabana | Creative Communication Solutions – Cequens 

 Skypeid : AhmedShabana2000

 ** **

 *From:* hafez ahmad [mailto:hafezad...@gmail.com]
 *Sent:* Wednesday, September 12, 2012 2:53 PM
 *To:* Ahmed Shabana
 *Cc:* de...@vm1.kannel.org
 *Subject:* Re: Unstable BB plz help

 ** **

 Dear Ahmad,

 ** **

 As I see in you log you connect to STC , right ? try to set 
 max-pending-submits=1
 also please set the wait-ack and wait-ack-expire.

 ** **

 Regards,

 Hafez

 On Wed, Sep 12, 2012 at 3:41 PM, Ahmed Shabana a.shab...@cequens.com
 wrote:

  

 *Dear Devels ,*

 * *

 *The Bearerbox crash frequently with me with those screen dump messages **
 ***

  

 *glibc detected *** /usr/local/sbin/bearerbox: munmap_chunk(): invalid
 pointer: 0x7f4ae0009860 

 *=== Backtrace: =*

 */lib64/libc.so.6(+0x753c6)[0x7f4b1bd9f3c6]*

 */usr/local/sbin/bearerbox(octstr_destroy+0x38)[0x4892a8]*

 */usr/local/sbin/bearerbox(msg_destroy+0x2f)[0x41e57f]*

 */usr/local/sbin/bearerbox[0x415dde]*

 */usr/local/sbin/bearerbox(bb_smscconn_send_failed+0x2e)[0x415fce]*

 */usr/local/sbin/bearerbox[0x4550ec]*

 */usr/local/sbin/bearerbox[0x4561ba]*

 */usr/local/sbin/bearerbox[0x47d22e]*

 */lib64/libpthread.so.0(+0x7851)[0x7f4b1cbfb851]*

 */lib64/libc.so.6(clone+0x6d)[0x7f4b1be116dd]*

 *=== Memory map: *

 *0040-004c1000 r-xp  fd:00 2242404
 /usr/local/sbin/bearerbox*

 *006c1000-006c2000 rw-p 000c1000 fd:00 2242404
 /usr/local/sbin/bearerbox*

 *006c2000-0075f000 rw-p  00:00 0*

 *0147f000-015ea000 rw-p  00:00 0
 [heap]*

 *7f4ad000-7f4ad0098000 rw-p  00:00 0*

 *7f4ad0098000-7f4ad400 ---p  00:00 0*

 *7f4ad400-7f4ad4021000 rw-p  00:00 0*

 *7f4ad4021000-7f4ad800 ---p  00:00 0*

 *7f4ad800-7f4ad8024000 rw-p  00:00 0*

 *7f4ad8024000-7f4adc00 ---p  00:00 0*

 *7f4adc00-7f4adc021000 rw-p  00:00 0*

 *7f4adc021000-7f4ae000 ---p  00:00 0*

 *7f4ae000-7f4ae0021000 rw-p  00:00 0*

 *7f4ae0021000-7f4ae400 ---p  00:00 0*

 *7f4ae43fa000-7f4ae43fb000 ---p  00:00 0*

 *7f4ae43fb000-7f4ae4dfb000 rw-p  00:00 0*

 *7f4ae4dfb000-7f4ae4dfc000 ---p  00:00 0*

 *7f4ae4dfc000-7f4ae57fc000 rw-p  00:00 0*

 *7f4ae57fc000-7f4ae57fd000 ---p  00:00 0*

 *7f4ae57fd000-7f4ae61fd000 rw-p  00:00 0*

 *7f4ae61fd000-7f4ae61fe000 ---p  00:00 0*

 *7f4ae61fe000-7f4ae6bfe000 rw-p  00:00 0*

 *7f4ae6bfe000-7f4ae6bff000 ---p  00:00 0*

 *7f4ae6bff000-7f4ae75ff000 rw-p  00:00 0*

 *7f4ae75ff000-7f4ae760 ---p  00:00 0*

 *7f4ae760-7f4ae800 rw-p  00:00 0*

 *7f4ae800-7f4ae8021000 rw-p  00:00 0*

 *7f4ae8021000-7f4aec00 ---p  00:00 0*

 *7f4aec00-7f4aec021000 rw-p  00:00 0*

 *7f4aec021000-7f4af000 ---p  00:00 0*

 *7f4af000-7f4af0021000 rw-p  00:00 0*

 *7f4af0021000-7f4af400 ---p  00:00 0*

 *7f4af400-7f4af4021000 rw-p  00:00 0*

 *7f4af4021000-7f4af800 ---p  00:00 0*

 *7f4af800-7f4af8021000 rw-p  00:00 0*

 *7f4af8021000-7f4afc00 ---p  00:00 0*

 *7f4afc00-7f4afc021000 rw-p  00:00 0*

 *7f4afc021000-7f4b ---p  00:00 0*

 *7f4b-7f4b00021000 rw-p  00:00 0*

 *7f4b00021000-7f4b0400 ---p  00:00 0*

 *7f4b0400-7f4b04021000 rw-p  00:00 0*

 *7f4b04021000-7f4b0800 ---p  00:00 0*

 *7f4b0800-7f4b08021000 rw-p  00:00 0*

 *7f4b08021000-7f4b0c00 ---p  00:00 0*

 *7f4b0c7f4000-7f4b0c7f5000 ---p  00:00 0*

 *7f4b0c7f5000-7f4b0d1f5000 rw-p  00:00 0*

 *7f4b0d1f5000-7f4b0d1f6000 ---p  00:00 0*

 *7f4b0d1f6000-7f4b0dbf6000 rw-p  00:00 0*

 *7f4b0dbf6000-7f4b0dbf7000 ---p  00:00 0*

 *7f4b0dbf7000-7f4b0e5f7000 rw-p  00:00 0*

 *7f4b0e5f7000-7f4b0e5f8000 ---p  00:00 0*

 *7f4b0e5f8000-7f4b0eff8000 rw-p  00:00 0*

 *7f4b0eff8000-7f4b0eff9000 ---p  00:00 0*

 *7f4b0eff9000-7f4b0f9f9000 rw-p  00:00 0*

 *7f4b0f9f9000-7f4b0f9fa000 ---p  00:00 0*

 *7f4b0f9fa000-7f4b103fa000 rw-p  00:00 0*

 *7f4b103fa000-7f4b103fb000 ---p  00:00 0*

 *7f4b103fb000-7f4b10dfb000 rw-p  00:00 0*

 

Re: Need Help Adding foreign_id in Current SVN SQLBox

2012-09-06 Thread spameden
Did you remove old kannel's store file before starting sqlbox?
(/var/lib/kannel/kanel.store)

2012/9/7 Willy Mularto sangpr...@gmail.com

 Hi List,
 It's me again. I'm adding foreign_id field in the current sqlbox. And
 these are what I have done.

 sqlbox_mysql.c
 Msg *mysql_fetch_msg()
 {
 …
 msg-sms.foreign_id  = octstr_null_create(row[27]);
 …
 }

 void mysql_save_msg(Msg *msg, Octstr *momt /*, Octstr smsbox_id */)
 {
 …
 sql =
 octstr_format(SQLBOX_MYSQL_INSERT_QUERY….st_str(msg-sms.foreign_id));
 …
 }


 sqlbox_mysql.h
 #define SQLBOX_MYSQL_CREATE_LOG_TABLE CREATE TABLE IF NOT EXISTS %S ( \
 sql_id BIGINT(20) NOT NULL AUTO_INCREMENT PRIMARY KEY, \
 ...foreign_id VARCHAR(255) NULL)

 #define SQLBOX_MYSQL_CREATE_INSERT_TABLE CREATE TABLE IF NOT EXISTS %S ( \
 foreign_id VARCHAR(255) NULL)

 #define SQLBOX_MYSQL_SELECT_QUERY SELECT sql_id, momt, sender, receiver,
 udhdata, \
 ...foreign_id FROM %S LIMIT 0,1

 #define SQLBOX_MYSQL_INSERT_QUERY INSERT INTO %S ( sql_id, momt, sender, \
 ...%S)

 The compilation smooth and the daemon launched well. But when I tried to
  inject row then SQLBox dies on panic
 2012-09-06 18:27:29 [27785] [4] PANIC: Internal error: unknown message
 type: 10507536
 2012-09-06 18:27:29 [27785] [4] PANIC:
 /home/sprabv/kanopi/test/sbin/sqlbox(gw_backtrace+0xae) [0x42656e]
 2012-09-06 18:27:29 [27785] [4] PANIC:
 /home/sprabv/kanopi/test/sbin/sqlbox(gw_panic+0x155) [0x4266d5]
 2012-09-06 18:27:29 [27785] [4] PANIC:
 /home/sprabv/kanopi/test/sbin/sqlbox(msg_pack+0x4c) [0x40d28c]
 2012-09-06 18:27:29 [27785] [4] PANIC:
 /home/sprabv/kanopi/test/sbin/sqlbox() [0x40a666]
 2012-09-06 18:27:29 [27785] [4] PANIC:
 /home/sprabv/kanopi/test/sbin/sqlbox() [0x40a789]
 2012-09-06 18:27:29 [27785] [4] PANIC:
 /home/sprabv/kanopi/test/sbin/sqlbox() [0x41dfae]
 2012-09-06 18:27:29 [27785] [4] PANIC: /lib/libpthread.so.0(+0x69ca)
 [0x7f77896469ca]
 2012-09-06 18:27:29 [27785] [4] PANIC: /lib/libc.so.6(clone+0x6d)
 [0x7f778918ccdd]

 It is said unknown message type AFAIK foreign_id is already in msg-decl.h

 Would you give some clue? Many thanks for your assistance.


 Willy Mularto
 F300HD+MR18DE (NLC1725)












Re: delivery report

2012-09-05 Thread spameden
1. Try using kannel from latest SVN, there were numerous bugs fixed.

2. Contact your SMSC for correct settings (i.e. throughput,
max-pending-submits, wait-ack, and other parameters)

3. Try submitting sms directly via cgi/sendsms url to avoid overhead of
MySQL storage.

4. Use persistent DLR storage.

2012/9/5 KC kiangchi...@dv9.com

 Hi Shabana,

 The following is the detail of Kannel version that I am currently using now

 Kannel bearerbox version `1.4.2'. Build `Jan 21 2009 15:21:38', compiler
 `4.1.2 20071124 (Red Hat 4.1.2-42)'. System Linux, release
 2.6.18-308.4.1.el5PAE, version
#1 SMP Tue Apr 17 17:47:38 EDT 2012, machine i686

 The DLR always stuck at ACK=8 when the system send a large number of SMS
 via cron job. May I know how many SMS that your production system try to
 send per day ?  Our system take about 2 hours to send out 1104 SMS. I
 already keep the script to delay 6 second per SMS, should I increase the
 delay time ?

 YOu said you are using dlr-mask = 7 (1=success, 2=failed, then what is
 4= ??)
 Regards,
 KC


 On 5/9/2012 4:46 PM, Ahmed Shabana wrote:

 Strange , we use dlr-mask = 7 in  our production and get sufficient
 information , any way

 regard the suspended DLR your can remove it by free 2 files a.
 store-file  and you will find local file backup located in the same dir
 of the store-file with the same name and .bak extension

 could you forward 1)  the kannel version you use
 and 2)  sample smpp dump or tshark capture of the dlr that returned from
 your provider ?



 __**__
 From: KC [kiangchi...@dv9.com]
 Sent: Wednesday, September 05, 2012 8:12 AM
 To: Ahmed Shabana
 Cc: Willy Mularto; de...@vm1.kannel.org
 Subject: Re: delivery report

 Today I tried to send out 1100 SMS message to public users, the kannel
 only able get the delivery status report SUCCESS for the 301 message, then
 the rest of the SMS only received the ACK = 8  (SMSC SUBMIT) delivery
 status report.

 I was using the dlr-mask=31, to capture any status returned from SMS
 center. I have set restrict my PHP script
 only send out SMS per 6 seconds to avoid the kannel overloaded. It seems
 like the delivery status report still unstable.
 Since the last delivery status report that captured from the system is 8
 (sms center submit), it is quite hard for us to
 confirm if the SMS has reached to the recipient mobile.

 I have tried to check the kannel status with the following command
 lynx http://127.0.0.1:port_number**/status?password=pass

 Then I found the DLR got 679 queue. Most of the time this number will
 not reset to zero until I restart the kannel.

 Status: running, uptime 0d 6h 39m 33s

 WDP: received 0 (0 queued), sent 0 (0 queued)

 SMS: received 1334 (0 queued), sent 985 (0 queued), store size 0

 SMS: inbound (0.01,0.00,0.06) msg/sec, outbound (0.04,0.04,0.04) msg/sec

DLR: 679 queued, using internal storage

Box connections:
  smsbox:(none), IP 127.0.0.1 (0 queued), (on-line 0d 6h 39m 33s)

 SMSC connections:
  INAT2[IN] (online 23955s, rcvd 1333, sent 985, failed 0,
 queued 0 msgs)


 On 2/9/2012 5:22 PM, Ahmed Shabana wrote:

 You can check the memory queue from the Kannel store-status page  .

 Best Regards,

 Ahmed Shabana | Creative Communication Solutions - Cequens
 Skypeid : AhmedShabana2000

 El-Serag Mall, Building # 2, 11371 Nasr City - Cairo - Egypt
 King Fahd Road, ABRAJ Atta'awuneya, North Tower, 11311 Riyadh - Saudi
 Arabia

 -Original Message-
 From: devel-boun...@kannel.org 
 [mailto:devel-bounces@kannel.**orgdevel-boun...@kannel.org]
 On Behalf Of KC
 Sent: Monday, August 27, 2012 10:04 AM
 To: Willy Mularto
 Cc: de...@vm1.kannel.org
 Subject: Re: delivery report

 Strange thing is I only can receive the status report 8 or 16 only.
 Can you please advice is there any way I can check the queue ?

 Regards,
 KC



 On 27/8/2012 3:43 PM, Willy Mularto wrote:

 A bit weird, but it might be caused by too many pending final DLR and
 the queue reached the threshold and  Kannel started to ignore incoming DLR.



 On Aug 27, 2012, at 2:32 PM, KC wrote:

  Hi Willy,

 Thanks for the response. Dlr-Mask is 31. Last time we can accept the
 delivery status success report.
 I just tried to restart the kannel and send a test SMS. Now I can
 receive the SUCESSS delivery report after restarting the kannel. Do
 you know what cause this issues ?

 Thanks
 KC

 On 27/8/2012 3:06 PM, Willy Mularto wrote:

 This should be posted to users's list. There are some possibilities:
 1. What is your dlr-mask?
 2. Have you checked with your telco?
 3. or have you checked  the bearerbox log?



 On Aug 27, 2012, at 1:52 PM, KC wrote:

  Dear Support,

 I have tried to set the following


 dlr-mask=31dlr-url=http://**127.0.0.1/dlr.php?dlr=%ddest=**
 %preport=
 %ALogID=

 Previously we still can receive the delivery status report success
 1 from the dlr-url.

 Since last 2 weeks our system never received the delivery success
 

Re: Concatenated MT - configurable registered_delivery behaviour

2012-08-07 Thread spameden
Yes, I also would like to approach this patch. Because sometimes when
client doesn't have enough memory in his phone or any other device he would
receive only 1 or 2 messages instead of 5 for example.

But, I'd like to minimize number of records of MySQL/PGSQL or any other DB,
so let's say you have MT with 5 parts and you are basically updating
counter of parts received by client. Is it possible?

Let me know If I was clean.

Sorry for my english.

2012/8/7 Rene Kluwen rene.klu...@chimit.nl

 Interesting!

 ** **

 How would one distinguish (dlr-wise) between the different parts?

 ** **

 == Rene


 *From:* devel-boun...@vm1.kannel.org [mailto:devel-boun...@vm1.kannel.org]
 *On Behalf Of *Paul Cook
 *Sent:* Tuesday, 07 August, 2012 18:09
 *To:* de...@vm1.kannel.org
 *Subject:* Concatenated MT - configurable registered_delivery behaviour***
 *

 ** **

 Hi,

 We have a number of clients who use kannel as a client to submit to our
 messaging service.
 A common problem they encounter is that when sending a long MT, it is
 split correctly into multiple parts, but registered_delivery is set to 0
 for all parts greater than 0.

 This attached patch makes that behavior optional, by adding the following
 config line to an smsc group:

  concatenated-sms-dlr-for-all-parts = true

 If set, then registered_delivery will not be altered for the subsequent
 parts of the concatenated set, and the client app will receive delivery
 receipts for all parts.


 Please consider this patch for inclusion in the next release


 Thanks


 Paul Cook



Re: Where I can download the previous version of opensmppbox

2012-08-07 Thread spameden
Well, for me it's ok, as long as new options do provide backward
compatibility with old features.

The only thing I'm really missing is correct examples of configuration
bundled with kannel / sqlbox / opensmppbox. Hopefully, this will be sorted.

Thanks.

2012/8/7 Rene Kluwen rene.klu...@chimit.nl

 I moved this thread to the devel list.

 ** **

 Yes, for several reasons it’s better to stick with the latest options.

 But over the past (short) time, I have been confronted with a number of
 kannel updates which were not backward compatible.

 This is not convenient as a Kannel administrator, if you are not a
 developer.

 ** **

 So please be cautious committing your changes.

 ** **

 =+= Rene

 ** **

 ** **

 *From:* spameden [mailto:spame...@gmail.com]
 *Sent:* Tuesday, 07 August, 2012 19:42
 *To:* Rene Kluwen
 *Cc:* admin; us...@vm1.kannel.org
 *Subject:* Re: Where I can download the previous version of opensmppbox***
 *

 ** **

 Of course you can revert with SVN, but better stick to latest version with
 altered options.

 Regards.

 2012/8/7 Rene Kluwen rene.klu...@chimit.nl

 But to answer your question: You can checkout previous versions with (for
 instance):

 svn checkout -r {2006-02-17}

 See:

 http://svnbook.red-bean.com/en/1.7/svn.tour.revs.specifiers.html



 == Rene


 -Original Message-
 From: users-boun...@vm1.kannel.org [mailto:users-boun...@vm1.kannel.org]
 On Behalf Of admin
 Sent: Tuesday, 07 August, 2012 14:31
 To: us...@vm1.kannel.org

 Subject: Where I can download the previous version of opensmppbox

 Good time of day!

 I have installed the last version of opensmppbox and have the bug which is
 talked about here

 https://redmine.kannel.org/issues/649

 Where I can download the .63 version? There is no this bug in this version
 as they wrote here.


 

 ** **



Re: logging messages to sqlbox

2012-08-06 Thread spameden
It's all correct, dlr table is only used to store temporarily items which
didn't receive DLR yet.

You need to check sent_sms table for archived DLR / MT / MO entries.

2012/8/6 Clay Zevely clayzev...@gmail.com

 I have reinstalled kannel via svn. Then installed sqlbox.

 ** **

 I have created two separate configs.

 Smskannel.conf and sqlbox.conf.

 ** **

 ** **

 I have injected an sms via smsc and it is making to to the kannel however
 I do npt see it logging in the database.

 I am sure I must have something configured incorrectly however I am at a
 loss what or where.

 I have included sections of the configs and logs below do see the messages
 in  the kannel.store.bak file and can attach that if needed,

 How can I get the messages to log to the database?

 ** **

 If I connect to mysql and select * from dlr I get 

 mysql select * from dlr;

 Empty set (0.00 sec)

 ** **

 mysql

 ** **

 ** **

 Clay


 ___
 

 ** **

 My smkannel.cfg is below

 ** **

 #CORE

 group = core

 admin-port = 13000

 smsbox-port = 13001

 admin-password = hostin

 status-password = hostin

 admin-allow-ip = *.*.*.*

 wdp-interface-name = *

 log-file = /var/log/kannel/bearerbox.log

 store-file = /var/log/kannel/kannel.store

 log-level = 0

 box-deny-ip = *.*.*.*

 box-allow-ip = *.*.*.*

 dlr-storage=mysql

 ** **

 #SMSBOX SETUP

 group = smsbox

 bearerbox-host = localhost

 sendsms-port = 13013

 sendsms-chars = 0123456789 +-

 global-sender = 12345

 log-file = /var/log/kannel/smsbox.log

 log-level = 0

 ** **

 # SEND-SMS USERS

 group = sendsms-user

 username = test

 password = hostin

 ** **

 group = mysql-connection

 id = sqlbox-db

 host = localhost

 username = root

 password = hostin

 database = delivery

 max-connections = 10

 ** **

 # DLR SETUP

 #mysql connection

 group = mysql-connection

 id = mydlr

 host = localhost

 username = root

 password = hostin

 database = dlr

 max-connections = 10

 ** **

 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 Fake

 group = smsc

 smsc = fake

 port = 1

 connect-allow-ip = 127.0.0.1

 ** **

 # A do-nothing service.

 group = sms-service

 keyword = nop

 text = You asked nothing and I did it!

 ** **

 # SMS SERVICE black-list

 group = sms-service

 keyword = black

 text = You are not allowed to use this service, Go away!

 ** **

 # SMSC SMPP

 group = smsc

 smsc = smpp

 host = 208.52.112.246

 port = 16400

 receive-port = 16400

 smsc-username = Track

 smsc-password = Track

 system-type = VMA

 address-range = 

 ** **

 # SMS SERVICE Default

 # there should be default always

 group = sms-service

 keyword = default

 text = No service specified. 

 ** **


 _
 

 ** **

 my sqlbox.conf is below

 group = sqlbox

 id = mydlr

 smsbox-id = smsbox

 bearerbox-host = localhost

 bearerbox-port = 13001

 smsbox-port = 13005

 sql-log-table = sent_sms

 sql-insert-table = send_sms

 log-file = /var/log/kannel/kannel-sqlbox.log

 log-level = 0

 ** **

 group = mysql-connection

 id = mydlr

 host = localhost

 username = root

 password = hostin

 database = dlr

 max-connections = 10


 
 

 ** **

 In bearerbox.log I see message

 2012-08-06 11:54:22 [4714] [8] DEBUG: SMPP PDU 0xa1d04d8 dump:

 2012-08-06 11:54:22 [4714] [8] DEBUG:   type_name: deliver_sm

 2012-08-06 11:54:22 [4714] [8] DEBUG:   command_id: 5 = 0x0005

 2012-08-06 11:54:22 [4714] [8] DEBUG:   command_status: 0 = 0x

 2012-08-06 11:54:22 [4714] [8] DEBUG:   sequence_number: 34 = 0x0022**
 **

 2012-08-06 11:54:22 [4714] [8] DEBUG:   service_type: NULL

 2012-08-06 11:54:22 [4714] [8] DEBUG:   source_addr_ton: 0 = 0x***
 *

 2012-08-06 11:54:22 [4714] [8] DEBUG:   source_addr_npi: 0 = 0x***
 *

 2012-08-06 11:54:22 [4714] [8] DEBUG:   source_addr: 17577230835

 2012-08-06 11:54:22 [4714] [8] DEBUG:   dest_addr_ton: 0 = 

Re: how can I add delay between concatenated message parts

2012-07-17 Thread spameden
Is there any example on 2nd way?

2012/7/17 Rene Kluwen rene.klu...@chimit.nl

 Kannel should re-send the second message part upon receiving a “message
 queue full” message.

 Having said that, the error is on your smsc side. IMHO.

 If you want to add a delay… there’s 1. the option to change the Kannel
 sources. Or 2. (the hard way) split up the message in your php application
 and send each message part separately.

 ** **

 == Rene

 ** **

 *From:* devel-boun...@kannel.org [mailto:devel-boun...@kannel.org] *On
 Behalf Of *Amin Mukhaimer
 *Sent:* Tuesday, 17 July, 2012 08:41
 *To:* devel@kannel.org
 *Subject:* how can I add delay between concatenated message parts

 ** **

 Dear all,

 ** **

 I already searched if there is an option already to add a delay between
 each part of the concatenated SMS, since sending more than 2 SMSs together
 returns *“Message Queue Full”* Error, my SMSC contact says my *throughput
 is 12 but I should add a small delay between each SMS sent, *even 0.1
 second, so the SMSs don’t arrive *in 1 packet.*

 *
 *

 It worked in short SMSs I stopped getting the error after I added sleep
 function “usleep(10)” in my PHP application after calling sendsms page,
 but long messages are still sent together as 1 packet, and no way to add
 delay in my PHP application for those.

 ** **

 I hope you guys have an idea of what I’m talking about and maybe there is
 a workaround to solve this problem.

 ** **

 Thanks

 Amin