All pastes #2147 Raw Edit

jaswilliams

public ini v1 · immutable
#2147 ·published 2004-11-17 15:04 UTC
rendered paste body
[macro-stdexten]exten => s,1,LookupBlacklistexten => s,2,dbput(CALLTRACE/${ARG1}=${CALLERIDNUM})exten => s,3,GotoIf($[null${CALLERIDNUM} = null]?4:6)exten => s,4,SetCallerID(Unknown <Unknown>)exten => s,5,SetCIDName(Unknown)exten => s,6,Dial(${ARG2},20,tr)                                ; Ring the interface, 20 seconds maximumexten => s,7,Goto(s-${DIALSTATUS},1)exten => s,102,Goto(Blacklisted,s,1)exten => s-NOANSWER,1,Voicemail(u${ARG1})               ; If unavailable, send to voicemail w/ unavail announceexten => s-NOANSWER,2,Goto(s,1)                 ; If they press #, return to startexten => s-BUSY,1,Voicemail(b${ARG1})                   ; If busy, send to voicemail w/ busy announceexten => s-BUSY,2,Goto(s,1)                             ; If they press #, return to startexten => s-.,1,Goto(s-NOANSWER,1)                               ; Treat anything else as no answerexten => a,1,VoicemailMain(${ARG1})