Hi,

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

[EMAIL PROTECTED] 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

Reply via email to