[Asterisk-Users] Ex-girlfriend-logic

Brian West brian at bkw.org
Tue Oct 26 16:45:27 MST 2004


THIS IS WRONG:
exten => s,1,SetMusicOnHold,default
exten => s,2,responsetimeout,20
exten => s/_2011111111,3,goto(9000,1)
exten => s/_9731111111,4,goto(9000,1)
exten => s,5,Dial(Zap/1&Zap/2&Zap/3&SIP/2002&SIP/2102,17,tr)

THIS IS CORRECT (example):
exten => s/_405555XXXX,1,Goto(9000,1)
exten => s/_918.,1,Goto(9000,1)
exten => s/2015551212,1,goto(9000,1)
exten => s/9735551212,1,goto(9000,1)
exten => s,1,SetMusicOnHold,default
exten => s,2,responsetimeout,20
exten => s,3,Dial(Zap/1&Zap/2&Zap/3&SIP/2002&SIP/2102,17,tr)

you can even do something like this:

exten => s,1,Answer
exten => s/9184238080,2,SetCIDName(EVIL BASTARD)
exten => s,2,SetCIDName(Good Person)
exten => s,3,Dial(SIP/goodperson)

bkw




More information about the asterisk-users mailing list