Code:
-- Accepting call from 'XXXXXXXXX' to '2000' on channel 0/1, span 2
-- Accepting call from 'XXXXXXXXX' to '2000' on channel 0/1, span 3
-- Executing [2000@from-pstn:1] Set("DAHDI/4-1", "__FROM_DID=2000") in new stack
-- Executing [2000@from-pstn:2] ExecIf("DAHDI/4-1", "1 ?Set(CALLERID(name)=XXXXXXXXX)") in new stack
-- Executing [2000@from-pstn:3] Set("DAHDI/4-1", "__CALLINGPRES_SV=allowed") in new stack
-- Executing [2000@from-pstn:4] Set("DAHDI/4-1", "CALLERPRES()=allowed_not_screened") in new stack
-- Executing [2000@from-pstn:5] Goto("DAHDI/4-1", "timeconditions,5,1") in new stack
-- Goto (timeconditions,5,1)
-- Executing [5@timeconditions:1] GotoIfTime("DAHDI/4-1", "09:00-12:45,mon-fri,*,*?from-did-direct,1000,1") in new stack
-- Executing [5@timeconditions:2] Goto("DAHDI/4-1", "timeconditions,4,1") in new stack
-- Goto (timeconditions,4,1)
-- Executing [4@timeconditions:1] GotoIfTime("DAHDI/4-1", "13:45-17:45,mon-fri,*,*?from-did-direct,1000,1") in new stack
-- Executing [4@timeconditions:2] Goto("DAHDI/4-1", "ivr-3,s,1") in new stack
-- Goto (ivr-3,s,1)
-- Executing [s@ivr-3:1] Set("DAHDI/4-1", "MSG=custom/fermetureRTC2") in new stack
-- Executing [s@ivr-3:2] Set("DAHDI/4-1", "LOOPCOUNT=0") in new stack
-- Executing [s@ivr-3:3] Set("DAHDI/4-1", "__DIR-CONTEXT=") in new stack
-- Executing [s@ivr-3:4] Set("DAHDI/4-1", "_IVR_CONTEXT_ivr-3=") in new stack
-- Executing [s@ivr-3:5] Set("DAHDI/4-1", "_IVR_CONTEXT=ivr-3") in new stack
-- Executing [s@ivr-3:6] GotoIf("DAHDI/4-1", "0?begin") in new stack
-- Executing [s@ivr-3:7] Answer("DAHDI/4-1", "") in new stack
-- Executing [s@ivr-3:8] Wait("DAHDI/4-1", "1") in new stack
-- Executing [2000@from-pstn:1] Set("DAHDI/7-1", "__FROM_DID=2000") in new stack
-- Executing [2000@from-pstn:2] ExecIf("DAHDI/7-1", "1 ?Set(CALLERID(name)=XXXXXXXXX)") in new stack
-- Executing [2000@from-pstn:3] Set("DAHDI/7-1", "__CALLINGPRES_SV=allowed") in new stack
-- Executing [2000@from-pstn:4] Set("DAHDI/7-1", "CALLERPRES()=allowed_not_screened") in new stack
-- Executing [2000@from-pstn:5] Goto("DAHDI/7-1", "timeconditions,5,1") in new stack
-- Goto (timeconditions,5,1)
-- Executing [5@timeconditions:1] GotoIfTime("DAHDI/7-1", "09:00-12:45,mon-fri,*,*?from-did-direct,1000,1") in new stack
-- Executing [5@timeconditions:2] Goto("DAHDI/7-1", "timeconditions,4,1") in new stack
-- Goto (timeconditions,4,1)
-- Executing [4@timeconditions:1] GotoIfTime("DAHDI/7-1", "13:45-17:45,mon-fri,*,*?from-did-direct,1000,1") in new stack
-- Executing [4@timeconditions:2] Goto("DAHDI/7-1", "ivr-3,s,1") in new stack
-- Goto (ivr-3,s,1)
-- Executing [s@ivr-3:1] Set("DAHDI/7-1", "MSG=custom/fermetureRTC2") in new stack
-- Executing [s@ivr-3:2] Set("DAHDI/7-1", "LOOPCOUNT=0") in new stack
-- Executing [s@ivr-3:3] Set("DAHDI/7-1", "__DIR-CONTEXT=") in new stack
-- Executing [s@ivr-3:4] Set("DAHDI/7-1", "_IVR_CONTEXT_ivr-3=") in new stack
-- Executing [s@ivr-3:5] Set("DAHDI/7-1", "_IVR_CONTEXT=ivr-3") in new stack
-- Executing [s@ivr-3:6] GotoIf("DAHDI/7-1", "0?begin") in new stack
-- Executing [s@ivr-3:7] Answer("DAHDI/7-1", "") in new stack
-- Executing [s@ivr-3:8] Wait("DAHDI/7-1", "1") in new stack
-- Executing [s@ivr-3:9] Set("DAHDI/4-1", "TIMEOUT(digit)=3") in new stack
-- Digit timeout set to 3.000
-- Executing [s@ivr-3:10] Set("DAHDI/4-1", "TIMEOUT(response)=5") in new stack
-- Response timeout set to 5.000
-- Executing [s@ivr-3:11] Set("DAHDI/4-1", "__IVR_RETVM=") in new stack
-- Executing [s@ivr-3:12] ExecIf("DAHDI/4-1", "1?Background(custom/fermetureRTC2)") in new stack
-- <DAHDI/4-1> Playing 'custom/fermetureRTC2.slin' (language 'en')
-- Executing [s@ivr-3:9] Set("DAHDI/7-1", "TIMEOUT(digit)=3") in new stack
-- Digit timeout set to 3.000
-- Executing [s@ivr-3:10] Set("DAHDI/7-1", "TIMEOUT(response)=5") in new stack
-- Response timeout set to 5.000
-- Executing [s@ivr-3:11] Set("DAHDI/7-1", "__IVR_RETVM=") in new stack
-- Executing [s@ivr-3:12] ExecIf("DAHDI/7-1", "1?Background(custom/fermetureRTC2)") in new stack
-- <DAHDI/7-1> Playing 'custom/fermetureRTC2.slin' (language 'en')
Ensuite system.conf :
Code:
# Span 1: B4/0/1 "B4XXP (PCI) Card 0 Span 1" AMI/CCS RED
span=1,1,0,ccs,ami
bchan=1-2
hardhdlc=3
echocanceller=mg2,1-2
# Span 2: B4/0/2 "B4XXP (PCI) Card 0 Span 2" (MASTER) AMI/CCS RED
span=2,2,0,ccs,ami
bchan=4-5
hardhdlc=6
echocanceller=mg2,4-5
# Span 3: B4/0/3 "B4XXP (PCI) Card 0 Span 3" AMI/CCS RED
span=3,3,0,ccs,ami
bchan=7-8
hardhdlc=9
echocanceller=mg2,7-8
# Span 4: B4/0/4 "B4XXP (PCI) Card 0 Span 4" AMI/CCS RED
span=4,4,0,ccs,ami
bchan=10-11
hardhdlc=12
echocanceller=mg2,10-11
# Global data
loadzone = fr
defaultzone = fr
Maintenant le chan_dahdi.conf :