Re: chan_capi error after update

Andreas Longwitz <[email protected]> Wed, 24 Feb 2016 00:13:16 +0100
Newsgroups gmane.os.freebsd.devel.isdn
Message-ID <[email protected]>
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
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-isdn
To unsubscribe, send any mail to "[email protected]"