The attatched patch logs when the AT module fails to send SMSs due to
retry error.
This patches against the current CVS version.

The retry error typically happens when the modem tries to send an SMS
multiple times, but in the end gives up. Before there was no detailed
notification for the logs. This patch logs the mobile number which failed
and the SMS message which was to be sent.
This type of error may be due to an incorrect mobile number, or strange
pdu structure.

thanks
-- 
Matt

For electronic musicians ...
Vector Bass          : http://mffmvectorbass.sourceforge.net/
For developers ...
3D Audio Library     : http://mffm3daudiolib.sourceforge.net/
Multimedia Time Code : http://mffmtimecode.sourceforge.net/
? patch.retry
Index: gw/smsc_at.c
===================================================================
RCS file: /home/cvs/gateway/gw/smsc_at.c,v
retrieving revision 1.42
diff -u -r1.42 smsc_at.c
--- gw/smsc_at.c        2001/09/19 15:59:37     1.42
+++ gw/smsc_at.c        2001/10/11 04:28:59
@@ -382,6 +382,12 @@
                                debug("AT", 0, "send command status: %d", ret);
                                retries--;
                         }
+                       if (retries<0){
+                         debug("AT", 0, "AT: Retries exceeded \nSMS send failure :");
+                         debug("AT", 0, "Phone number: %s", 
+octstr_get_cstr(msg->sms.receiver));
+                         debug("AT", 0, "SMS data: %s", 
+octstr_get_cstr(msg->sms.msgdata));
+                       }
+
                 }
         }
         return ret;

Reply via email to