exten => _X.,1,Goto(incoming,s,1)
exten => sip_login2,1,Goto(incoming,s,1)
[incoming]
exten => s,1,GotoIfTime(8:00-20:00,mon-fri,*,*?ivr-main,s,1)
same => n,GotoIfTime(8:00-17:00,sat,*,*?ivr-main,s,1)
same => n,GotoIfTime(10:00-15:00,sun,*,*?ivr-main,s,1)
same => n,Playback(nonworkinghours)
same => n,Goto(autoanswer,s,1)
[Conference]
exten => _**XXX!,1,Set(Numbers=${EXTEN:1})
same => n(loop),GotoIf($["${Numbers:0:1}"!="*"]?end)
same => n(orig),Originate(SIP/${Numbers:1:3},exten,Conference,${CALLERID(num)},1,60)
same => n,Set(Numbers=${Numbers:4})
same => n,Goto(loop)
same => n(end),ConfBridge(${CALLERID(num)},bridge,simple)
exten => _XXX,1,Wait(1)
same => n,ConfBridge(${EXTEN},bridge,simple)