Asterisk startet nicht mehr nach Chan Capi Installation :(

FlashDeluxe

Neuer User
Mitglied seit
31 Okt 2008
Beiträge
93
Punkte für Reaktionen
0
Punkte
0
Hallo Zusammen,

ich habe gerade Trixbox installiert (Version 2.8.0.3) in Verbindung mit einer Gerdes Karte (2S0). Die Installation von Trixbox und die des Gerdes Treibers verlief problemlos (und da konnte man den Server auch noch starten!), aber nachdem ich chan capi installiert habe (chan_capi-HEAD) lässt sich der Asterisk Server nicht mehr starten und ich erhalte den Fehler

line 146: Segmentation Fault 3190 (core dumped)
nice -n $PRIORITY ${ASTBINDIR} /asterisk -f ${CLIARGS}>&/dev/${TTY}
Asterisk end with exit status 139
Asterisk exited on signal EXITSTATUS-128
Automatically restarting Asterisk


Kann mir einer weiterhelfen und mir sagen wie ich dieses Problem beheben kann, bzw welche Version von chan capi mit dieser Trixbox Version nachweislich läuft?

Danke für Eure Hilfe :)
 
Stammt Dein Auszug aus der /var/log/asterisk/messages? Do sollte nämlich eigentlich mehr zu finden sein. Das Problem kann z.B. durch einen Fehler in der capi.conf verursacht werden.

Rentier
 
nice -n $PRIORITY ${ASTBINDIR} /asterisk -f ${CLIARGS}>&/dev/${TTY}

Lass Dir mal die Werte von ASTBINDIR, CLIARGS und TTY anzeigen.

Der Fehler koennte z. B. auftreten, wenn eine der Variablen leer ist oder da irgendwelcher Unsinn drin steht, was tatsaechlich auf einen Fehler in einer .conf hindeuten koennte.
 
Wie bekommt man denn die Werte? Mit diesem Befehl?

nice ${ASTBINDIR}

Wenn ja, sind die Werte alle 0... Was könnte denn in der .conf falsch sein? Ich habe an den .confs nichts geändert, die sind alle noch im Rohzustand..
 
Klar =)

;
; CAPI config
;
;

; general section

[general]
nationalprefix=0 ; or for example "+49"
internationalprefix=00 ; or for example "+"
;subscriberprefix=+4969 ; prefix including area code (some lines need this)
rxgain=1.0 ;linear receive gain (1.0 = no change)
txgain=1.0 ;linear transmit gain (1.0 = no change)
language=de ;set default language
;ulaw=yes ;set this, if you live in u-law world instead of a-law

;jb..... ;with Asterisk 1.4 you can configure jitterbuffer,
;see Asterisk documentation for all jb* setting available.
;mohinterpret=default ;Asterisk 1.4: default music on hold class when placed on hold.


; interface sections ...

[ISDN1] ;this example interface gets name 'ISDN1' and may be any
;name not starting with 'g' or 'contr'.
;Use one interface section for each ISDN port!
;ntmode=yes ;if the 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 the dial option 'd' is set.
;controller=0 ;ISDN4BSD default
;controller=7 ;ISDN4BSD USB default
controller=1 ;CAPI controller number of this interface/port
group=1 ;dialout group
;prefix=0 ;set a prefix to the 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
faxdetect=off ;enable faxdetection and redirection to EXTEN 'fax' for incoming and/or
;outgoing calls. (default='off', possible values: 'incoming','outgoing','both')
faxdetecttime=0 ;Only detect faxes during the first 'n' seconds of the call.
;(default '0' meaning for the whole duration of the call)
accountcode= ;PBX accountcode to use in CDRs
;amaflags=default;AMA flags for CDR ('default', 'omit', 'billing', or 'documentation')
context=isdn-in ;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 the PBX 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 do not 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. Disable it before you start recording voicemail
;or your files may get choppy. (you can use capicommand(echosquelch|no) for this)
;echocancel=yes ;Dialogic(R) Diva(R) (CAPI) echo cancellation (yes=g165)

;(possible values: 'no', 'yes', 'force', 'g164', 'g165')
;echocancelpath=1;Dialogic(R) Diva(R) (CAPI) echo cancellation path
;(possible values: default '1' - E.1/T.1/S0, '2' - IP, '3' - both)
echocancelold=yes;use facility selector 6 instead of correct 8 (necessary for older eicon drivers)
;echotail=64 ;echo cancel tail setting (default=0 for maximum)
;echocancelnlp=1 ;activate non-linear-processing; this improves echo cancel ratio, but might
;incorporate variable gain in the signal path.
;bridge=yes ;native bridging (CAPI line interconnect) if available
;callgroup=1 ;PBX call group
;pickupgroup=1 ;PBX pickup group (which call groups are we allowed to pickup)
;transfergroup=1 ;Controller(s) where a transfer on native bridge is allowed to.
;language=de ;set language for this device (overwrites default language)
;disallow=all ;RTP codec selection (valid with Dialogic(R) Diva(R) Media Boards only)
;allow=all ;RTP codec selection (valid with Dialogic(R) Diva(R) Media Boards only)
devices=2 ;number of concurrent calls (B-Channels) on this controller
;(2 makes sense for single BRI, 30/23 for PRI/T1)
;jb..... ;with Asterisk 1.4 you can configure jitterbuffer,
;see Asterisk documentation for all jb* setting available.
;mohinterpret=default ;Asterisk 1.4: default music on hold class when placed on hold.
;qsig=1 ;enable use of Q.SIG extensions. ECMA Variant
;qsig_prnum=1234 ;enable inbound bridging - this should be an QSIG-network-wide unique number

Sorry für die Formatierung, ich hoffe es geht auch so =)
 
Mit etwas mehr Muehe haette das also so ausgesehen ....

; CAPI config

[general]
nationalprefix = 0
internationalprefix = 00
rxgain = 1.0
txgain = 1.0
language = de

[ISDN1]
isdnmode = msn
incomingmsn = *
controller = 1
group = 1
softdtmf = on
relaxdtmf = on
faxdetect = off
faxdetecttime = 0
accountcode=
context = isdn-in
echocancelold = yes
devices = 2

Mal abgesehen davon, dass ich schon eher die sip.conf und die exensions.conf gesehen haette, warum steht hinter 'accountcode' kein Wert?

Zeige uns mal die beiden vorgenannten Dateien .... aber bitte formatiert!
 
Sorry :(

Jetzt mal formatiert die sip.conf

[general]


#include sip_general_additional.conf
sip_general_custom.conf file.

; jbenable=yes
; jbforce=yes
; nat=yes

#include sip_general_custom.conf
#include sip_nat.conf

#include sip_registrations_custom.conf
#include sip_registrations.conf


#include sip_custom.conf
#include sip_additional.conf

;sip_custom_post.conf
#include sip_custom_post.conf

[general]
static=yes
writeprotect=no

[capi-out]
exten=> _X.,1,Dial(CAPI/contr1/${EXTEN}/b)

[capi-in]

exten=> 022......,1,Dial(CAPI/contr2/22/b)

Wie gesagt, die capi.conf habe ich nicht verändert, was sollte denn hinter accountcode stehen?
 
Mal abgesehen davon, dass ich schon eher die sip.conf und die exensions.conf gesehen haette, warum steht hinter 'accountcode' kein Wert?

Versteh ich jetzt nicht ganz. Asterisk startet ja schon gar nicht mehr, obwohl nur chan_capi installiert wurde. Hat jetzt mit sip.conf und extensions.conf nichts zu tun.
Accountcode brauchst Du nicht, der würde nur wenn vorhanden im CDR aufgeführt.

Ich kann an der capi.conf nichts verwerfliches finden. Funktioniert denn der CAPI überhaupt? Probier mal ein noload=>chan_capi.so in der modules.conf, ob Asterisk dann wieder startet.
 
Hallo! Wenn ich noload=> chancapi.so eingebe, startet Asterisk wieder..was bedeutet das denn jetzt genau? Wo können denn überall die Fehler sein?
 
Das bedeutet dann, dass es auf jeden Fall am chan_capi liegt. Entweder gibt es ein grundlegendes Problem mit Deinem CAPI, oder die chan_capi passt nicht ganz. Sonst fällt mir grad auch nur ein, die letzte stable von chan_capi zu versuchen.

Wo sind die Linux ISDN Spezialisten?!
 
Accountcode brauchst Du nicht, der würde nur wenn vorhanden im CDR aufgeführt.
Das mag ja sein, aber wer mal ernsthaft programmiert hat weiss, dass ein Parameter ohne Zuweisung eines Wertes oft sehr schnell zu einem 'Segmentation Fault' fuehrt.

Also auch wenn's tatsaechlich eine reine 'ISDN-Anlage' ist, wuerde ich zunaechst mal die Config-Dateien saeubern ....
 
Ich habe diesen Punkt jetzt einfach mal auskommentiert. Ich habe schon öfters Trixbox mit chan_capi und dem Gerdes Treiber aufgesetzt und bis jetzt gab es solche Probleme noch nie. Ich werde mal ein paar andere Versionen von chan capi ausprobieren.
 
Also mit der Version 1.1.0 komme ich zu folgendem:


[trixbox1.localdomain chan_capi-1.1.0]# amportal start


SETTING FILE PERMISSIONS
Permissions OK

STARTING ASTERISK
/usr/sbin/safe_asterisk: line 146: 7083 Segmentation fault (core dumped) nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS} >&/dev/${TTY} < /dev/${TTY}
Asterisk ended with exit status 139
Asterisk exited on signal EXITSTATUS-128.
Automatically restarting Asterisk.
mpg123: no process killed
/usr/sbin/safe_asterisk: line 146: 7116 Segmentation fault (core dumped) nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS} >&/dev/${TTY} < /dev/${TTY}
Asterisk ended with exit status 139
Asterisk exited on signal EXITSTATUS-128.
Automatically restarting Asterisk.
mpg123: no process killed

-----------------------------------------------------
Asterisk could not start!
Use 'tail /var/log/asterisk/full' to find out why.
-----------------------------------------------------
[trixbox1.localdomain chan_capi-1.1.0]# tail /var/log/asterisk/full
[Jan 18 16:51:34] VERBOSE[7116] logger.c: == Parsing '/etc/asterisk/jabber.conf': [Jan 18 16:51:34] VERBOSE[7116] logger.c: == Found
[Jan 18 16:51:34] VERBOSE[7116] logger.c: == Manager registered action JabberSend
[Jan 18 16:51:34] VERBOSE[7116] logger.c: == Registered application 'JabberSend'
[Jan 18 16:51:34] VERBOSE[7116] logger.c: == Registered application 'JabberStatus'
[Jan 18 16:51:34] VERBOSE[7116] logger.c: == Registered custom function 'JABBER_STATUS'
[Jan 18 16:51:34] VERBOSE[7116] logger.c: res_jabber.so => (AJI - Asterisk Jabber Interface)
[Jan 18 16:51:34] VERBOSE[7116] logger.c: res_ael_share.so => (share-able code for AEL)
[Jan 18 16:51:34] NOTICE[7116] config.c: Registered Config Engine odbc
[Jan 18 16:51:34] VERBOSE[7116] logger.c: res_config_odbc loaded.
[Jan 18 16:51:34] VERBOSE[7116] logger.c: res_config_odbc.so => (Realtime ODBC configuration)

Hier gibt es ein paar mehr Infos.
 
Kannst du mir bitte mal den genauen Befehl dazu sagen? Oder wenigstens was für Werte dann dabei rauskommen sollen? Egal welche Befehle ich da eingebe, es kommt gar nix dabei raus =(
 
Das mag ja sein, aber wer mal ernsthaft programmiert hat weiss, dass ein Parameter ohne Zuweisung eines Wertes oft sehr schnell zu einem 'Segmentation Fault' fuehrt.

Da geb ich Dir Recht, solange wir nicht von Asterisk conf Files reden.


Ohne Asterisk kein Noop.

Sry, aber ich bin an der Stelle raus.
 
rentier-s;1467695 Sry schrieb:
Habe ich hier jetzt was falsch verstanden?

Die Ueberschrift hiess doch 'Asterisk startet nicht mehr nach Chan Capi Installation'.

Ausserdem dachte ich, wir wollten versuchen FlashDeluxe zu helfen.
 
Ausserdem dachte ich, wir wollten versuchen FlashDeluxe zu helfen.
Würde ich gerne, aber ich hab keine Ahnung, an was es liegen könnte.

Die drei Variablen sind rein vom Namen her doch eher allgemeine Dinge, nichts spezielles von chan_capi.

@FlashDeluxe
auslesen wie folgt: in die extensions.conf
Code:
[default]
exten=>123,1,Noop(Astbindir ${ASTSBINDIR})
exten=>123,n,Noop(CLIArgs ${CLIARGS})
exten=>123,n,Noop(TTY ${TTY})
exten=>123,n,HangUp
Asterisk mit noload=>chan_capi.so starten, und dann auf der CLI ein "console dial 123"
 
Kostenlos!

Statistik des Forums

Themen
248,872
Beiträge
2,303,479
Mitglieder
378,533
Neuestes Mitglied
PatrickSt91