All pastes #551621 Raw Edit

Mine

public text v1 · immutable
·published 2007-06-08 21:35 UTC
rendered paste body

[macro-stdexten];

; Standard extension macro:
;   ${ARG1} - Voicemail box(se) to put the messages into
;   ${ARG2} - Device(s) to ring
;   ${ARG3} - time to ring for

exten => s,1,Dial(${ARG2},${ARG3},t)                           ; Ring the interface, 30 seconds maximum
exten => s,2,Goto(s-${DIALSTATUS},1)                            ; Jump based on status (NOANSWER,BUSY,CHANUNAVAIL,CONGESTION,ANSWER)

exten => s-CONGESTION,1,Voicemail(u${ARG1})                     ; If unavailable, send to voicemail w/ unavail announce
exten => s-CONGESTION,2,Goto(default,s,1)                       ; If they press #, return to start

exten => s-CHANUNAVAIL,1,Voicemail(u${ARG1})                    ; If unavailable, send to voicemail w/ unavail announce
exten => s-CHANUNAVAIL,2,Goto(default,s,1)                      ; If they press #, return to start

exten => s-NOANSWER,1,Voicemail(u${ARG1})                       ; If unavailable, send to voicemail w/ unavail announce
exten => s-NOANSWER,2,Goto(default,s,1)                         ; If they press #, return to start

exten => s-BUSY,1,Voicemail(b${ARG1})                           ; If busy, send to voicemail w/ busy announce
exten => s-BUSY,2,Goto(default,s,1)                             ; If they press #, return to start

exten => s-.,1,Goto(s-NOANSWER,1)                               ; Treat anything else as no answer

exten => a,1,VoicemailMain(${ARG1})                             ; If they press *, send the user into VoicemailMain

If someone presses zero diring an outgoing personal greeting, we ring all the phones









[lyons]

include => txrx-general

exten => 601,hint,SIP/601
exten => 601,1,Macro(stdexten,${EXTEN}@lyons,SIP/601,20)

exten => 602,hint,SIP/602
exten => 602,1,Macro(stdexten,${EXTEN}@lyons,SIP/602,20)

exten => 603,hint,SIP/603
exten => 603,1,Macro(stdexten,${EXTEN}@lyons,SIP/603,20)

exten => s,1,playtones(unobtainable)
exten => t,1,Hangup

exten => 222,1,playtones(unobtainable)


exten => 699,1,VoicemailMain(s${CALLERID(num)}@lyons)
exten => 699,2,Hangup

exten => asterisk,1,VoicemailMain(s${CALLERID(num)}@lyons)
exten => asterisk,2,Hangup



; All other national calls handled here.

exten => _90[12345678].,1,Set(CALLERID(num)=${DB(DDI/${CALLERID(num)})})
exten => _90[12345678].,2,Set(CDR(accountcode)=aql)
exten => _90[12345678].,3,Dial(SIP/aql-out/${EXTEN:1},60,t)
exten => _90[12345678].,4,Congestion
exten => _90[12345678].,104,Busy