From owner-freebsd-isdn Wed Oct 6 11:17: 5 1999 Delivered-To: freebsd-isdn@freebsd.org Received: from hcshh.hcs.de (hcshh.hcs.de [194.123.40.1]) by hub.freebsd.org (Postfix) with SMTP id E510115158 for ; Wed, 6 Oct 1999 11:16:55 -0700 (PDT) (envelope-from hm@hcs.de) Received: from hcswork.hcs.de([192.76.124.5]) (4724 bytes) by hcshh.hcs.de via sendmail with P:smtp/R:inet_hosts/T:smtp (sender: ) id for ; Wed, 6 Oct 1999 20:16:32 +0200 (CEST) (Smail-3.2.0.104 1998-Nov-20 #1 built 1998-Dec-11) Received: by hcswork.hcs.de (Smail3.1.29.0 #13) id m11Yvc8-0003lSC; Wed, 6 Oct 99 20:16 METDST Message-Id: From: hm@hcs.de (Hellmuth Michaelis) Subject: i4b log message format (was: Re: Setting up i4b) In-Reply-To: <19991005223532.A14469@server.nostromo.in-berlin.de> from "H. Eckert" at "Oct 5, 99 10:35:32 pm" To: isdn@FreeBSD.ORG Date: Wed, 6 Oct 1999 20:16:32 +0200 (METDST) Reply-To: hm@hcs.de Organization: HCS Hanseatischer Computerservice GmbH X-Mailer: ELM [version 2.4ME+ PL39 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 3941 Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org From the keyboard of H. Eckert: > > Why do you want to do that ? There seems to be a misunderstanding. > > If I have matching entries, I can transform "" into something > shorter, thus being able to see the complete number that is called. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > >> 04.10.1999 01:15:28 DBG entry 2: name = HE > >> 04.10.1999 01:15:28 DBG entry 2: usrdevicename = tel > >> 04.10.1999 01:15:28 DBG entry 2: usrdeviceunit = 1 > >> 04.10.1999 01:15:28 DBG entry 2: isdncontroller = 0 > >> 04.10.1999 01:15:28 DBG entry 2: isdnchannel = any > >> 04.10.1999 01:15:28 DBG entry 2: local_phone_incoming = 3021478443 > >> 04.10.1999 01:15:28 DBG entry 2: remote_phone_incoming #0 = * > >> 04.10.1999 01:15:28 DBG entry 2: dialin_reaction = ignore > >> 04.10.1999 01:15:28 DBG entry 2: answerprog = answer > >> 04.10.1999 01:15:28 DBG entry 2: b1protocol = raw > >> 04.10.1999 01:15:28 DBG entry 2: direction = in > >> 04.10.1999 01:18:22 CHD 00081 incoming call from 3021478443 to 2147844 > > Trouble is - it *doesn't* work. I defined an entry for a voice call > on my MSN and it's still "". > > > Please read the above text again and then tell me a better solution what > > to display instead of "" for incoming calls not having an > > entry section! > > How about the old bisdn output format: "not my number (dst:21478453 src:)" ? Ahh, so you want to exchange the "" against something shorter to see (more of) one or both numbers, is that correct ? So lets see: 04.10.1999 01:18:22 CHD 00081 incoming call from 3021478443 to 2147844 the format is fixed, because it should be easily parsable, we have: ^^^^^^^^^^ ^^^^^^^^ ^^^ ^^^^^ ^^^^^^^^^ ^^^^^^^^^^^^^^^^^ .... date time typ id entry message I could do 04.10.1999 01:18:22 CHD 00081 src 3021478443 dst 2147844, incoming call now think about this 04.10.1999 01:18:22 CHD 00081 src 0123456789012345 dst 0123456789012345, incoming call Numbers - IIRC - can be 15 digits max, so the next one will ask, is this an incoming or outgoing call ? I know, this is an extreme example, but my point is that its not done with some change here or there (because then you are satisfied, but its likely that someone else will get a different problem). Before touching this, please think about it a bit more. What do you want to accomplish ? Should all messages fit into 80 chars ? Is date, time, type and so on really necessary, are there shorter alternatives ? Would a continuation line do it: 04.10.1999 01:18:22 CHD 00081 incoming call: from: 0123456789012345 to: 0123456789012345 Should the user be somehow able to customize the log messages via a line in the isdnd.rc system section, like log-format = "%D %T %t %i %n from %s to %d" or so ? Or extend the message format to a: date, time, typ, id, entry, src (if available), dst (if available), message format ? I want the log message format to be consistent and easily parsable by default. Second, i'd like to touch the area of log messages only once again in the future and then never again, because i did it once and this is a huge and boring amount of work which brings us near to nothing (given that there are huge sppp problems, new chipsets, i4b does not work in -current due to architecture changes, etc, etc, etc.). In case you want to change log messages, please do some research, make a good proposal and after some discussion i'm happily expecting diffs ;-) hellmuth -- Hellmuth Michaelis Tel +49 40 559747-70 HCS Hanseatischer Computerservice GmbH Fax +49 40 559747-77 Oldesloer Strasse 97-99 Mail hm [at] hcs.de 22457 Hamburg WWW http://www.hcs.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message