Als erstes habe ich überflüssige Dateien entfernt. Übrig geblieben sind:
asterisk.conf
[directories]
astetcdir => /etc/asterisk
astmoddir => /usr/lib/asterisk/modules
astvarlibdir => /var/lib/asterisk/
astagidir => /var/lib/asterisk/agi-bin
astspooldir => /var/spool/asterisk
astrundir => /var/run
astlogdir => /var/log/asterisk
[options]
admin = admin
languageprefix=yes
verbose = 0
debug = 0
highpriority = 4
extensions.conf
[iax_in]
exten => _0.,1,Dial(CAPI/ISDN1/${EXTEN})
[capi_in1]
;Bei analogen Anschluss
exten=>s,1,Dial(IAX2/iaxname/${EXTEN})
;Bei ISDN Anschluss 123456 durch MSN ersetzen
;exten => 123456,1,Dial(IAX2/iaxname/${EXTEN})
iax.conf
[general]
register =>user:password@domain.tld
[iaxname]
type=friend
username=iaxname
secret=password
host=domain.tld
qualify=yes
context=iax_in
capi.conf
[general]
nationalprefix=0
internationalprefix=00
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 (en/de...)
;ulaw=yes ;set this, if you live in u-law world instead of a-law
; interface sections …
[ISDN1] ; fritzbox 7050/7170 external S0 (or external analog line: experimental)
ntmode=no ;if isdn card operates in nt mode, set this to yes
isdnmode=msn ;’MSN‘ (point-to-multipoint) or ‚DID‘ (direct inward dial)
incomingmsn=* ;allow incoming calls to this list of MSNs/DIDs, * = any,
;a =“analog controller“: empty incoming msn gets replaced
;with defaultcid (-> fritzbox 7050/7170 at analog line)
defaultcid=1234567 ;set a default caller id to that interface for dial-out,
;this caller id will be used when dial option ‚d‘ is set.
controller=4 ;capi controller number to use (=4: fritzbox 7050/7150 at analog line =1:fritzbox 7050/7150 at ISDN line )
group=1 ;dialout group
softdtmf=off ;enable/disable software dtmf detection, recommended for AVM cards
relaxdtmf=off ;in addition to softdtmf, you can use relaxed dtmf detection
accountcode= ;PBX accountcode to use in CDRs
context=capi-in1 ;context for incoming calls
holdtype=local ;when the PBX puts the call on hold, ISDN HOLD will be used. If
;set to ‚local‘ (default value/alternative is ‚hold‘), no hold is done and the PBX may
;play MOH.
bridge=no ;native bridging (CAPI line interconnect) if available
devices=1 ;number of concurrent calls on this controller (analog: 1, ISDN: 2 )
;(2 makes sense for single BRI, 30 for PRI)
immediate=yes ;(analog: yes, ISDN: no )
[ISDN3] ; fritzbox 7050 internal S0
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, ‚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=3 ;capi controller number to use
group=3 ;dialout group
softdtmf=off ;enable/disable software dtmf detection, recommended for AVM cards
relaxdtmf=off ;in addition to softdtmf, you can use relaxed dtmf detection
accountcode= ;PBX accountcode to use in CDRs
context=capi-in3 ;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 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.
bridge=no ;native bridging (CAPI line interconnect) if available
devices=2 ;number of concurrent calls on this controller
;(2 makes sense for single BRI, 30 for PRI)
; unused example (reference)
;[ISDN9] ;this example interface gets name ‚ISDN9‘ 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, ‚DID‘ should be set in any case
;incomingmsn=* ;allow incoming calls to this list of MSNs/DIDs, * = any
;incomingmsn=8001,8002,8003 ;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=3 ;capi controller number to use
;group=1 ;dialout group
;prefix=0 ;set a prefix to calling number on incoming calls
;softdtmf=off ;enable/disable software dtmf detection, recommended for AVM cards
;relaxdtmf=off ;in addition to softdtmf, you can use relaxed dtmf detection
;accountcode= ;PBX accountcode to use in CDRs
;context=capi-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 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 ;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)
rtp.conf
[general]
rtpstart=30000
rtpend=31000
;rtpchecksums=yes
dtmftimeout=3000
modules.conf
[modules]
autoload = no
load = app_dial.so
load = pbx_config.so
load = res_features.so
load = chan_iax2.so
load = codec_g726.so
load = codec_alaw.so
load = codec_ulaw.so
load = func_md5.so
load = func_language.so
load = func_callerid.so
load = func_channel.so
load = func_global.so
load = func_strings.so
load = func_timeout.so
load = func_moh.so
load = func_math.so
load = func_logic.so
load = func_groupcount.so
load = func_env.so
load = format_g729.so
load = format_g726.so
load = format_wav.so
load = format_wav_gsm.so
load = format_pcm.so
load = chan_capi.so
[global]
chan_capi.so=yes
manager.conf
[general]
enabled = no
port = 5038
bindaddr = 0.0.0.0
logger.conf
[general]
[logfiles]
console => error,warning
messages => error
iaxprov.conf
[default]
codec=ulaw
flags=register,heartbeat
features.conf
[general]
[featuremap]
[applicationmap]
Eventuell kam man noch mehr weglassen. Diese Konfiguration habe ich aber getestet.