[Asterisk-Users] Loading module chan_capi.so failed! still
some problems ...
Bodo Hahnke
hahnke at gmx.net
Wed Feb 11 13:25:14 MST 2004
Hi again,
this solved my first problem ... thanks for the help, some more changes
were necessary but this was also needed to have asterisk start up.
At 09:30 11.02.2004, you wrote:
> > Asterisk Dynamic Loader Starting:
> > == Parsing '/etc/asterisk/modules.conf': Found
> > [chan_capi.so] Feb 11 03:35:57 WARNING[1024]: loader.c:239
> > ast_load_resource:
> > /usr/lib/asterisk/modules/chan_capi.so: undefined symbol:
> > ast_get_group Feb 11 03:35:57 WARNING[1024]: loader.c:358
> > load_modules: Loading module chan_capi.so failed!
>
> From a message dated February 6, by Klaus-Peter:
>
>"oh yes...
>
>i added callgroup support for chan_capi. That's why you have to load
>res_parking.so before chan_capi.so. So in modules.conf you need.
>
>load => res_parking.so
>load => chan_capi.so
>
>[global]
>chan_capi.so=yes
Now, here comes the next problem ... regarding all instructions about
installing asterisk with a fritzcard and capidriver I should now be able to
reach the demo context when I call the right number. When I call the
asterisk box it rings two times and then hangs up ... this are the mess-
ages from asterisk:
asterisk:~# asterisk -vvvc
== Parsing '/etc/asterisk/asterisk.conf': Found
Asterisk CVS-02/10/04-18:37:59, Copyright (C) 1999-2001 Linux Support
Services, Inc.
Written by Mark Spencer <markster at linux-support.net>
=========================================================================
== Parsing '/etc/asterisk/logger.conf': Found
Asterisk Event Logger Started /var/log/asterisk/event_log
== Manager registered action Ping
== Manager registered action Logoff
== Manager registered action Hangup
== Manager registered action Status
== Manager registered action Redirect
== Manager registered action Originate
== Manager registered action MailboxStatus
== Manager registered action Command
== Manager registered action ExtensionState
== Manager registered action AbsoluteTimeout
== Manager registered action MailboxCount
== Parsing '/etc/asterisk/manager.conf': Found
== Parsing '/etc/asterisk/rtp.conf': Found
== RTP Allocating from port range 10000 -> 20000
Asterisk PBX Core Initializing
Registering builtin applications:
[AbsoluteTimeout]
== Registered application 'AbsoluteTimeout'
[Answer]
== Registered application 'Answer'
[BackGround]
== Registered application 'BackGround'
[Busy]
== Registered application 'Busy'
[Congestion]
== Registered application 'Congestion'
[DigitTimeout]
== Registered application 'DigitTimeout'
[Goto]
== Registered application 'Goto'
[GotoIf]
== Registered application 'GotoIf'
[GotoIfTime]
== Registered application 'GotoIfTime'
[Hangup]
== Registered application 'Hangup'
[NoOp]
== Registered application 'NoOp'
[Prefix]
== Registered application 'Prefix'
[ResetCDR]
== Registered application 'ResetCDR'
[ResponseTimeout]
== Registered application 'ResponseTimeout'
[Ringing]
== Registered application 'Ringing'
[SayNumber]
== Registered application 'SayNumber'
[SayDigits]
== Registered application 'SayDigits'
[SetAccount]
== Registered application 'SetAccount'
[SetGlobalVar]
== Registered application 'SetGlobalVar'
[SetLanguage]
== Registered application 'SetLanguage'
[SetVar]
== Registered application 'SetVar'
[StripMSD]
== Registered application 'StripMSD'
[Suffix]
== Registered application 'Suffix'
[Wait]
== Registered application 'Wait'
Asterisk Dynamic Loader Starting:
== Parsing '/etc/asterisk/modules.conf': Found
[res_parking.so] => (Call Parking Resource)
== Parsing '/etc/asterisk/parking.conf': Found
-- Registered extension context 'parkedcalls'
-- Added extension '701' priority 1 to parkedcalls
-- Added extension '702' priority 1 to parkedcalls
-- Added extension '703' priority 1 to parkedcalls
-- Added extension '704' priority 1 to parkedcalls
-- Added extension '705' priority 1 to parkedcalls
-- Added extension '706' priority 1 to parkedcalls
-- Added extension '707' priority 1 to parkedcalls
-- Added extension '708' priority 1 to parkedcalls
-- Added extension '709' priority 1 to parkedcalls
-- Added extension '710' priority 1 to parkedcalls
-- Added extension '711' priority 1 to parkedcalls
-- Added extension '712' priority 1 to parkedcalls
-- Added extension '713' priority 1 to parkedcalls
-- Added extension '714' priority 1 to parkedcalls
-- Added extension '715' priority 1 to parkedcalls
-- Added extension '716' priority 1 to parkedcalls
-- Added extension '717' priority 1 to parkedcalls
-- Added extension '718' priority 1 to parkedcalls
-- Added extension '719' priority 1 to parkedcalls
-- Added extension '720' priority 1 to parkedcalls
== Registered application 'ParkedCall'
== Manager registered action ParkedCalls
[chan_capi.so] => (Common ISDN API for Asterisk)
== Parsing '/etc/asterisk/capi.conf': Found
Feb 11 19:54:48 NOTICE[1024]: chan_capi.c:2338 mkif:
ast_capi_pvt(43910906,43910906,demo,0x2,2) (1,2,64) (0)(0.800000/0.800000) 2
Feb 11 19:54:48 NOTICE[1024]: chan_capi.c:2338 mkif:
ast_capi_pvt(43910906,43910906,demo,0x2,2) (1,2,64) (0)(0.800000/0.800000) 2
Feb 11 19:54:48 NOTICE[1024]: chan_capi.c:2694 load_module: this box has 1
capi controller(s)
-- listening on contr1 CIPmask = 0x1fff03ff
== Registered channel type 'CAPI' (Common ISDN API Driver (0.3.0) aLaw)
[res_musiconhold.so] => (Music On Hold Resource)
== Parsing '/etc/asterisk/musiconhold.conf': Found
== Registered application 'MusicOnHold'
== Registered application 'WaitMusicOnHold'
== Registered application 'SetMusicOnHold'
== Parsing '/etc/asterisk/enum.conf': Found
Asterisk Ready.
*CLI> Feb 11 19:55:00 WARNING[4101]: pbx.c:1778 ast_pbx_run: Channel
'CAPI[contr1/43910906]/0' sent into invalid extension 's' in context
'default', but no invalid handler
-- started pbx on channel (callgroup=2)!
Feb 11 19:55:16 WARNING[5125]: pbx.c:1778 ast_pbx_run: Channel
'CAPI[contr1/43910906]/1' sent into invalid extension 's' in context
'default', but no invalid handler
-- started pbx on channel (callgroup=2)!
Feb 11 19:55:16 ERROR[3076]: chan_capi.c:1196 pipe_frame: wrote -1 bytes
instead of 40
Feb 11 19:55:31 WARNING[6149]: pbx.c:1778 ast_pbx_run: Channel
'CAPI[contr1/43910906]/2' sent into invalid extension 's' in context
'default', but no invalid handler
-- started pbx on channel (callgroup=2)!
Feb 11 19:55:31 ERROR[3076]: chan_capi.c:1196 pipe_frame: wrote -1 bytes
instead of 40
For the first call I receive the warning after the second call it gets a
warning
and an error... my capi.conf is set to context=demo
Think there still is something wrong with the capidriver from junghanns.net but
I can't find much information about installing this driver. This are the
messages
when type make for chan_capi.so:
asterisk:/usr/src/chan_capi-0.3.1# make
gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations
-g -I/usr/include/asterisk -D_REENTRANT -D_GNU_SOURCE -O6
-march=i586 -DNEVER_EVER_EARLY_B3_CONNECTS -DFORCE_SOFTWARE_DTMF -DCAPI_ES
-DCAPI_GAIN -DDEFLECT_ON_CIRCUITBUSY -DCAPI_SYNC -Wno-missing-prototypes
-Wno-missing-declarations -DCRYPTO -c -o chan_capi.o chan_capi.c
In file included from /usr/include/asterisk/lock.h:17,
from chan_capi.c:14:
/usr/include/pthread.h:211: warning: `struct sched_param' declared inside
parameter list
/usr/include/pthread.h:211: warning: its scope is only this definition or
declaration, which is probably not what you want.
/usr/include/pthread.h:216: warning: `struct sched_param' declared inside
parameter list
/usr/include/pthread.h:302: warning: `struct sched_param' declared inside
parameter list
/usr/include/pthread.h:308: warning: `struct sched_param' declared inside
parameter list
chan_capi.c: In function `capi_detect_dtmf':
chan_capi.c:209: warning: unused variable `buf'
chan_capi.c:208: warning: unused variable `CMSG'
chan_capi.c:207: warning: unused variable `error'
chan_capi.c: In function `capi_send_digit':
chan_capi.c:256: warning: unused variable `buf'
chan_capi.c:255: warning: unused variable `CMSG'
chan_capi.c:254: warning: unused variable `error'
gcc -shared -Xlinker -x -o chan_capi.so chan_capi.o -lcapi20
gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations
-g -I/usr/include/asterisk -D_REENTRANT -D_GNU_SOURCE -O6
-march=i586 -DNEVER_EVER_EARLY_B3_CONNECTS -DFORCE_SOFTWARE_DTMF -DCAPI_ES
-DCAPI_GAIN -DDEFLECT_ON_CIRCUITBUSY -DCAPI_SYNC -Wno-missing-prototypes
-Wno-missing-declarations -DCRYPTO -c -o app_capiCD.o app_capiCD.c
In file included from /usr/include/asterisk/linkedlists.h:4,
from /usr/include/asterisk/chanvars.h:17,
from /usr/include/asterisk/channel.h:19,
from /usr/include/asterisk/file.h:17,
from app_capiCD.c:16:
/usr/include/pthread.h:211: warning: `struct sched_param' declared inside
parameter list
/usr/include/pthread.h:211: warning: its scope is only this definition or
declaration, which is probably not what you want.
/usr/include/pthread.h:216: warning: `struct sched_param' declared inside
parameter list
/usr/include/pthread.h:302: warning: `struct sched_param' declared inside
parameter list
/usr/include/pthread.h:308: warning: `struct sched_param' declared inside
parameter list
gcc -shared -Xlinker -x -o app_capiCD.so app_capiCD.o
gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations
-g -I/usr/include/asterisk -D_REENTRANT -D_GNU_SOURCE -O6
-march=i586 -DNEVER_EVER_EARLY_B3_CONNECTS -DFORCE_SOFTWARE_DTMF -DCAPI_ES
-DCAPI_GAIN -DDEFLECT_ON_CIRCUITBUSY -DCAPI_SYNC -Wno-missing-prototypes
-Wno-missing-declarations -DCRYPTO -c -o app_capiHOLD.o app_capiHOLD.c
In file included from /usr/include/asterisk/linkedlists.h:4,
from /usr/include/asterisk/chanvars.h:17,
from /usr/include/asterisk/channel.h:19,
from /usr/include/asterisk/file.h:17,
from app_capiHOLD.c:16:
/usr/include/pthread.h:211: warning: `struct sched_param' declared inside
parameter list
/usr/include/pthread.h:211: warning: its scope is only this definition or
declaration, which is probably not what you want.
/usr/include/pthread.h:216: warning: `struct sched_param' declared inside
parameter list
/usr/include/pthread.h:302: warning: `struct sched_param' declared inside
parameter list
/usr/include/pthread.h:308: warning: `struct sched_param' declared inside
parameter list
gcc -shared -Xlinker -x -o app_capiHOLD.so app_capiHOLD.o
gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations
-g -I/usr/include/asterisk -D_REENTRANT -D_GNU_SOURCE -O6
-march=i586 -DNEVER_EVER_EARLY_B3_CONNECTS -DFORCE_SOFTWARE_DTMF -DCAPI_ES
-DCAPI_GAIN -DDEFLECT_ON_CIRCUITBUSY -DCAPI_SYNC -Wno-missing-prototypes
-Wno-missing-declarations -DCRYPTO -c -o app_capiRETRIEVE.o
app_capiRETRIEVE.c
In file included from /usr/include/asterisk/linkedlists.h:4,
from /usr/include/asterisk/chanvars.h:17,
from /usr/include/asterisk/channel.h:19,
from /usr/include/asterisk/file.h:17,
from app_capiRETRIEVE.c:16:
/usr/include/pthread.h:211: warning: `struct sched_param' declared inside
parameter list
/usr/include/pthread.h:211: warning: its scope is only this definition or
declaration, which is probably not what you want.
/usr/include/pthread.h:216: warning: `struct sched_param' declared inside
parameter list
/usr/include/pthread.h:302: warning: `struct sched_param' declared inside
parameter list
/usr/include/pthread.h:308: warning: `struct sched_param' declared inside
parameter list
gcc -shared -Xlinker -x -o app_capiRETRIEVE.so app_capiRETRIEVE.o
gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations
-g -I/usr/include/asterisk -D_REENTRANT -D_GNU_SOURCE -O6
-march=i586 -DNEVER_EVER_EARLY_B3_CONNECTS -DFORCE_SOFTWARE_DTMF -DCAPI_ES
-DCAPI_GAIN -DDEFLECT_ON_CIRCUITBUSY -DCAPI_SYNC -Wno-missing-prototypes
-Wno-missing-declarations -DCRYPTO -c -o app_capiECT.o app_capiECT.c
In file included from /usr/include/asterisk/linkedlists.h:4,
from /usr/include/asterisk/chanvars.h:17,
from /usr/include/asterisk/channel.h:19,
from /usr/include/asterisk/file.h:17,
from app_capiECT.c:16:
/usr/include/pthread.h:211: warning: `struct sched_param' declared inside
parameter list
/usr/include/pthread.h:211: warning: its scope is only this definition or
declaration, which is probably not what you want.
/usr/include/pthread.h:216: warning: `struct sched_param' declared inside
parameter list
/usr/include/pthread.h:302: warning: `struct sched_param' declared inside
parameter list
/usr/include/pthread.h:308: warning: `struct sched_param' declared inside
parameter list
gcc -shared -Xlinker -x -o app_capiECT.so app_capiECT.o
gcc -pipe -Wall -Wmissing-prototypes -Wmissing-declarations
-g -I/usr/include/asterisk -D_REENTRANT -D_GNU_SOURCE -O6
-march=i586 -DNEVER_EVER_EARLY_B3_CONNECTS -DFORCE_SOFTWARE_DTMF -DCAPI_ES
-DCAPI_GAIN -DDEFLECT_ON_CIRCUITBUSY -DCAPI_SYNC -Wno-missing-prototypes
-Wno-missing-declarations -DCRYPTO -c -o app_capiMCID.o app_capiMCID.c
In file included from /usr/include/asterisk/linkedlists.h:4,
from /usr/include/asterisk/chanvars.h:17,
from /usr/include/asterisk/channel.h:19,
from /usr/include/asterisk/file.h:17,
from app_capiMCID.c:16:
/usr/include/pthread.h:211: warning: `struct sched_param' declared inside
parameter list
/usr/include/pthread.h:211: warning: its scope is only this definition or
declaration, which is probably not what you want.
/usr/include/pthread.h:216: warning: `struct sched_param' declared inside
parameter list
/usr/include/pthread.h:302: warning: `struct sched_param' declared inside
parameter list
/usr/include/pthread.h:308: warning: `struct sched_param' declared inside
parameter list
gcc -shared -Xlinker -x -o app_capiMCID.so app_capiMCID.o
rm app_capiCD.o app_capiECT.o app_capiMCID.o app_capiHOLD.o app_capiRETRIEVE.o
Many warnings I know but it seems to work so far ... tried some compile
flags and else
but the warnings are still there. Really don't know if I have to worry
about that ...
Sorry for the longs posting, but I really could need some help ....
bye bo
More information about the asterisk-users
mailing list