I'm getting this message when I start Asterisk chan_capi.c:2205 capi_handle_msg: Command.Subcommand = 0x5.0x81 but when I try and recompile I get this chan_capi.c:60: error: `__use_AST_MUTEX_DEFINE_STATIC_rather_than_AST_MUTEX_INITIALIZER__' undeclared here (not in a function) any help would be greatly appreciated. -- Dave Cotton <dcotton@linuxautrement.com>
Dave Cotton schrieb:> I'm getting this message when I start Asterisk > > chan_capi.c:2205 capi_handle_msg: Command.Subcommand = 0x5.0x81 > > but when I try and recompile I get this > > chan_capi.c:60: error: > `__use_AST_MUTEX_DEFINE_STATIC_rather_than_AST_MUTEX_INITIALIZER__' > undeclared here (not in a function) > > any help would be greatly appreciated.Please apply the patch attached to this mail. Deti -------------- next part -------------- --- chan_capi.c.orig 2004-06-07 14:40:17.000000000 +0200 +++ chan_capi.c 2004-06-12 19:12:13.000000000 +0200 @@ -57,11 +57,11 @@ static int usecnt; -static ast_mutex_t usecnt_lock = AST_MUTEX_INITIALIZER; -static ast_mutex_t iflock = AST_MUTEX_INITIALIZER; -static ast_mutex_t pipelock = AST_MUTEX_INITIALIZER; -static ast_mutex_t monlock = AST_MUTEX_INITIALIZER; -static ast_mutex_t contrlock = AST_MUTEX_INITIALIZER; +AST_MUTEX_DEFINE_STATIC(usecnt_lock); +AST_MUTEX_DEFINE_STATIC(iflock); +AST_MUTEX_DEFINE_STATIC(pipelock); +AST_MUTEX_DEFINE_STATIC(monlock); +AST_MUTEX_DEFINE_STATIC(contrlock); #ifdef CAPI_ULAW static int capi_capability = AST_FORMAT_ULAW; @@ -82,8 +82,8 @@ static char capi_send_buffer[AST_CAPI_MAX_B3_BLOCKS * AST_CAPI_MAX_B3_BLOCK_SIZE]; static int capi_send_buffer_handle = 0; -static ast_mutex_t capi_send_buffer_lock = AST_MUTEX_INITIALIZER; -static ast_mutex_t capi_put_lock = AST_MUTEX_INITIALIZER; +AST_MUTEX_DEFINE_STATIC(capi_send_buffer_lock); +AST_MUTEX_DEFINE_STATIC(capi_put_lock); char capi_national_prefix[AST_MAX_EXTENSION]; char capi_international_prefix[AST_MAX_EXTENSION];
On Tue, 2004-06-15 at 15:02 +0200, Deti Fliegl wrote:> Please apply the patch attached to this mail. >Thanks that got it compiled, but I still see this error chan_capi.c:2205 capi_handle_msg: Command.Subcommand = 0x5.0x81 any thoughts? -- Dave Cotton <dcotton@linuxautrement.com>
At 15:59 15/06/2004 +0200, you wrote:>On Tue, 2004-06-15 at 15:02 +0200, Deti Fliegl wrote: > > > Please apply the patch attached to this mail. > > > >Thanks that got it compiled, but I still see this error > > chan_capi.c:2205 capi_handle_msg: Command.Subcommand = 0x5.0x81 > >any thoughts?You could do a capi debug in the CLI and see if you can get more information on the error. Jason
On Tue, 2004-06-15 at 15:26 +0100, Jason Williams wrote:> You could do a capi debug in the CLI and see if you can get more > information on the error.This error is showing up on loading the capi module. Dave
Have you sorted this issue out? I'm experiencing exacly the same problem (asterisk 1.0, chan-capi 0.3.5). MIlan -- S pozdravem Milan Benicek>On Tue, 2004-06-15 at 15:26 +0100, Jason Williams wrote: > >> You could do a capi debug in the CLI and see if you can get more >> information on the error. > > This error is showing up on loading the capi module. > > Dave