check_sendsms.sh fails

"Bostock James" <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <84E219D8B81E5F4688C4A8992426CD830148EB81@fr-par-mail01.comverse.com>
Hi,

I find that, both on Linux and AIX, the check_sendsms.sh script fails:

[kannel@madlin2 gateway]$ checks/check_sendsms.sh
check_sendsms.sh failed with empty message
See check_sendsms_bb.log check_sendsms.log check_sendsms_smsc.log
check_sendsms_sms.log for info

Looking at the script, it appears to be searching for '<123 234 text
<Empty reply from service provider>' in the log files.

Looking at the code, reply_emptymessage is used at line 335 of
gw/smsbox.c (current CVS). I added a debug statement before the "if"
statement at line 331. The result is that the only time that the length
of the message data is 0, the sms_type is not mt_reply:

check_sendsms_sms.log:2008-08-14 10:38:43 [19476] [3] DEBUG: Checking
for empty message. octstr_len(msg->sms.msgdata) = 0, msg->sms.sms_type
== mt_reply = 0 (msg->sms.sms_type = 2, mt_reply = 1)

As a result, msg->sms.msgdata is never set to reply_emptymessage and the
check script fails.

Type 2 appears to be mt_push (gw/msg.h).

Does this test fail for everyone?

Regards,

James
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.