[Asterisk-Users] 3 goes and your out

asterisk at marnock.net asterisk at marnock.net
Sat May 28 19:06:26 MST 2005


Is it possible to give a caller three goes at an extension number then
hangup?



exten => s,1,Zapateller(answer|nocallerid)
exten => s,2,PrivacyManager
exten => s,3,Ringing(1)
exten => s,4,NoOp(${CALLERID})
exten => s,5,SetMusicOnHold(random)
exten => s,6,Background(silence/1)
exten => s,7,Background(thank-you-for-calling)
exten => s,8,Background(silence/1)
exten => s,9,Background(if-u-know-ext-dial)
exten => s,10,Background(silence/10)
exten => s,11,Playback(goodbye)
exten => s,12,Hangup()

exten => i,1,Answer
exten => i,2,Playback(pbx-invalid)
exten => i,3,Background(silence/1)
exten => i,4,Goto(s,9)                                <--- add some kind of
counter here ???

exten => 2201,1,Dial(SIP/2201,10)
exten => 2201,2,Voicemail(u2201)
exten => 2201,3,Playback(goodbye)
exten => 2201,4,Hangup()

Thanks in advance

Phil.




More information about the asterisk-users mailing list