Date: Mon, 20 Jul 98 17:21:11 +0200 From: David Wetzel <dave@turbocat.de> To: ISDN-List <freebsd-isdn@FreeBSD.ORG> Subject: PATCH: matching unknown callers Message-ID: <199807201521.RAA00551@cat.turbocat.de>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807201521.RAA00551>