Yep, smsbox doesn't. Sqlbox, if you're not careful, does.

The problem is with the way messages are checked. When messages are received
from a box, they go to memory first _and_ the store later. In that case,
bearerbox doesn't perform any sanity checks on the sms type field.

Now, when messages are retrieved from the store during boot, a sanity check
is performed and the whole system panics if it encounter a single invalid
message.

I think two things would be needed here:

1. Perform the same sanity checks when getting messages from boxes and
reject anything that would cause a problem when retrieved from the store.

2. Add an option to boot kannel discarding those corrupted messages. A few
hundred corrupted messages in the store could mean a nightmare when trying
to restart a crashed server.

Regards,

Alex

2010/8/9 Nikos Balkanas <[email protected]>

> Hi,
>
> I can verify to the thousands of kannel users all over the wold, that
> smsbox doesn't have any such issue. However this seems an issue with
> bearerbox as well. SMPPbox should really generate correct Msg *, and
> bearerbox shouldn't pnick about them. I mean if it is happy processing them
> live, why should it panic at start?
>
>
> BR,
> Nikos
> ----- Original Message ----- From: "Tomasz" <[email protected]>
> To: <[email protected]>
> Sent: Monday, August 09, 2010 8:14 PM
>
> Subject: Re: Problem with spool store - missing sms_type
>
>
> Hi,
>
> Open SMPPBOX haven't its own queue - I submit messages to Bearerbox
> via open SMPPBOX from other system. But sometimes these messages are
> being queued by Bearerbox in spool.
>
> But when Bearerbox is restarted while at spool there are some messages, it
> PANICs and won't run.
>
> The problem is because messages at spool haven't Type field. They have
> SMS ID, Time, Sender, Receiver, SMSC ID, BOX ID,  UDH, Message fields
> but Type field is empty.
>
> Bearerbox during start informs about it:
>
> 2010-08-09 17:49:55 [29887] [0] PANIC: Not handled sms_type within store!
>
> I didn't tried submitting messages to BEARERBOX from a standard SMSBOX
> yet, only by open SMPPBOX so I don't know at the moment if this
> problem happens only when using open SMPPBOX.
>
> @Nikos Sorry for adressing you private, it was my mistake.
>
> Tomasz
>
>  Please address list.
>>
>
>  I didn't know that opensmppbox has now a queue. Clearly you shouldn't have
>> overlapping spools between bb and openssmppbox. Configure different spool
>> areas for each one.
>>
>
>  BR,
>> Nikos
>> ----- Original Message ----- From: "Tomasz" <[email protected]>
>> To: "Nikos Balkanas" <[email protected]>
>> Sent: Monday, August 09, 2010 7:55 PM
>> Subject: Re: Problem with spool store - missing sms_type
>>
>
>
>  Hi,
>>
>
>  Yes, I know that they are corrupted, but all msgs in spool are always
>> corrupted :) I removed them, but all new messages queued at spool are
>> corrupted.
>>
>
>  They are probably incorrectly saved by Bearerbox/openSMPPBOX.
>>
>
>  The problem starts when I want to restart Bearerbox - it displays
>> PANICs and won't start until I remove spool manually. It causes that I
>> can't restart Bearerbox if there is some queue in spool...
>>
>
>  Tomasz
>>
>
>
>  W Twoim liΒ cie datowanym 9 sierpnia 2010 (18:34:44) moΞ na przeczytaΞ¶:
>>
>
>  Hi,
>>>
>>
>  You have a corrupted SMS in your spool. Remove it and you will be fine.
>>>
>>
>  BR,
>>> Nikos
>>> ----- Original Message ----- From: "Tomasz" <[email protected]>
>>> To: <[email protected]>
>>> Sent: Monday, August 09, 2010 7:30 PM
>>> Subject: Problem with spool store - missing sms_type
>>>
>>
>
>  Hi,
>>>
>>
>  Today I've found some critical error with kannel spool store-type.
>>> When I have messages in a queue (spool) and restart Bearerbox I get
>>> Panic:
>>>
>>
>  2010-08-09 17:49:55 [29887] [0] PANIC: Not handled sms_type within store!
>>> 2010-08-09 17:49:55 [29887] [0] PANIC:
>>> /usr/local/sbin/bearerbox(gw_panic+0x14b) [0x487f5b]
>>> 2010-08-09 17:49:55 [29887] [0] PANIC: /usr/local/sbin/bearerbox
>>> [0x419721]
>>> 2010-08-09 17:49:55 [29887] [0] PANIC: /usr/local/sbin/bearerbox
>>> [0x419144]
>>> 2010-08-09 17:49:55 [29887] [0] PANIC: /usr/local/sbin/bearerbox
>>> [0x419166]
>>> 2010-08-09 17:49:55 [29887] [0] PANIC: /usr/local/sbin/bearerbox
>>> [0x419689]
>>> 2010-08-09 17:49:55 [29887] [0] PANIC:
>>> /usr/local/sbin/bearerbox(main+0x80f)
>>> [0x40f22f]
>>> 2010-08-09 17:49:55 [29887] [0] PANIC:
>>> /lib/libc.so.6(__libc_start_main+0xe6) [0x7f5cdfd3b1a6]
>>> 2010-08-09 17:49:55 [29887] [0] PANIC: /usr/local/sbin/bearerbox
>>> [0x40db09]
>>>
>>
>  When I checked store-status (via http admin) I could see that "Type" field
>>> of all messages was empty. All messages were submitted to Bearerbox
>>> via open SMPPBOX.
>>>
>>
>  My Kannel version is from latest SVN (Rev. 4837).
>>>
>>
>  Tomasz
>>>
>>
>
>
>

Reply via email to