Elink 343p

Gert Doering (gert@greenie.muc.de)
Thu, 22 Jul 1999 22:31:35 +0200


Hi,

On Tue, Jul 20, 1999 at 10:59:57PM +0200, Gert Doering wrote:
> > 07/20 14:53:16 yC0   wfr: rc=0, drn=0
> > 07/20 14:53:16 yC0    CND: check no: '429'
> 
> OK, that's fine.  There is enough information here to find out what's
> going wrong - some "pointer increment for the ELSA case" or something
> like this, which is wrong for the non-ELSA case.  I'll check and send
> a new patch.

Please add the following patch to the already-patched ring.c:

Index: ring.c
===================================================================
RCS file: /u2/cvs/mgetty/ring.c,v
retrieving revision 4.13
diff -u -r4.13 ring.c
--- ring.c	1999/07/15 13:34:28	4.13
+++ ring.c	1999/07/22 20:29:59
@@ -68,7 +68,7 @@
 /* ELSA CallerID data comes in as "RING;<from>[;<to>]"
  *
  * this function is also used for others that report the number in
- * the format <from>[non-digit(s)]<to>
+ * the format [non-digit(s)]<from>[non-digit(s)]<to>
  */
 static int ring_handle_ELSA _P2((string, msn_list),
 				 char * string, char ** msn_list )
@@ -76,7 +76,10 @@
 char * p;
     lprintf( L_MESG, "ELSA: '%s'", string );
 
-    string++;
+    /* skip over leading "garbage" */
+    while( *string != '\0' && !isdigit(*string) ) string++;
+
+    /* grab caller number (all up to the first non-digit) */
     p=string;
     while( isdigit(*p) ) p++;
 



and try again.  (There is some other bug hiding, but we'll find that as
well).

gert
-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert@greenie.muc.de
fax: +49-89-35655025                        gert.doering@physik.tu-muenchen.de