Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105548 - net-dialup/isdn4k-utils: better documentation of /etc/hisax.conf + /etc/init.d/hisax
Summary: net-dialup/isdn4k-utils: better documentation of /etc/hisax.conf + /etc/init....
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Stefan Briesenick (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-10 15:55 UTC by Sascha Silbe
Modified: 2005-09-11 14:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Silbe 2005-09-10 15:55:19 UTC
For isdnlog to work properly (i.e. show anything besides outgoing calls), HiSax 
needs to be put into D-channel debugging mode using "hisaxctrl <card> 1 4".
The Debian (potato) version of the isdnlog manpage mentions that and their 
init scripts take care of it. The Gentoo ones don't, so it just doesn't work
without giving any hint why.
I'd suggest to change /etc/init.d/isdnlog.contr0 to (optionally?) execute 
hisaxctrl.


Reproducible: Always
Steps to Reproduce:
1. emerge net-dialup/isdn4k-utils
2. set e.g. syslog=0x1bf7 in /etc/isdn/isdnlog.options.contr0
3. /etc/init.d/isdnlog.contr0 start
4. receive a call
5. read syslog

Actual Results:  
Sep 11 00:32:24 [kernel] isdn_net: call from 1704111488 -> 0 968445 ignored


Expected Results:  
Sep 11 00:37:16 [kernel] HiSax: debugging flags card 1 set to 4
Sep 11 00:37:18 [isdnlog] (HiSax driver detected)_
Sep 11 00:37:36 [kernel] isdn_net: call from 1704111488 -> 0 968445 ignored
Sep 11 00:37:36 [isdnlog] Sep 11 00:37:36 * Call to tei 127 from ? on ?  BEARER: Speech, CCITT standardized coding_
Sep 11 00:37:36 [isdnlog] Sep 11 00:37:36 * Call to tei 127 from ? on ?  64 kbit/s, Circuit mode_
Sep 11 00:37:36 [isdnlog] Sep 11 00:37:36 * Call to tei 127 from ? on ?  G.711 A-law_
Sep 11 00:37:36 [isdnlog] Sep 11 00:37:36 * Call to tei 127 from ? on ?  CHANNEL: BRI, B1 needed_
Sep 11 00:37:36 [isdnlog] Sep 11 00:37:36 * Call to tei 127 from +49 170/4111488, Deutschland Mobilfunk D1/Deutschland Mo on Sascha, Analog  RING (Speech)_
Sep 11 00:37:36 [isdnlog] Sep 11 00:37:36 * Call to tei 127 from +49 170/4111488, Deutschland Mobilfunk D1/Deutschland Mo on Sascha, Analog  HLC: CCITT, Telefonie_
Sep 11 00:37:38 [isdnlog] Sep 11 00:37:38 * Call to tei 72 from +49 170/4111488, Deutschland Mobilfunk D1/Deutschland Mo on Sascha, Analog  HANGUP_


Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.6, glibc-2.3.5-r1, 2.6.11.10-infra i686)
=================================================================
System uname: 2.6.11.10-infra i686 AMD Athlon(tm) processor
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5-r2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-mcpu=athlon -O2 -pipe"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/usr/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-mcpu=athlon -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo/ http://gentoo.inode.at/ ftp://gentoo.inode.at/source/"
LINGUAS="en_US en_GB en de_DE de"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/inst/level3/sync/portage-local"
SYNC="rsync://rsync.sascha.silbe.org/gentoo-portage"
USE="x86 acl alsa berkdb bitmap-fonts crypt doc eds emboss fortran gdbm ipv6 jpeg maildir mbox mp3 nas ncurses nls ogg oggvorbis pam pcmcia png python readline ssl truetype-fonts type1-fonts unicode vorbis xml xml2 zlib linguas_en_US linguas_en_GB linguas_en linguas_de_DE linguas_de userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, MAKEOPTS
Comment 1 Stefan Briesenick (RETIRED) gentoo-dev 2005-09-10 17:18:12 UTC
/etc/init.d/hisax is doing this already.  
with other cards, i.e. CAPI via 'capidrv', this command can't be used at all. 
 
so 'isdnlog' init-script is the wrong place for it. 
 
Comment 2 Stefan Briesenick (RETIRED) gentoo-dev 2005-09-11 05:25:01 UTC
please have a look into /etc/hisax.conf:

# 'proto' can be: 1TR6 DSS1 NI1 LEASED
# 'debug' is optional, default is 4 (D-Channel Frames for isdnlog)
# 'id' is optional, but should be unique (see README.HiSax)

# type  proto   io (io0,io1)    irq     mem     debug   id (optional)

you can set the debug option to any value you want. Default is '4' (if nothing
is set).
Comment 3 Stefan Briesenick (RETIRED) gentoo-dev 2005-09-11 05:35:58 UTC
another comment: capidrv sets the debug option automatically, if an AVM card
with AVM driver is detected. With mISDN, isdnlog can't be used right now,
because you can not set that option.
Comment 4 Sascha Silbe 2005-09-11 13:59:48 UTC
OK, using /etc/hisax.conf it works fine now. I don't even need to set module parameters, great!
But this should be better documented. Since no other distro I ever used 
isdnlog on had that file, I didn't even look at it. Neither is there a Gentoo 
ISDN HowTo that would tell me to edit this file and add hisax to the default 
runlevel.
Comment 5 Stefan Briesenick (RETIRED) gentoo-dev 2005-09-11 14:36:02 UTC
that stuff is 100% made by me. Nice to hear that it works... ;-) 
But I will add a comment in pkg_postinst() in the next version. 
 
btw: an ISDN HowTo was started in the past but not finished yet. 
 
Comment 6 Stefan Briesenick (RETIRED) gentoo-dev 2005-09-11 14:44:45 UTC
this info will be shown in next version:  
  
einfo "/etc/init.d/hisax will load and initialize your hisax based"  
einfo "cards. If you have such cards, please edit /etc/hisax.conf and"  
einfo "add the hisax init-script to your default runlevel."  
  
I don't commit it immediately, since I have other improvements in my queue and  
want to finish them first.