neue Version chan_capi-cm-0.6.4

Netview

IPPF-Promi
Mitglied seit
1 Apr 2004
Beiträge
3,366
Punkte für Reaktionen
0
Punkte
36
Habe gerade versucht sie auf meinem System einzusetzen. Leider geht asterisk beim start in einen loop (100% CPU Benutzung), daher musste ich zum cvs-Stand 1.148 zurückdrehen (ich verwende eine Fritz!card PCI).

Hat jemand das gleiche Problem?
 
Dies ist mir bisher nicht bekannt. Wann taucht das Problem auf?
Hast du eine debug log fuer mich?

Armin
 
Code:
fli4l 3.0.0 # asterisk -gcddddvvvv
Parsing /etc/asterisk/asterisk.conf
Parsing /data/share/asterisk/etc/extconfig.conf
Asterisk 1.2.4, 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.
=========================================================================
Logfile Warning: Unknown keyword '' at line 63 of logger.conf
Asterisk Dynamic Loader loading preload modules:
  == 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
Asterisk Management interface listening on port 5038
Feb 12 11:07:08 NOTICE[7818]: cdr.c:1188 do_reload: CDR simple logging enabled.
  == 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'
Asterisk Dynamic Loader Starting:
 [res_musiconhold.so] => (Music On Hold Resource)
  == Registered application 'MusicOnHold'
  == Registered application 'WaitMusicOnHold'
  == Registered application 'SetMusicOnHold'
  == Registered application 'StartMusicOnHold'
  == Registered application 'StopMusicOnHold'
 [res_features.so] => (Call Features Resource)
Junk at the beginning 49443302
  == Registered application 'ParkedCall'
  == Registered application 'Park'
  == Manager registered action ParkedCalls
 [chan_sccp.so] => (Skinny Client Control Protocol (SCCP). Release: 20060210)
  == Platform byte order   : LITTLE ENDIAN
    -- GLOBAL: Preferred capability (g729|alaw|ulaw)
    -- Added empty speeddial
    -- Added device 'SEP0013C3E22D20' (7920)
    -- Added empty speeddial
    -- Added device 'SEP0013C307ECC8' (7940)
    -- Added line 'wifi'
    -- Added line 'fli4l'
    -- SCCP channel driver up and running on 0.0.0.0:2000
    -- SCCP listening on 0.0.0.0:2000
  == Registered channel type 'SCCP' (Skinny Client Control Protocol (SCCP))
  == Registered application 'SetCalledParty'
 [chan_capi.so] => (Common ISDN API for Asterisk)
  == This box has 1 capi controller(s).
    -- CAPI/contr1 supports DTMF
    -- CAPI/contr1 supports supplementary services
       > supplementary services : 0x000003ff
       > HOLD/RETRIEVE
       > TERMINAL PORTABILITY
       > ECT
       > 3PTY
       > CF
       > CD
       > MCID
       > CCBS
       > MWI
       > CCNR
    -- capi_pvt ISDN1-pseudo-D (31,34,35,37,39,outbound,0,2) (0,4,64)
    -- capi_pvt ISDN1 (31,34,35,37,39,outbound,0,2) (0,4,64)
    -- capi_pvt ISDN1 (31,34,35,37,39,outbound,0,2) (0,4,64)
    -- listening on contr1 CIPmask = 0x1fff03ff
  == Registered channel type 'CAPI' (Common ISDN API Driver (cm-0.6.4) )
  == Registered application 'capiCommand'
  == Registered custom function VANITYNUMBER
Warning, flexibel rate not heavily tested!
...


danach ist die capi bereits im loop.

capi.conf:
Code:
;
; CAPI config
;
;

; general section

[general]
nationalprefix=0
internationalprefix=00
rxgain=1.0
txgain=1.0
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=did      ;'MSN' (point-to-multipoint) or 'DID' (direct inward dial)
                  ;when using NT-mode, ptp should be set in any case
incomingmsn=31,34,35,37,39 ;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=      ;PBX accountcode to use in CDRs
context=outbound  ;context for incoming calls
;holdtype=hold    ;when the PBX 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     ;immediate start of pbx with extension 's' if no digits were
                  ;received on incoming call (no destination number yet)
;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      ;PBX call group
;language=de      ;set language for this device (overwrites default language)
;disallow=all     ;RTP codec selection (valid with Eicon DIVA Server only)
;allow=all        ;RTP codec selection (valid with Eicon DIVA Server only)
devices=2         ;number of concurrent calls on this controller
                  ;(2 makes sense for single BRI, 30 for PRI)

Gruss
Netview
 
Danke fuer das Log. Ich werde versuchen das mal nachzustellen.
Auf den ersten Blick im Log sieht es aber nicht nach chan_capi aus, denn das
ist da mit allen Meldungen schon komplett geladen.... aber noch nicht benutzt.

Armin
 
Hallo Armin!

Gibt es schon neue Erkenntnisse zu meinem loop-Problem?
 
Sorry, hatte noch keine Zeit zu schauen, das klappt wohl erst am Wochenende.
Habe noch einiges mit OpenPBX zu machen, da scheint das Problem zumindest nicht aufzutauchen.

Armin
 
Gerade eben habe ich mal das neueste CVS gezogen - kann dies jedoch nicht kompilieren:
Code:
[B]overlinux-2-xxl:/home/share/chan_capi # make install
gcc -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations -g  -I/usr/include -D_REENTRANT -D_GNU_SOURCE  -O6 -march=i686  -DASTERISKVERSION=\"CVS-HEAD-02/18/06-16:28:56\" -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO
-c -o chan_capi.o chan_capi.c
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning:   as it has already been specified as a non-system directory
chan_capi.c:1979:1: directives may not be used inside a macro argument
chan_capi.c:1978:58: unterminated argument list invoking macro "cc_verbose"
chan_capi.c: In function `capi_new':
chan_capi.c:1980: `cc_verbose' undeclared (first use in this function)
chan_capi.c:1980: (Each undeclared identifier is reported only once
chan_capi.c:1980: for each function it appears in.)
chan_capi.c:1980: parse error before "tmp"
chan_capi.c: In function `mkif':
chan_capi.c:4623: warning: int format, long unsigned int arg (arg 5)
make: *** [chan_capi.o] Fehler 1
 
Den Compile-Fehler kann ich hier nicht nachvollziehen.
Hast du aktuelles CVS HEAD oder Stable branch V0_6 ?
(beides sollte aber ohne Probleme laufen).

Armin
 
Ich verwende CVS Head und habe eben nochmals aktualisiert - erhalte weiterhin folgende Fehler:
Code:
gcc -pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations -g  -I/usr/include -D_REENTRANT -D_GNU_SOURCE  -O6 -march=i686  -DASTERISKVERSION=\"CVS-HEAD-02/19/06-11:24:00\" -Wno-missing-prototypes -Wno-missing-declarations -DCRYPTO
-c -o chan_capi.o chan_capi.c
cc1: warning: changing search order for system directory "/usr/include"
cc1: warning:   as it has already been specified as a non-system directory
chan_capi.c:1979:1: directives may not be used inside a macro argument
chan_capi.c:1978:58: unterminated argument list invoking macro "cc_verbose"
chan_capi.c: In function `capi_new':
chan_capi.c:1980: `cc_verbose' undeclared (first use in this function)
chan_capi.c:1980: (Each undeclared identifier is reported only once
chan_capi.c:1980: for each function it appears in.)
chan_capi.c:1980: parse error before "tmp"
make: *** [chan_capi.o] Fehler 1

Ansonsten ist die letzte Version die bei mir problemlos lief die 0.6.3 bzw. danach noch cvs-head 1.148
 
Hast Du auch alle Dateien aus den chan_capi CVS geupdated, oder nur chan_capi.c ?

Armin
 
armincm schrieb:
Hast Du auch alle Dateien aus den chan_capi CVS geupdated, oder nur chan_capi.c ?

Armin

Hallo Armin!

Alle.
 
Dann habe ich keine Idee. Ich habe eben asterisk-1.2.4 neu geladen und chan_capi aus CVS HEAD danach kompiliert -> alles okay.

Armin
 
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.