From owner-freebsd-isdn Mon Nov 8 1:16:54 1999 Delivered-To: freebsd-isdn@freebsd.org Received: from pop-c.netway.at (pop-c.netway.at [195.96.0.132]) by hub.freebsd.org (Postfix) with ESMTP id 8D83F14F10 for ; Mon, 8 Nov 1999 01:16:49 -0800 (PST) (envelope-from mranner@netway.at) Received: from pop-d.netway.at (pop-d.netway.at [195.96.0.131]) by pop-c.netway.at (8.9.1/8.9.1) with ESMTP id KAA16635 for ; Mon, 8 Nov 1999 10:16:48 +0100 Received: from jawa.at (t1p088.at-316.netway.at [195.96.18.88]) by pop-d.netway.at (8.9.1/8.9.1) with ESMTP id KAA23490 for ; Mon, 8 Nov 1999 10:16:48 +0100 Received: from mike.netway.at (mike.jawa.at [192.168.0.51]) by jawa.at (8.9.3/8.9.3) with ESMTP id KAA07915 for ; Mon, 8 Nov 1999 10:17:42 +0100 (CET) (envelope-from mranner@netway.at) Message-ID: X-Mailer: XFMail 1.3.1 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <19991103120934.3D6623896@hcswork.hcs.de> Date: Mon, 08 Nov 1999 10:16:23 +0100 (CET) Reply-To: mranner@netway.at Organization: JAWA MANAGEMENT und SOFTWARE From: Michael Ranner To: freebsd-isdn@freebsd.org Subject: The reason for 765 in AOCD (was Re: AOCD accounting starts at 76 Sender: owner-freebsd-isdn@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi Hellmuth! The reason for AOCD starts with 766 excerpt from q932fac.c: --- snip --- for(i = comp_length-1; i >= 0; i--) { sprintf((pbuf+strlen(pbuf)), "0x%02x", *byte_buf); val += (*byte_buf + (i*255)); // // --------------------------^^^^^ // // comp_length - 1 = 2 // // 2 * 255 + 1 * 255 + 0 * 255 = 765 // did you mean (*byte_buf * (i ^ 255)) ? // // 0 * (2 ^ 255) + 0 * (1 ^ 255) + 1 * (0 ^ 255) = 1 UNIT not 766 byte_buf++; byte_len++; if(i) sprintf((pbuf+strlen(pbuf)), "\n\t"); } cu --- snip --- On 03-Nov-99 Hellmuth Michaelis wrote: >>From the keyboard of Michael Ranner: > >> After I let change the AOCD format from currency to the same format used in >> Germany by the Austrian PTT, I have the problem, that for every dial >> out the accounting starts at 766. > > There is a bug in the ASN.1 parser. See my previous message how to debug > this. > > 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 /\/\ichael Ranner - Michael Ranner Michael.Ranner@netway.at - webmaster@mariazell.org ---------------------------------------------------------------------- Homepage: http://www.netlounge.at/mranner/ Mariazell Online: http://www.mariazell.at/ ---------------------------------------------------------------------- "I'd love to go out with you, but my favorite commercial is on TV." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isdn" in the body of the message