From owner-freebsd-isdn@freebsd.org Tue Feb 23 23:13:27 2016 Return-Path: Delivered-To: freebsd-isdn@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ED7C6AB1548 for ; Tue, 23 Feb 2016 23:13:27 +0000 (UTC) (envelope-from longwitz@incore.de) Received: from dss.incore.de (dss.incore.de [195.145.1.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B6E681A1F for ; Tue, 23 Feb 2016 23:13:27 +0000 (UTC) (envelope-from longwitz@incore.de) Received: from inetmail.dmz (inetmail.dmz [10.3.0.3]) by dss.incore.de (Postfix) with ESMTP id 61DA167C47; Wed, 24 Feb 2016 00:13:18 +0100 (CET) X-Virus-Scanned: amavisd-new at incore.de Received: from dss.incore.de ([10.3.0.3]) by inetmail.dmz (inetmail.dmz [10.3.0.3]) (amavisd-new, port 10024) with LMTP id jkszI2alqGw3; Wed, 24 Feb 2016 00:13:17 +0100 (CET) Received: from mail.local.incore (fwintern.dmz [10.0.0.253]) by dss.incore.de (Postfix) with ESMTP id C596D67C73; Wed, 24 Feb 2016 00:13:17 +0100 (CET) Received: from bsdmhs.longwitz (unknown [192.168.99.6]) by mail.local.incore (Postfix) with ESMTP id 64E485089A; Wed, 24 Feb 2016 00:13:17 +0100 (CET) Message-ID: <56CCE78C.1020509@incore.de> Date: Wed, 24 Feb 2016 00:13:16 +0100 From: Andreas Longwitz User-Agent: Thunderbird 2.0.0.19 (X11/20090113) MIME-Version: 1.0 To: Hans Petter Selasky CC: freebsd-isdn@freebsd.org Subject: Re: chan_capi error after update References: <56C6E0D4.5060603@incore.de> <56C74704.6060606@selasky.org> <56C83752.6080708@selasky.org> <56C87494.6020605@incore.de> <56C87F06.1070504@selasky.org> <56C88301.3060104@selasky.org> <56C89326.4030803@incore.de> <56C895EA.5000404@selasky.org> <56CA4059.7060601@incore.de> <56CAB08C.7000309@selasky.org> In-Reply-To: <56CAB08C.7000309@selasky.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-isdn@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Using ISDN with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Feb 2016 23:13:28 -0000 Hi Hans, the message that bothered me was ERROR[8810] chan_capi.c: CAPI error sending CAPI_FACILITY_REQ ... with error code 0x1101 (= CAPI_ERROR_INVALID_APPLICATION_ID). In chan_capi 2.0.3 the application was registered with capi20_register() on startup direct from load_module() via capi_application_alloc(), that worked fine. In chan_capi 2.0.17 the application will be registered with capi20_register() in the capi_do_monitor thread in function capi_application_restart(). Therefore the main thread should wait until registration is done. After introducing the following patch all error messages on startup are gone: --- chan_capi.c.orig 2016-02-20 15:55:36.000000000 +0100 +++ chan_capi.c 2016-02-23 21:38:15.144667154 +0100 @@ -8309,6 +8309,9 @@ */ capi_application[0] = p_app; + /* wait until capi_do_monitor has called capi20_register() */ + sleep(2); + cc_mutex_lock(&p_app->lock); app_locked = 1; -- Thanks again for help, with kindly regards Andreas Longwitz