From owner-freebsd-isdn Mon Jul 20 12:06:06 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA24135 for freebsd-isdn-outgoing; Mon, 20 Jul 1998 12:06:06 -0700 (PDT) (envelope-from owner-freebsd-isdn@FreeBSD.ORG) Received: from harvey.aball.de (root@harvey.aball.de [194.77.82.26]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id MAA24008 for ; Mon, 20 Jul 1998 12:05:59 -0700 (PDT) (envelope-from alice.turbocat.de!dave@harvey.aball.de) Received: by harvey.aball.de (Smail3.1.28.1 #11) id m0yyLFd-000Iz7C; Mon, 20 Jul 98 21:05 MET DST Received: from cat.turbocat.de (cat.turbocat.de [194.77.82.49]) by alice.turbocat.de (8.8.8/8.7.3) with ESMTP id RAA01982 for ; Mon, 20 Jul 1998 17:21:11 +0200 (CEST) Received: (from dave@localhost) by cat.turbocat.de (8.8.5/8.7.3) id RAA00551 for freebsd-isdn@FreeBSD.ORG; Mon, 20 Jul 1998 17:21:12 +0200 (MET DST) Message-Id: <199807201521.RAA00551@cat.turbocat.de> Content-Type: text/plain MIME-Version: 1.0 (NeXT Mail 4.2mach v148) Received: by NeXT.Mailer (1.148) From: David Wetzel Date: Mon, 20 Jul 98 17:21:11 +0200 To: ISDN-List Subject: PATCH: matching unknown callers Organisation: Turbocat's Development http://www.turbocat.de/ Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi! With this patch, you can catch unknown callers... alice# diff -c ~dave/support.c.org /Net/alice/usr/src/i4b/isdnd/support.c *** /Users/dave/support.c.org Wed Jul 8 20:50:10 1998 --- /Net/alice/usr/src/i4b/isdnd/support.c Mon Jul 20 17:11:16 1998 *************** *** 186,191 **** --- 186,201 ---- cfg_entry_t *cep = NULL; int i; + + //log(LL_CHD, "find_entry: dst_telno='%s' src_telno='%s'", dst_telno, src_telno); + + /* If remote number has len of 0, we have a UNKNOWN caller. */ + + if (!strlen(src_telno)) + { + src_telno = "unknown"; + } + for(i=0; i < nentries; i++) { cep = &cfg_entry_tab[i]; /* ptr to config entry */ I tried this config #============================================================================== # ENTRY: telephone answering #============================================================================== entry name = UNKNOWNTEST # name for reference usrdevicename = tel # ipr, tel, rbch usrdeviceunit = 1 # unit number isdncontroller = 0 # contoller to use or -1 to use any isdnchannel = -1 # channel (1/2) to use or 0 or -1 for any # numbers used to verify at DIAL IN local-phone-incoming = 12345678 # this is my number remote-phone-incoming = unknown dialin-reaction = answer # accept, reject, ignore, answer answerprog = record # program to run b1protocol = raw # hdlc, raw idletime-incoming = 20 # 5 seconds idle timeout -------------------------------------------- Who does pattern matching and multiple numbers in remote-phone-incoming? --- _ _ _(_)(_)_ David Wetzel, Turbocat's Development, (_) __ (_) Buchhorster Strasse, D-16567 Muehlenbeck/Berlin, FRG, _/ \_ Fax +49 33056 82835 NeXTmail dave@turbocat.de (______) http://www.turbocat.de/ DEVELOPMENT * CONSULTING * ADMINISTRATION WATCH OUT FOR TURBOFAX for OPENSTEP! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message