Date: Mon, 08 Nov 1999 10:16:23 +0100 (CET) From: Michael Ranner <mranner@netway.at> To: freebsd-isdn@freebsd.org Subject: The reason for 765 in AOCD (was Re: AOCD accounting starts at 76 Message-ID: <XFMail.991108101623.mranner@netway.at> In-Reply-To: <19991103120934.3D6623896@hcswork.hcs.de>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <mranner@netway.at> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.991108101623.mranner>