From owner-freebsd-isdn@FreeBSD.ORG Thu Oct 15 12:46:31 2009 Return-Path: Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6FB8810656A9 for ; Thu, 15 Oct 2009 12:46:31 +0000 (UTC) (envelope-from a-bauer@live.de) Received: from snt0-omc1-s22.snt0.hotmail.com (snt0-omc1-s22.snt0.hotmail.com [65.55.90.33]) by mx1.freebsd.org (Postfix) with ESMTP id 492C68FC2D for ; Thu, 15 Oct 2009 12:46:31 +0000 (UTC) Received: from SNT123-W1 ([65.55.90.9]) by snt0-omc1-s22.snt0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 15 Oct 2009 05:34:31 -0700 Message-ID: X-Originating-IP: [84.142.196.204] From: Andreas Bauer To: Date: Thu, 15 Oct 2009 14:34:30 +0200 Importance: Normal Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginalArrivalTime: 15 Oct 2009 12:34:31.0283 (UTC) FILETIME=[D7FF1430:01CA4D93] Subject: Help with tool to reject callers X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Oct 2009 12:46:31 -0000 Hi=2C =20 I'm thinking of creating a little program to reject incoming calls on my isdn line=2C so that none of the phones on the line ring when there's an "unwanted" caller (based on their phone numbers). =20 Since I'm using i4b's capimonitor to log incoming numbers already=2C and its code is quite simple=2C I want to base the program on that nice little tool. :-) =20 Now=2C I'm not very experienced with the whole ISDN thing=2C so I hope that this is the right place to ask for a little help to start me off. =20 First of all=2C is there a simple way to *totally* reject a call? "Totally rejecting" meaning that no other phones on the same S0 bus keep ringing? A CAPI_CALL_REJECT_*=2C which I tried first=2C obviously has no effect on all the other phones on the bus. =20 If there is no way to easily reject the calls=2C then I guess the program would need to accept the call and immediately hang up again to achieve the same thing? Of course that might be a little ugly=2C since it might cost the caller money=2C but it would still be fine with me. In that case=2C what is the absolute minimum of steps that need to be taken to do this? I know that all the code for this should basically be in the capitest utility=2C but maybe there's an even shorter way to do this if you don't even really want to transfer anything. What parts of the message handler can also go? =20 Thanks for the help already :-) Andreas =0A= _________________________________________________________________=0A= http://redirect.gimas.net/?n=3DM0910xDateiensenden2=0A= Fotos=2C Musik =85Dateien versenden =96 ganz einfach=2C ohne Limit= From owner-freebsd-isdn@FreeBSD.ORG Thu Oct 15 16:14:33 2009 Return-Path: Delivered-To: freebsd-isdn@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A4F61065679 for ; Thu, 15 Oct 2009 16:14:33 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe12.swipnet.se [212.247.155.97]) by mx1.freebsd.org (Postfix) with ESMTP id 785E58FC12 for ; Thu, 15 Oct 2009 16:14:32 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.0 c=1 a=MnI1ikcADjEx7bvsp0jZvQ==:17 a=9yERo06AeDsas4Apr14A:9 a=MwN2MkDyUXJFEU2cduMA:7 a=UdX4u44eNtoKAp48NPoeTAaglfAA:4 Received: from [188.126.201.140] (account mc467741@c2i.net HELO laptop.adsl.tele2.no) by mailfe12.swip.net (CommuniGate Pro SMTP 5.2.16) with ESMTPA id 1140891099; Thu, 15 Oct 2009 17:14:28 +0200 From: Hans Petter Selasky To: freebsd-isdn@freebsd.org Date: Thu, 15 Oct 2009 17:13:35 +0200 User-Agent: KMail/1.11.4 (FreeBSD/9.0-CURRENT; KDE/4.2.4; i386; ; ) References: In-Reply-To: X-Face: (%:6u[ldzJ`0qjD7sCkfdMmD*RxpO< =?utf-8?q?Q0yAl=7E=3F=60=27F=3FjDVb=5DE6TQ7=27=23h-VlLs=7Dk/=0A=09?=(yxg(p!IL.`#ng"%`BMrham7%UK,}VH\wUOm=^>wEEQ+KWt[{J#x6ow~JO:,zwp.(t; @ =?utf-8?q?Aq=0A=09=3A4=3A=26nFCgDb8=5B3oIeTb=5E=27?=",; u{5{}C9>"PuY\)!=#\u9SSM-nz8+SR~B\!qBv MIME-Version: 1.0 Content-Type: Text/Plain; charset="windows-1252" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200910151713.36080.hselasky@c2i.net> Cc: Subject: Re: Help with tool to reject callers X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Oct 2009 16:14:33 -0000 On Thursday 15 October 2009 14:34:30 Andreas Bauer wrote: > Hi, > > I'm thinking of creating a little program to reject incoming calls on > my isdn line, so that none of the phones on the line ring when there's > an "unwanted" caller (based on their phone numbers). > > Since I'm using i4b's capimonitor to log incoming numbers already, and > its code is quite simple, I want to base the program on that nice > little tool. :-) > > Now, I'm not very experienced with the whole ISDN thing, so I hope > that this is the right place to ask for a little help to start me off. > > First of all, is there a simple way to *totally* reject a call? > "Totally rejecting" meaning that no other phones on the same S0 bus > keep ringing? A CAPI_CALL_REJECT_*, which I tried first, obviously has > no effect on all the other phones on the bus. > > If there is no way to easily reject the calls, then I guess the > program would need to accept the call and immediately hang up again > to achieve the same thing? Of course that might be a little ugly, > since it might cost the caller money, but it would still be fine with > me. In that case, what is the absolute minimum of steps that need to > be taken to do this? > I know that all the code for this should basically be in the capitest > utility, but maybe there's an even shorter way to do this if you don't > even really want to transfer anything. What parts of the message > handler can also go? > Hi, I think the most efficient way, using a Point to Multipoint setup, is to answer the call and then hangup the call. Sometimes the RELEASE_COMPLETE messages are simply ignored in P2MP configurations before the call is answered. --HPS