Package: smsclient
Version: 2.0.8z-7
Severity: important

The UCP response from the SMSC is between STX and ETX and all other data shall 
be ignored. But currently (up to version 2.0.9a) sms_client is sensitive 
to extra characters.

I've added a simple line for both libucp.c and ucp.c, function 
UCP_parse_response(), just before the sscanf():

--snip--
        /* ------------------------------------------------------------ */
        /* Example:                                                     */
        /* <STX>01/00045/R/01/A/0041544180972:161298112313/A6<ETX>      */
        /*     trn len orc ot a        recip:time         chksum        */
        /* ------------------------------------------------------------ */

        while (*string && (*string != '\002')) string++; //filter leading 
rubbish
                
        result = sscanf(string, "\002%02d/%05d/%c/%02d/%c",
                        &tranRefNo,
                        &length,
                        &ORC,
                        &opType,
                        &ack        );
--snip--

This patch makes it usable for pager services like swissphone or telepage which 
are combined SMSC for UCP, TAP and other, which tend to send
fragments from other protocols until they recognize the correct protocol used 
by the client.


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-3-k7
Locale: LANG=de_CH, LC_CTYPE=de_CH (charmap=ISO-8859-1)

Versions of packages smsclient depends on:
ii  debconf [debconf-2.0]         1.5.11     Debian configuration management sy
ii  libc6                         2.6.1-1    GNU C Library: Shared libraries

smsclient recommends no packages.

-- debconf information:
  smsclient/move:



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

Reply via email to