tag 602739 patch thanks Hello,
Please try this patch and report if it works. -- WBR, Andrew
From: Andrew Shadura <[email protected]> Subject: Fix +CSMS response handling Date: Mon, 28 May 2012 12:30:32 +0200 diff --git a/gsmlib/gsm_me_ta.cc b/gsmlib/gsm_me_ta.cc --- a/gsmlib/gsm_me_ta.cc +++ b/gsmlib/gsm_me_ta.cc @@ -89,7 +89,17 @@ // find out whether we are supposed to send an acknowledgment Parser p(_at->chat("+CSMS?", "+CSMS:")); - _capabilities._sendAck = p.parseInt() >= 1; + try { + _capabilities._sendAck = p.parseInt() >= 1; + } + catch (GsmException &e) + { + if (e.getErrorClass() == ParserError) { + _capabilities._sendAck = 0; + } else { + throw e; + } + } // set GSM default character set try @@ -1017,8 +1027,18 @@ unsigned int MeTa::getMessageService() throw(GsmException) { - Parser p(_at->chat("+CSMS?", "+CSMS:")); - return p.parseInt(); + try { + Parser p(_at->chat("+CSMS?", "+CSMS:")); + return p.parseInt(); + } + catch (GsmException &e) + { + if (e.getErrorClass() == ParserError) { + return 0; + } else { + throw e; + } + } } void MeTa::getSMSRoutingToTA(bool &smsRouted,
signature.asc
Description: PGP signature

