- Posts: 1
- Thank you received: 0
keywords: ip pbx voip gateway gsm gateway
; Autogenerated by /usr/sbin/dahdi_genconf on Fri Dec 13 14:03:55 2013
; If you edit this file and execute /usr/sbin/dahdi_genconf again,
; your manual changes will be LOST.
; Dahdi Channels Configurations (chan_dahdi.conf)
;
; This is not intended to be a complete chan_dahdi.conf. Rather, it is intended
; to be #include-d by /etc/chan_dahdi.conf that will include the global settings
;
; Span 1: WCTDM/4 "Wildcard TDM400P REV E/F Board 5" (MASTER)
;;; line="1 WCTDM/4/0 FXSKS (EC: OSLEC - INACTIVE)"
signalling=fxs_ks
callerid=asreceived
group=0
context=from-pstn
channel => 1
callerid=
group=
context=default
;;; line="2 WCTDM/4/1 FXOKS (EC: OSLEC - INACTIVE)"
signalling=fxo_ks
callerid="Channel 2" <4002>
mailbox=4002
group=5
context=mycontext
channel => 2
callerid=
mailbox=
group=
context=default
[trunkgroups]
[channels]
context=from-pstn
language=it
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
faxdetect=incoming
echotraining=800
rxgain=0.0
txgain=0.0
callgroup=1
pickupgroup=1
;Uncomment these lines if you have problems with the disconection of your analog lines
busydetect=yes
busycount=3
immediate=no
#include /etc/asterisk/dahdi-channels.conf
[mycontext]
exten => 200,1,Dial(dahdi/1/outgoing_number) // dial 200 to dialout from dahdi channel 1
exten => 200,1,Set(LANGUAGE()=it)
exten => 200,2,Hangup
exten => 1001,1,Dial(SIP/1001,10,t,m)
;exten => 1001,2,Voicemail([email protected])
exten => 1001,3,Hangup
exten => 1002,1,Dial(SIP/1002,10,t,r,m)
;exten => 1002,2,Voicemail([email protected])
exten => 1002,3,Hangup
exten => 1003,1,Dial(SIP/1003,10,t,r,m)
;exten => 1003,2,Voicemail([email protected])
exten => 1003,3,Hangup
exten => 7500,1,VoicemailMain(@mycontext)
exten => 600,1,Answer()
exten => 600,2,Playback(demo-echotest) ; Let them know what
exten => 600,3,Echo() ; Do the echo test
exten => 600,4,Playback(demo-echodone) ; Let them know it
exten => 600,5,Hangup()
[from-pstn]
exten => s,1,Answer()
exten => s,2,Dial(SIP/1002&SIP/1001&dahdi/2,150,r,t,)
;exten => s,3,Voicemail([email protected])
;amd
exten => s,4,Hangup()
[trunkgroups]
[channels]
context=entrata
language=it
signalling=fxs_ks
rxwink=300 ; Atlas seems to use long (250ms) winks
usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
canpark=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
faxdetect=incoming
echotraining=800
rxgain=0.0
txgain=0.0
callgroup=2
pickupgroup=2
immediate=no
;Uncomment these lines if you have problems with the disconection of your analog lines
busydetect=yes
busycount=6
#include /etc/asterisk/dahdi-channels.conf
[interni]
include => diamondcardterm
include => entrata
exten => 200,1,Dial(dahdi/4/outgoing_number) // dial 200 to dialout from dahdi channel 4
exten => 200,1,Set(LANGUAGE()=it)
exten => 200,2,Hangup
exten => 1001,1,Dial(SIP/1001,20,t,m)
;exten => 1001,2,Voicemail([email protected])
exten => 1001,3,Hangup
exten => 1002,1,Dial(SIP/1002,20,t,m)
;exten => 1002,2,Voicemail([email protected])
exten => 1002,3,Hangup
exten => 1003,1,Dial(SIP/1003,20,t,m)
;exten => 1003,2,Voicemail([email protected])
exten => 1003,3,Hangup
exten => 1004,1,Dial(SIP/1004,20,t,m)
;exten => 1004,2,Voicemail([email protected])
exten => 1004,3,Hangup
exten => 7500,1,VoicemailMain(@interni)
exten => 600,1,Answer()
exten => 600,2,Playback(demo-echotest) ; Let them know what
exten => 600,3,Echo() ; Do the echo test
exten => 600,4,Playback(demo-echodone) ; Let them know it
exten => 600,5,Hangup()
[entrata]
exten => s,1,Answer()
exten => s,2,GotoIf(${BLACKLIST()}?blacklisted)
exten => s,3,Dial(SIP/1003&SIP/1002&SIP/1001&dahdi/1,150,t,m)
;exten => s,3,Voicemail([email protected])
exten => s,4,Hangup()