Kein Ton über CAPI

mark.hellmanns

Neuer User
Mitglied seit
7 Apr 2007
Beiträge
19
Punkte für Reaktionen
0
Punkte
0
Hallo,

ich habe meine Telefone über SIP an Asterisk angeschlossen. Intern-Gespräche und extern Gespräche über einen VOIP-Anbieter (SIPGATE) funktionieren bestens und in sehr guter Qualität.

Eingehende Gespräche über ISDN (CAPI) gehen nicht. Asterisk erkennt einen eingehenden Anruf und lässt das SIP-Telefon klingeln. Beim Abnehmen hört man ganz kurz komische Geräusche, dann totenstille - in beide Richtungen. Lässt man den Anrufbeantworter von Asterisk drangehen, der selbe Effekt.

Folgende Fehler erscheinen:

chan_capi_rtp.c:313 capi_read_rtp_ rtp struct is NULL

dieser Fehler wiederholt sich während des "Gespräches" immer wieder.

Hier meine CAPI.conf


Code:
;!
;! Automatically generated configuration file
;! Filename: capi.conf (/asterisk/etc/capi.conf)
;! Generator: AsteriskWin32 PBX
;! Creation Date: Tue Aug 23 13:34:09 2005
;!
[general]
nationalprefix = 0
internationalprefix = 00
txgain = 1.0
rxgain = 1.0
b3_block_size = 256
use_smoother = yes
max_bchans=2

;language=us      ;set default language
;ulaw=yes        ;set this, if you live in u-law world instead of a-law

;REMOTE CAPI Routers
[rcapi]
;debug = 1 ;rcapi debugging
;dcp = host:port   ;for ISDN-DCP Router
;bintec = host:port  ;for BINTEC Router RCAPI 

; interface sections ...

[ISDN1]		;name not starting with 'g' or 'contr'.
controller=1	;capi controller number to use
context=capi-in
group=1		;dialout group
isdnmode=msn	;'MSN' (point-to-multipoint) or 'DID' (direct inward dial)
                  ;when using NT-mode, 'DID' should be set in any case
;ntmode=no        ;if isdn card operates in nt mode, set this to yes
;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.

incomingmsn=*    ;allow incoming calls to this list of MSNs/DIDs, * = any
;softdtmf=on      ;enable/disable software dtmf detection, recommended for AVM cards
;relaxdtmf=on     ;in addition to softdtmf, you can use relaxed dtmf detection
;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.

       

;accountcode=     ;Asterisk accountcode to use in CDRs

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

;bridge=yes      ;native bridging (CAPI line interconnect) if available
;callgroup=1     ;Asterisk call group
;language=us     ;set language for this device (overwrites default language)
;faxdetect=off
;prefix=0        ;set a prefix to calling number on incoming calls
;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)
;echosquelch=1   ;_VERY_PRIMITIVE_ echo suppression
;echotail=64     ;echo cancel tail setting
devices=2        ;number of concurrent calls on this controller
                 ;(2 makes sense for single BRI, 30 for PRI)


;[ISDN2]
;controller=2
;group=2
;isdnmode=msn
;immediate=yes
;incomingmsn=154065
;softdtmf=on
;relaxdtmf=on
;faxdetect=off
;context=capi-in
;echocancel=yes
;echocancelold=yes
;devices=2
 
Nach der Fehlermeldung sieht es so aus, dass RTP aktiviert ist, was aber nur mit den Dialogic DIVA Karten und der capi.conf Option allow= geht. Welche Karte und welche Version von chan_capi nutzt du?

Armin
 
Hallo Armin,

ich verwende die chan_capi 1.0.0. Die Karte ist eine AVM B1.


Grüße

Mark
 
Da die AVM Karte kein RTP kann, sollte sowas nicht passieren. Bist du sicher, dass in der capi.conf kein "allow=..." steht?
Ansonsten kann ich mir nur denken, dass die Software nicht korrekt compiliert ist, bzw. unter Windows nicht korrekt läuft.

Armin
 
Falls nochmal jemand auf dieses Problem stoßen sollte: Bei mir ließ es sich lösen, indem ich die Einstellung "b3_block_size" aus der capi.conf entfernt habe. Diese war dort von der Distribution nämlich mit 256 vorbelegt - was offenbar Quatsch ist.
 
Kostenlos!

Statistik des Forums

Themen
249,052
Beiträge
2,309,528
Mitglieder
378,849
Neuestes Mitglied
Callendaar