Package: gsm-utils
Version: 1.10-10

Some phones such as SonyEricsson W880i act somewhat different as expected
by the current version of gsmlib. For example, when sending "AT+CMGF=0"
the answer on success is "+CMGF: 0".
This causes gsmsendsms to fail sending SMS messages with these phones.

I got it working by adding the following code snippet to gsmlib/ gsm_at.cc in method
GsmAt::chat right after the do .. while loop:

114a115,125
> // some mobiles respond to commands like "at+cmgf=0" with "+CMGF: 0" on success
>   #include <string>
>   string::size_type loc = atCommand.find( "=", 1 );
>   if (loc != string::npos) {
>       string expect = atCommand;
>       expect.replace(loc, 1, " ");
>       expect.insert(loc, ":");
>       if (matchResponse(s, expect))
>       return "";
>   }
>

Kind regards
Stefan Katerkamp
http://katerkamp.de



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

Reply via email to