現在有新進展- [default]
- exten => s,1,Answer(500) ; Answer will wait 0.5 seconds to pass back to dialplan
- same => n,Goto(auto-attendant,s,1)
-
- [auto-attendant]
- exten => s,1,GotoIf($[${CALLERID(num)} = Anonymous]?Block)
- same => n,GotoIf($[${CALLERID(num)} = Block]?Block)
- same => n,GotoIf($[${CALLERID(num)} = OutOfArea]?Block)
- same => n,GotoIf($[${CALLERID(num)} = Unavailable]?Block)
- same => n,GotoIf($[${CALLERID(num)} = 91234567]?CD)
- same => n,GotoIf($[${CALLERID(num)} = 98765432]?GH)
- same => n,Authenticate(1234)
- same => n,Goto(mainmenu,s,1)
- same => n(CD), Dial(SIP/2001,20,t)
- same => n(GH), Dial(SIP/2002,20,t)
- same => n(Block), Background(vm-goodbye)
- same => n,Hangup()
複製代碼 |