rendered paste body[POTS-Incoming] ; this define POTS incoming
exten => s,1,Answer ; pot pick up the line
exten => s,2,wait(1) ; wait for 1 sec
exten => s,3,Background(thank-you-for-calling)
exten => s,4,Background(if-u-know-ext-dial)
exten => s,5,Background(otherwise-press)
exten => s,6,Background(1)
exten => s,7,Background(for-accounting)
exten => s,8,Background(2)
exten => s,9,Background(for-tech-support)
exten => s,10,Background(3)
exten => s,11,Background(for-louie-louie)
exten => s,12,Background(4)
exten => s,13,Background(for-wakeup-call)
; exten => s,14,ResponseTimeout(15) ; wait for 5 seconds
exten => s,14,wait(10)
; exten => 1,1,Goto(s,4)
; exten => 1,2,Hangup
; exten => t,1,Goto(s,4)
exten => s,15,Background(goodbye)
exten => s,16,Hangup
exten => *,1,Goto(s,4) ; user hit *
exten => i,1,Playback(pbx-invalid) ; will loop back to start when user key in invalid ext
exten => i,2,Goto(s,4)