kann chan_capi nicht laden

mitch-geht-ab

Neuer User
Mitglied seit
20 Jul 2007
Beiträge
22
Punkte für Reaktionen
0
Punkte
0
hallo.

ich hab mir den asterisk aus dem debian 4.0 installiert und der läuft bis jetzt ganz gut. jetzt hab ich eine avm fritzcard pci b1 installiert. laut capiinfo läuft die karte unter linux, und ein capifax an meine handynr. lässt es auch bimmeln, also kann ein call aufgebaut werden.

soooo nun hab ich mir dir chan_capi-cm-0.6.5 runtergeladen und mit make; make install installiert. meine /etc/asterisk/modules.conf sieht folgt aus

Code:
;
; Asterisk configuration file
;
; Module Loader configuration file
;

[modules]
autoload=yes
;
; Any modules that need to be loaded before the Asterisk core has been
; initialized (just after the logger has been initialized) can be loaded
; using 'preload'. This will frequently be needed if you wish to map all
; module configuration files into Realtime storage, since the Realtime
; driver will need to be loaded before the modules using those configuration
; files are initialized.
;
; An example of loading ODBC support would be:
;preload => res_odbc.so
;preload => res_config_odbc.so
;
; If you want, load the GTK console right away.
; Don't load the KDE console since
; it's not as sophisticated right now.
;
noload => pbx_gtkconsole.so
;load => pbx_gtkconsole.so
noload => pbx_kdeconsole.so
;
; Intercom application is obsoleted by
; chan_oss.  Don't load it.
;
noload => app_intercom.so
;
; The 'modem' channel driver and its subdrivers are
; obsolete, don't load them.
;
noload => chan_modem.so
noload => chan_modem_aopen.so
noload => chan_modem_bestdata.so
noload => chan_modem_i4l.so
;noload => chan_capi.so
;
load => res_musiconhold.so
;
; Load either OSS or ALSA, not both
; By default, load OSS only (automatically) and do not load ALSA
;
noload => chan_alsa.so
;noload => chan_oss.so
;
; Module names listed in "global" section will have symbols globally
; exported to modules loaded after them.
;
[global]

chan_capi.so=yes


und meine /etc/asterisk.capi.conf so (kopiert aus den src der chan_capi):

Code:
;
; CAPI config
;
;

; general section

[general]
nationalprefix=0
internationalprefix=00
rxgain=0.8
txgain=0.8
language=de      ;set default language
;ulaw=yes        ;set this, if you live in u-law world instead of a-law

; interface sections ...

[ISDN1]          ;this example interface gets name 'ISDN1' and may be any
                 ;name not starting with 'g' or 'contr'.
;ntmode=yes      ;if isdn card operates in nt mode, set this to yes
isdnmode=msn     ;'MSN' (point-to-multipoint) or 'DID' (direct inward dial)
                 ;when using NT-mode, 'DID' should be set in any case
incomingmsn=*    ;allow incoming calls to this list of MSNs/DIDs, * = any
;defaultcid=123  ;set a default caller id to that interface for dial-out,
                 ;this caller id will be used when dial option 'd' is set.
;controller=0    ;ISDN4BSD default
;controller=7    ;ISDN4BSD USB default
controller=1     ;capi controller number to use
group=1          ;dialout group
;prefix=0        ;set a prefix to calling number on incoming calls
softdtmf=on      ;enable/disable software dtmf detection, recommended for AVM cards
relaxdtmf=on     ;in addition to softdtmf, you can use relaxed dtmf detection
accountcode=     ;Asterisk accountcode to use in CDRs
context=capi-in  ;context for incoming calls
;holdtype=hold   ;when Asterisk puts the call on hold, ISDN HOLD will be used. If
                 ;set to 'local' (default value), no hold is done and Asterisk may
                 ;play MOH.
;immediate=yes   ;DID: immediate start of pbx with extension 's' if no digits were
                 ;     received on incoming call (no destination number yet)
                 ;MSN: start pbx on CONNECT_IND and don't wait for SETUP/SENDING-COMPLETE.
                 ;     info like REDIRECTINGNUMBER may be lost, but this is necessary for
                 ;     drivers/pbx/telco which does not send SETUP or SENDING-COMPLETE.
;echosquelch=1   ;_VERY_PRIMITIVE_ echo suppression
;echocancel=yes  ;EICON DIVA SERVER (CAPI) echo cancelation
                 ;(possible values: 'no', 'yes', 'force', 'g164', 'g165')
echocancelold=yes;use facility selector 6 instead of correct 8 (necessary for older eicon drivers)
;echotail=64     ;echo cancel tail setting
;bridge=yes      ;native bridging (CAPI line interconnect) if available
;callgroup=1     ;Asterisk call group
;language=de     ;set language for this device (overwrites default language)
devices=2        ;number of concurrent calls on this controller
                 ;(2 makes sense for single BRI, 30 for PRI)



soooooo nun starte ich den asterisk so "asterisk -vvvvvvvgc"

und bekomme folgende:

Code:
 [chan_capi.so] => (Common ISDN API for Asterisk)
  == Parsing '/etc/asterisk/capi.conf': Found
  == This box has 1 capi controller(s).
    -- CAPI/contr1 supports DTMF
    -- CAPI/contr1 supports supplementary services
       > FACILITY_CONF INFO = 0
       > supplementary services : 0x000003ff
       > HOLD/RETRIEVE
       > TERMINAL PORTABILITY
       > ECT
       > 3PTY
       > CF
       > CD
       > MCID
       > CCBS
       > MWI
       > CCNR
  == Reading config for ISDN1
Ungültiger Maschinenbefehl (core dumped)


wenn ich in der modules.conf chan_capi auf noload stelle, startet er ganz normal. jedoch ohne capi, ist klar.
ich hab k.A. wo in der capi.conf nen config fehler sein könnte. bzw. warum es einen ungültigen maschinenbefehl gibt.

vielleicht hat einer von euch ne ahnung??

gruß aus ffm,

thomas
 
in der modules.conf:

load => res_features.so vor
load => chan_capi.so setzen!
 
hmmm... neeee...

jetzt sieht meine modules.conf so aus

Code:
;
; Asterisk configuration file
;
; Module Loader configuration file
;

[modules]
autoload=yes
;
; Any modules that need to be loaded before the Asterisk core has been
; initialized (just after the logger has been initialized) can be loaded
; using 'preload'. This will frequently be needed if you wish to map all
; module configuration files into Realtime storage, since the Realtime
; driver will need to be loaded before the modules using those configuration
; files are initialized.
;
; An example of loading ODBC support would be:
;preload => res_odbc.so
;preload => res_config_odbc.so
;
; If you want, load the GTK console right away.
; Don't load the KDE console since
; it's not as sophisticated right now.
;
noload => pbx_gtkconsole.so
;load => pbx_gtkconsole.so
noload => pbx_kdeconsole.so
;
; Intercom application is obsoleted by
; chan_oss.  Don't load it.
;
noload => app_intercom.so
;
; The 'modem' channel driver and its subdrivers are
; obsolete, don't load them.
;
noload => chan_modem.so
noload => chan_modem_aopen.so
noload => chan_modem_bestdata.so
noload => chan_modem_i4l.so
noload => chan_capi.so
;
load => res_musiconhold.so
;
; Load either OSS or ALSA, not both
; By default, load OSS only (automatically) and do not load ALSA
;
noload => chan_alsa.so
;noload => chan_oss.so
;
; Module names listed in "global" section will have symbols globally
; exported to modules loaded after them.
;
load => res_features.so
load => chan_capi.so


[global]

chan_capi.so=yes


und bekommen tu ich folgendes

Code:
montecito:/etc/asterisk# asterisk -vvvvvvvgc
  == Parsing '/etc/asterisk/asterisk.conf': Found
  == Parsing '/etc/asterisk/extconfig.conf': Found
Asterisk 1.2.13, Copyright (C) 1999 - 2006 Digium, Inc. and others.
Created by Mark Spencer <[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/logger.conf': Found
Asterisk Event Logger Started /var/log/asterisk/event_log
  == Parsing '/etc/asterisk/dnsmgr.conf': Found
Asterisk Dynamic Loader loading preload modules:
  == Parsing '/etc/asterisk/modules.conf': Found
  == Manager registered action Ping
  == Manager registered action Events
  == Manager registered action Logoff
  == Manager registered action Hangup
  == Manager registered action Status
  == Manager registered action Setvar
  == Manager registered action Getvar
  == Manager registered action Redirect
  == Manager registered action Originate
  == Manager registered action Command
  == Manager registered action ExtensionState
  == Manager registered action AbsoluteTimeout
  == Manager registered action MailboxStatus
  == Manager registered action MailboxCount
  == Manager registered action ListCommands
  == Parsing '/etc/asterisk/manager.conf': Found
Asterisk Management interface listening on port 5038
  == Parsing '/etc/asterisk/cdr.conf': Found
Jul 20 23:18:00 NOTICE[18171]: cdr.c:1192 do_reload: CDR simple logging enabled.
  == 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'
 [ExecIfTime]
  == Registered application 'ExecIfTime'
 [Hangup]
  == Registered application 'Hangup'
 [NoOp]
  == Registered application 'NoOp'
 [Progress]
  == Registered application 'Progress'
 [ResetCDR]
  == Registered application 'ResetCDR'
 [ResponseTimeout]
  == Registered application 'ResponseTimeout'
 [Ringing]
  == Registered application 'Ringing'
 [SayNumber]
  == Registered application 'SayNumber'
 [SayDigits]
  == Registered application 'SayDigits'
 [SayAlpha]
  == Registered application 'SayAlpha'
 [SayPhonetic]
  == Registered application 'SayPhonetic'
 [SetAccount]
  == Registered application 'SetAccount'
 [SetAMAFlags]
  == Registered application 'SetAMAFlags'
 [SetGlobalVar]
  == Registered application 'SetGlobalVar'
 [SetLanguage]
  == Registered application 'SetLanguage'
 [Set]
  == Registered application 'Set'
 [SetVar]
  == Registered application 'SetVar'
 [ImportVar]
  == Registered application 'ImportVar'
 [Wait]
  == Registered application 'Wait'
 [WaitExten]
  == Registered application 'WaitExten'
  == Manager registered action DBGet
  == Manager registered action DBPut
  == Parsing '/etc/asterisk/enum.conf': Found
Asterisk Dynamic Loader Starting:
  == Parsing '/etc/asterisk/modules.conf': Found
 [res_musiconhold.so] => (Music On Hold Resource)
  == Registered application 'MusicOnHold'
  == Registered application 'WaitMusicOnHold'
  == Registered application 'SetMusicOnHold'
  == Registered application 'StartMusicOnHold'
  == Registered application 'StopMusicOnHold'
  == Parsing '/etc/asterisk/musiconhold.conf': Found
Jul 20 23:18:00 WARNING[18171]: res_musiconhold.c:852 moh_register: Unable to open pseudo channel for timing...  Sound may be choppy.
 [res_features.so] => (Call Features Resource)
  == Parsing '/etc/asterisk/features.conf': Found
    -- Registered extension context 'parkedcalls'
    -- Added extension '700' priority 1 to parkedcalls
  == Registered application 'ParkedCall'
  == Registered application 'Park'
  == Manager registered action ParkedCalls
 [chan_capi.so] => (Common ISDN API for Asterisk)
  == Parsing '/etc/asterisk/capi.conf': Found
Jul 20 23:18:00 WARNING[18176]: res_musiconhold.c:421 spawn_mp3: Found no files in '/usr/share/asterisk/mohmp3'
Jul 20 23:18:00 WARNING[18176]: res_musiconhold.c:493 monmp3thread: Unable to spawn mp3player
  == This box has 1 capi controller(s).
    -- CAPI/contr1 supports DTMF
    -- CAPI/contr1 supports supplementary services
       > FACILITY_CONF INFO = 0
       > supplementary services : 0x000003ff
       > HOLD/RETRIEVE
       > TERMINAL PORTABILITY
       > ECT
       > 3PTY
       > CF
       > CD
       > MCID
       > CCBS
       > MWI
       > CCNR
  == Reading config for ISDN1
Ungültiger Maschinenbefehl (core dumped)
 
ohh hab ich nicht?
also die asterisk version ist die: Asterisk 1.2.13
die halt bei debian 4.0 dabei war.
zum spielen langt die ja erst mal.

hmm warum ich die 0.6.5 genommen hab!? k.A. hab wohl nicht richtig durchgelesen. hab die letzte in der liste genommen. aber jetzt seh ich es auch das es da noch ne 1.0.1 gibt. danke.

also ich werd jetzt nochmal die probieren und geb dann nochmal feedback.
aber trotzdem danke erst mal!
 
also hat nix gebracht.

Code:
montecito:/etc/asterisk# asterisk -vvvvvvvgc
  == Parsing '/etc/asterisk/asterisk.conf': Found
  == Parsing '/etc/asterisk/extconfig.conf': Found
Asterisk 1.2.13, Copyright (C) 1999 - 2006 Digium, Inc. and others.
Created by Mark Spencer <[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'show license' for details.
=========================================================================
  == Parsing '/etc/asterisk/logger.conf': Found
Asterisk Event Logger Started /var/log/asterisk/event_log
  == Parsing '/etc/asterisk/dnsmgr.conf': Found
Asterisk Dynamic Loader loading preload modules:
  == Parsing '/etc/asterisk/modules.conf': Found
  == Manager registered action Ping
  == Manager registered action Events
  == Manager registered action Logoff
  == Manager registered action Hangup
  == Manager registered action Status
  == Manager registered action Setvar
  == Manager registered action Getvar
  == Manager registered action Redirect
  == Manager registered action Originate
  == Manager registered action Command
  == Manager registered action ExtensionState
  == Manager registered action AbsoluteTimeout
  == Manager registered action MailboxStatus
  == Manager registered action MailboxCount
  == Manager registered action ListCommands
  == Parsing '/etc/asterisk/manager.conf': Found
Asterisk Management interface listening on port 5038
  == Parsing '/etc/asterisk/cdr.conf': Found
Jul 21 10:06:18 NOTICE[8396]: cdr.c:1192 do_reload: CDR simple logging enabled.
  == 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'
 [ExecIfTime]
  == Registered application 'ExecIfTime'
 [Hangup]
  == Registered application 'Hangup'
 [NoOp]
  == Registered application 'NoOp'
 [Progress]
  == Registered application 'Progress'
 [ResetCDR]
  == Registered application 'ResetCDR'
 [ResponseTimeout]
  == Registered application 'ResponseTimeout'
 [Ringing]
  == Registered application 'Ringing'
 [SayNumber]
  == Registered application 'SayNumber'
 [SayDigits]
  == Registered application 'SayDigits'
 [SayAlpha]
  == Registered application 'SayAlpha'
 [SayPhonetic]
  == Registered application 'SayPhonetic'
 [SetAccount]
  == Registered application 'SetAccount'
 [SetAMAFlags]
  == Registered application 'SetAMAFlags'
 [SetGlobalVar]
  == Registered application 'SetGlobalVar'
 [SetLanguage]
  == Registered application 'SetLanguage'
 [Set]
  == Registered application 'Set'
 [SetVar]
  == Registered application 'SetVar'
 [ImportVar]
  == Registered application 'ImportVar'
 [Wait]
  == Registered application 'Wait'
 [WaitExten]
  == Registered application 'WaitExten'
  == Manager registered action DBGet
  == Manager registered action DBPut
  == Parsing '/etc/asterisk/enum.conf': Found
Asterisk Dynamic Loader Starting:
  == Parsing '/etc/asterisk/modules.conf': Found
 [res_musiconhold.so] => (Music On Hold Resource)
  == Registered application 'MusicOnHold'
  == Registered application 'WaitMusicOnHold'
  == Registered application 'SetMusicOnHold'
  == Registered application 'StartMusicOnHold'
  == Registered application 'StopMusicOnHold'
  == Parsing '/etc/asterisk/musiconhold.conf': Found
Jul 21 10:06:18 WARNING[8396]: res_musiconhold.c:852 moh_register: Unable to open pseudo channel for timing...  Sound may be choppy.
 [res_features.so] => (Call Features Resource)
  == Parsing '/etc/asterisk/features.conf': Found
    -- Registered extension context 'parkedcalls'
    -- Added extension '700' priority 1 to parkedcalls
Jul 21 10:06:18 WARNING[8401]: res_musiconhold.c:421 spawn_mp3: Found no files in '/usr/share/asterisk/mohmp3'
Jul 21 10:06:18 WARNING[8401]: res_musiconhold.c:493 monmp3thread: Unable to spawn mp3player
  == Registered application 'ParkedCall'
  == Registered application 'Park'
  == Manager registered action ParkedCalls
 [chan_capi.so] => (Common ISDN API for Asterisk)
  == Parsing '/etc/asterisk/capi.conf': Found
    -- Registering at CAPI (blocksize=160 maxlogicalchannels=2)
  == This box has 1 capi controller(s).
    -- CAPI/contr1 supports DTMF
    -- CAPI/contr1 supports supplementary services
       > FACILITY_CONF INFO = 0
       > supplementary services : 0x000003ff
       >  HOLD/RETRIEVE TERMINAL-PORTABILITY ECT 3PTY CF CD MCID CCBS MWI CCNR
    -- CAPI/contr1 private options=0x01000001
  == Reading config for ISDN1
Ungültiger Maschinenbefehl (core dumped)
 
Hallo Thomas ,

ohh hab ich nicht?
also die asterisk version ist die: Asterisk 1.2.13
die halt bei debian 4.0 dabei war.
zum spielen langt die ja erst mal.

Wenn das so ist installiere per
Code:
apt-get install asterisk-chan-capi

Mit der solltest du es hinbekommen .

zu Deiner Modules.conf .

Du hast chan_capi.so 2 mal drin , beim ersten mal sagst du er soll es nicht laden , dann sagst er soll es laden.. Das ist ein bisschen verwirrend für den PC daher hier mal meine modules.conf

Code:
;
; Asterisk configuration file
;
; Module Loader configuration file
;

[modules]
autoload=yes
noload => chan_misdn.so 
noload => pbx_ael.so
load => res_features.so
load => chan_capi.so
noload => chan_sccp.so 

[global]
chan_capi.so=yes
;
;
; An example of loading ODBC support would be:
;preload => res_odbc.so
;preload => res_config_odbc.so
;
; Uncomment the following if you wish to use the Speech Recognition API
;preload => res_speech.so

noload => pbx_gtkconsole.so
;load => pbx_gtkconsole.so
noload => pbx_kdeconsole.so
load => res_musiconhold.so

noload => chan_alsa.so
noload => chan_oss.so

ich hoffe ich konnte dir helfen .)

bg

thomas aus ffm nach ffm .)
 
Zuletzt bearbeitet:
mitch-geht-ab schrieb:
also hat nix gebracht.

Code:
Ungültiger Maschinenbefehl (core dumped)
Das sieht mir eher nach Problemen mit dem Befehlssatz deines Prozessors aus.
Sowas bekommt man wenn die Software Befehle absetzt die der Prozessor nicht kennt bzw. nicht emulieren kann.
Solch einen Fall hatte ich mal auf einem Geode wo alles fuer i386 kompiliert wurde. Nach Umstellen auf i586 in den makefiles ging das besser :)
 
hmmmmm... also ich hab hier so ne via c3 cpu auf dem enstprechenden via mini itx board.

also zu dem doppelten eintrag: also ich habs auch schon rausgenommen mit dem unload, und auch an den anfang geschrieben, das er es quasi als aller erstes läd usw.
jegliche kombination brachte mit quasi beim laden des chan_capi das selbe ergebnis.

@numsi: also sollte ich deiner meinung nach den asterisk auf jeden fall selbst kompilieren? und in der makefile auf 586 umstellen? oder 686?? wo find ich den raus, was für den via c3 am besten ist?
also für meinen core duo weiß ich mittlerweile das 686 da am besten ist, auch wegen der double core erkennung usw. aber das hab ich auch nur mal irgendwo gelesen.
 
also alles sehr komisch!
ich hab jetzt die chan_capi mit aptitude installiert und funzt!
also ich denke auch mal das es dann mit den selbst kompilierten nen problem in sinne mit verträglichkeit mit der cpu gab. k.A. evt. musste doch noch was in der makefile oder so eingestellt werden.

werd mich da jetzt auch erst mal nicht weiter drum kümmern. spiel lieber noch nen bisschen mit dem asterisk rum. aber ich behalts im hinterkopf für ne produktionsumgebung!

danke an alle!
 
Hilfe!!!

Habe ein ähnliches Problem wie mitch.

Benutze Asterisk 1.4.4 mit Debian 4.0

Habe die chan_capi über aptitude installiert, weil alle anderen Versuche fehlegschlagen sind.

Nun stürzt der Asterisk wenigstens nicht mehr ab. (Was er vorher tat...)

Aber er will die chan_capi.so nicht laden.

Folgender Fehler tritt auf:

Code:
[Jul 27 09:02:31] [COLOR="Red"]WARNING[/COLOR][7064]: loader.c:375 load_dynamic_module: Module 'chan_capi.so' did not register itself during load

[Jul 27 09:02:31] [COLOR="red"]WARNING[/COLOR][7064]: loader.c:614 load_resource: Module 'chan_capi.so' could not be loaded.

Ich fand trotz Suche keinen Weg, capi zum laufen zu bekommen!

Kann mir jemand helfen oder einen Tip geben.


Beste Grüße

enno
 

Statistik des Forums

Themen
246,619
Beiträge
2,255,000
Mitglieder
374,540
Neuestes Mitglied
Krimi_M
Holen Sie sich 3CX - völlig kostenlos!
Verbinden Sie Ihr Team und Ihre Kunden Telefonie Livechat Videokonferenzen

Gehostet oder selbst-verwaltet. Für bis zu 10 Nutzer dauerhaft kostenlos. Keine Kreditkartendetails erforderlich. Ohne Risiko testen.

3CX
Für diese E-Mail-Adresse besteht bereits ein 3CX-Konto. Sie werden zum Kundenportal weitergeleitet, wo Sie sich anmelden oder Ihr Passwort zurücksetzen können, falls Sie dieses vergessen haben.