Asterisk und chan_capi_cm
Buch - Scripte

 

modules.conf


[modules]
autoload=yes

noload => pbx_gtkconsole.so
noload => pbx_kdeconsole.so
noload => app_intercom.so
noload => chan_modem.so
noload => chan_modem_aopen.so
noload => chan_modem_bestdata.so
noload => chan_modem_i4l.so
noload => chan_alsa.so

load => res_musiconhold.so
load => chan_capi.so

[global]
chan_capi.so=yes

 

capi.conf


[general]
language=de
nationalprefix=0
internationalprefix=049
rxgain=0.8
txgain=0.8


[ISDN1]

isdnmode=MSN
incomingmsn=51,52
controller=1
softdtmf=on
controller=1
context=capi_in
devices=2

 

 

extensions.conf


[general]
static = yes
writeprotect=yes

[default]
include => sip20
include => sip21
include => sipgate_out
include => capi_out

[sip20]
exten => 20,1,Dial(SIP/20,25,tT)
exten => 20,2,Hangup

[sip21]
exten => 21,1,Dial(SIP/21,25,tT)
exten => 21,2,Hangup

[sipgate_out]
exten => _8.,1,SetCallerID(SIP-ID)
exten => _8.,n,Dial(SIP/${EXTEN:1}@sipgate-out,25,tT)
exten => _8.,n,Hangup

[sipgate_in]
exten => SIP-ID,1,Dial(SIP/20,30,tT)
exten => SIP-ID,n,Hangup

[capi_out]
exten => _7.,1,SetCallerID(51)
exten => _7.,n,Dial(CAPI/contr1/0${EXTEN:1})
exten => _7.,n,Hangup

[capi_in]
exten => 51,1,Dial(SIP/20,25,tT)
exten => 51,n,Hangup

 


Anbindung an vorhandene Telefonanlage

extensions.conf

[general]
static = yes
writeprotect=yes

[default]
include => sip20
include => sip21
include => sipgate_out
include => capi_out

[sip20]
exten => 20,1,Dial(SIP/20,25,tT)
exten => 20,2,Hangup

[sip21]
exten => 21,1,Dial(SIP/21,25,tT)
exten => 21,2,Hangup

[sipgate_out]
exten => _8.,1,SetCallerID(SIP-ID)
exten => _8.,n,Dial(SIP/${EXTEN:1}@sipgate-out)
exten => _8.,n,Hangup

exten => _0.,1,SetCallerID(SIP-ID)
exten => _0.,n,Dial(SIP/${EXTEN}@sipgate-out)
exten => _0.,n,Hangup


[sipgate_in]
exten => SIP-ID,1,Dial(SIP/20,30,tT)
exten => SIP-ID,n,Hangup

[capi_out]
exten => _7.,1,SetCallerID(51)
exten => _7.,n,Dial(CAPI/contr1/0${EXTEN:1})
exten => _7.,n,Hangup

[capi_in]
exten => 51,1,Dial(SIP/20,25,tT)
exten => 51,n,Hangup

exten => 52,1,DISA,no-password|sipgate_out