[Asterisk-Users] RE: Incoming calls

Martin Roy mroy at mac.com
Wed Feb 2 14:39:00 MST 2005


So if I understand well this should do the trick : (be aware that 
context first and second include all my extensions that I haven't 
included in this and in my SIP phones use context firstinternal and 
secondinternal)

zapata.conf :

context=firstincoming
switchtype=national
signalling=fxs_ks
echotraining=800
echocancel=128
echocancelwhenbridged=yes
relaxdtmf=yes
rxgain=0
txgain=0
immediate=no
busydetect=no
callprogress-no
musiconhold=default
usecallerid=yes
callerid=asreceived
group=1
channel => 1-10

context=secondincoming
switchtype=national
signalling=fxs_ks
echotraining=800
echocancel=128
echocancelwhenbridged=yes
relaxdtmf=yes
rxgain=0
txgain=0
immediate=no
busydetect=no
callprogress=no
musiconhold=default
usercallerid=yes
callerid=asreceived
group=2
channel =>11-12


extensions.conf :

[firstincoming]
include => first
exten => s,1,Answer
exten => s,2,DigitTimeout(10)
exten => s,3,ResponseTimeout(20)
exten => s,4,Wait(1)
exten => s,5,Background(Intro_first)
exten => t,1,Hangup

[secondincoming]
include => second
exten => s,1,Answer
exten => s,2,DigitTimeout(10)
exten => s,3,ResponseTimeout(20)
exten => s,4,Wait(1)
exten => s,5,background(Intro_second)
exten => t,1,Hangup


[firstoutgoing]
ignorepat => 9
exten => _9NXXNXXXXXX,1,Dial(Zap/g1/${EXTEN:1})
exten => _9NXXNXXXXXX,2,Playback(invalid)
exten => _9NXXNXXXXXX,3,Hangup

[secondoutgoing]
ignorepat => 9
exten => _9NXXNXXXXXX,1,Dial(Zap/g2/${EXTEN:1})
exten => _9NXXNXXXXXX,2,Playback(invalid)
exten => _9NXXNXXXXXX,3,Hangup

[firstinternal]
include => first
include => firstoutgoing
include => second

[secondinternal]
include => second
include => secondoutgoing
include => first




More information about the asterisk-users mailing list