Date: Sat, 9 Feb 2002 15:40:03 +0100 (CET) From: hm@kts.org (Hellmuth Michaelis) To: Steven Looman <fsteevie@wish.net> Cc: ISDN list FreeBSD <freebsd-isdn@FreeBSD.ORG> Subject: Re: your mail Message-ID: <20020209144003.16224F958@bert.kts.org> In-Reply-To: <000701c1b168$b6495960$0200a8c0@coyote>
next in thread | previous in thread | raw e-mail | index | archive | help
Steven Looman wrote: > I've been trying messing a bit with the i4b ioctl stuff (to add > subaddresses, see prev. mail), but I cannot make any working stuff. > Probably because I'm stupid or something ;) To add subaddressing, its likely that you have to add subaddresses to msg_connect_ind_t so that: [...] #define CHAN_NO (-2) /* call waiting (CW) for incoming */ int bprot; /* b channel protocot, see BPROT_XXX */ char dst_telno[TELNO_MAX]; /* destination telno */ char src_telno[TELNO_MAX]; /* source telno */ int scr_ind;/* screening indicator */ #define SCR_NONE 0 /* no screening indicator transmitted */ [...] might perhaps become something like: [...] #define CHAN_NO (-2) /* call waiting (CW) for incoming */ int bprot; /* b channel protocot, see BPROT_XXX */ char dst_telno[TELNO_MAX]; /* destination telno */ char dst_subaddr[SUBADDR_MAX]; char src_telno[TELNO_MAX]; /* source telno */ char src_subaddr[SUBADDR_MAX]; int scr_ind;/* screening indicator */ #define SCR_NONE 0 /* no screening indicator transmitted */ [...] This has to be changed in _BOTH_ /usr/src/sys/i386/include/i4b_ioctl.h and /usr/include/machine/i4b_ioctl.h so that both are _exactly_ the same. After you did the above modification, you have to compile _BOTH_ the kernel and _all_ userland utilities, reinstall them and reboot. [ BTW: One helping hand to get everything in sync is the constants #define VERSION 1 /* version number */ #define REL 1 /* release number */ #define STEP 1 /* release step */ in i4b_ioctl.h - they get checked when isdnd is started so that at least a bit can be checked that kernel and userland is in sync. To make this work, increment one of this constants (most likely STEP) with each modification to any of the structs and isdnd will not start if it is not in sync with the kernel. ] BTW2: You are aware of the fact, that subaddresses are only available to (much !) extra paying subscribers of this service in most countries i'm aware of, are you ? (This is the reason i did not implement them.) hellmuth -- Hellmuth Michaelis Hamburg, Europe hm@kts.org www.kts.org There is a difference between an open mind and a hole in the head. 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?20020209144003.16224F958>