Package: alamin-server
Version: 0.3.6-5
Severity: normal
Tags: patch

If the string "OK" expected as modem answer encountered in SMS body,
then the chat ends and we get incomplete message body. To avoid it, SMS
must be readed in PDU mode.

But here's a quick patch:

--- gsgmdd.old  Wed Apr  6 16:43:55 2005
+++ gsgmdd.new  Wed Apr  6 17:50:20 2005
@@ -884,7 +884,8 @@
 #********************
 
 sub getsms_at {
-  my $commandtorun = $opt_chatpath." -v -e TIMEOUT 20 \'\' \'AT+CMGF=1\' OK 
\'AT+CMGL=\"ALL\"\' OK \'\' 2>/tmp/getsms_at.out \<$opt_gsmdeviceport 
\>$opt_gsmdeviceport";
+  # What if the body itself contains string "OK"?
+  my $commandtorun = $opt_chatpath." -v -e TIMEOUT 20 \'\' \'AT+CMGF=1\' OK 
\'AT+CMGL=\"ALL\"\' \'\r\n\r\nOK\r\n\' \'\' 2>/tmp/getsms_at.out 
\<$opt_gsmdeviceport \>$opt_gsmdeviceport";
   my $answer = system $commandtorun;
   my $counter = 0;
   my @table;










-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux spider 2.4.18 #1 Tue Jan 11 20:42:15 MSK 2005 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages alamin-server depends on:
ii  libdigest-md5-perl            2.13-2     MD5 Message Digest for Perl
ii  perl                          5.6.1-8.9  Larry Wall's Practical Extraction 
ii  sysklogd                      1.4.1-10   System Logging Daemon
ii  sysklogd [system-log-daemon]  1.4.1-10   System Logging Daemon



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to