Asterisk mit zwei HFC Karten und mISDN
Buch - Scripte

 

/etc/init.d/misdn-init.conf

card=1,hfcpci
card=2,hfcpci

te_ptmp=1
nt_ptmp=2

option=1,master_clock
poll=64
debug=0

 

/etc/asterisk/misdn.conf


[general]
bridging=yes
method=standard
append_digits2exten=yes
stop_tone_after_first_digit=yes
debug=0
tracefile=/var/log/misdn.log

[default]
context=default
language=de
nationalprefix=0
internationalprefix=049
rxgain=0
txgain=0
dialplan=0

[ISDN-TE]
context=isdn_incoming
ports=1
msn=12352,12353

[ISDN-NT]
context=default
ports=2

 

 

/etc/asterisk/extensions.conf


[general]
static=yes
writeprotect=no

[default]
include => sip20
include => sip21
include => isdn_outgoing

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

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

[isdn_incoming]
exten => 12352,1,Dial(mISDN/2/52)
exten => 12352,n,Hangup

exten => 12353,1,Dial(SIP/20,25,tT)
exten => 12353,n,Hangup

[isdn_outgoing]
exten => _7.,1,SetCallerID(12352)
exten => _7.,n,Dial(mISDN/g:ISDN-TE/${EXTEN:1})
exten => _7.,n,Hangup