All pastes #15468 Raw Edit

darwin

public text v1 · immutable
#15468 ·published 2005-06-22 02:18 UTC
rendered paste body
;--------------------------------------------------------
;Basic *XX exten nmbrs in the US + Canada For Asterisk
;Including macros that go with the exten.
;--------------------------------------------------------
[basic-*XX]
; *228 - Over-the-Air Service Provisioning  
; *272 - Access Wireless Priority Service  
; *00 - Inward Voice Activated Services (English)  
; *01 - Inward Voice Activated Services (French)  Canada
; *02 - Deactivation/Activation of In-Session Activation (ISA) on a per line basis  
; *03 - Deactivation of In-Session Activation (ISA) on a per call basis  
; *1X - Reserved For Local Assignment
; *2X - Reserved for expansion to 3digit VSCs  
; *3X - Reserved for expansion to 3-digit VSCs  
; *40 - Change Forward-To Number for Customer Programmable Call Forwarding Busy Line  
; *41 - Change Forward-To Number for Customer Programmable Call Forwarding Don't Answer  
; *42 - Six-Way Conference Calling Activation  
; *43 - Drop last member of Six-Way Conference Call  
; *44 - Voice Activated Dialing  
; *45 - Voice Dialing Extended Dial Tone  
; *46 - French Voice Activated Network Control  Canada
; *47 - Override Feature Authorization  
; *48 - Override Do Not Disturb  
; *49 - Long Distance Signal  
; *50 - Voice Activated Network Control  
; *51 - Who Called Me?  
exten => *51,1,Answer
exten => *51,n,Wait(1)
exten => *51,n,SetVar(${DB(LastCaller=LASTCALL/${ARG1})})
exten => *51,n,SayDigits(${LastCaller})
exten => *51,n,Hangup
; *52 - Single Line Variety Package (SVP) - Call Hold  
; *53 - Single Line Variety Package (SVP) - Distinctive Ring B  
; *54 - Single Line Variety Package (SVP) - Distinctive Ring C  
; *55 - Single Line Variety Package (SVP) - Distinctive Ring D  
; *56 - Change Forward-To Number for ISDN Call Forwarding  
; *57 - Customer Originated Trace  
; *58 - ISDN MBKS Manual Exclusion Activation  
; *59 - ISDN MBKS Manual Exclusion Deactivation  
; *60 - Selective Call Rejection Activation  
; *61 - Distinctive Ringing/Call Waiting Activation  
; *62 - Selective Call Waiting  
; *63 - Selective Call Forwarding Activation  
; *64 - Selective Call Acceptance Activation  
; *65 - Calling Number Delivery Activation  
; *66 - Automatic Callback Activation  
; *67 - Calling Number Delivery Blocking  
; *68 - Call Forwarding Busy Line/Don't Answer Activation  
; *69 - Automatic Recall Activation with macro. 
exten => *69,1,Cut(CHANRES=CHANNEL|-|1)
exten => *69,n,Cut(EXTENSION=CHANRES|/|2)
exten => *69,n,Goto(s,1,${EXTENSION})
exten => s,1,Answer
exten => s,2,Wait(1)
exten => s,3,Set(${DB(LastCaller=LASTCALL/${ARG1})})
exten => s,4,GotoIf($[${LastCaller}]?5:10)
exten => s,5,SayDigits(${LastCaller})
exten => s,6,SetVar(TIMEOUT(ditig)=3)
exten => s,7,SetVar(TIMEOUT(response)=7)
exten => s,8,Background(press-one-to-callback)
exten => s,9,Goto(12)
exten => s,10,Playback(unidentified)
exten => s,11,Hangup
exten => s,12,NoOp
exten => 1,1,Goto(all-exten,${LastCaller},1);
exten => i,1,Playback(pbx-invalid)
exten => i,2,Hangup
exten => t,1,Playback(vm-goodbye)
exten => t,2,Hangup
; *70 - Cancel Call Waiting 
exten => *70,1,DBdel(CW/${CALLERIDNUM})
exten => *70,2,Playback(de-activated)
exten => *70,3,Hangup
; *71 - Enable Call Waiting
exten => *71,1,Set(${DB(CW/${CALLERIDNUM}=YES)})
exten => *71,2,Playback(activated)
exten => *71,3,Hangup
; *72 - Call Forwarding Activation  
exten => _*72.,1,Set(${DB(CF/${CALLERIDNUM}=${EXTEN:3})})
exten => _*72.,2,Answer
exten => _*72.,3,Wait(1)
exten => _*72.,4,Playback(call-fwd-unconditional)
exten => _*72.,5,Playback(for)
exten => _*72.,6,Playback(extension)
exten => _*72.,7,SayDigits(${CALLERIDNUM})
exten => _*72.,8,Playback(is-set-to)
exten => _*72.,9,SayDigits(${EXTEN:3})
; *73 - Call Forwarding Deactivation  
exten => *73,1,Set(${DB(CF/${CALLERIDNUM})})
exten => *73,2,Answer
exten => *73,3,Wait(1)
exten => *73,4,Playback(call-fwd-cancelled)
exten => *73,5,Hangup
; *74 - Speed Calling 8 - Change List  
; *75 - Speed Calling 30 - Change List  
; *76 - Advanced Call Waiting Deluxe 
; *77 - Anonymous Call Rejection Activation  
; *78 - Do Not Disturb Activation  
exten = *78,1,Answer
exten = *78,2,Set(${DB(DND/${CALLERIDNUM}=YES)})
exten = *78,3,Wait(1)
exten = *78,4,Playback(do-not-disturb)
exten = *78,5,Playback(activated)
exten = *78,6,Hangup
; *79 - Do Not Disturb Deactivation  
exten = *79,1,Answer
exten = *79,2,Set(${DB(DND/${CALLERIDNUM})})
exten = *79,3,Wait(1)
exten = *79,4,Playback(do-not-disturb)
exten = *79,5,Playback(de-activated)
exten = *79,6,Hangup
; *80 - Selective Call Rejection Deactivation  
; *81 - Distinctive Ringing/Call Waiting Deactivation  
; *82 - Line Blocking Deactivation  
; *83 - Selective Call Forwarding Deactivation  
; *84 - Selective Call Acceptance Deactivation  
; *85 - Calling Number Delivery Deactivation  
; *86 - Automatic Callback Deactivation  
; *87 - Anonymous Call Rejection Deactivation  
; *88 - Call Forwarding Busy Line/Don't Answer Deactivation  
; *89 - Automatic Recall Deactivation  
; *90 - Customer Programmable Call Forwarding Busy Line Activation  
; *91 - Customer Programmable Call Forwarding Busy Line Deactivation  
; *92 - Customer Programmable Call Forwarding Don't Answer Activation  
; *93 - Customer Programmable Call Forwarding Don't Answer Deactivation  
; *94 - Reserved For Local Assignment  
; *95 - Reserved For Local Assignment  
; *96 - Reserved For Local Assignment  
; *97 - Reserved For Local Assignment  
; *98 - Reserved For Local Assignment  
; *99 - Reserved For Local Assignment
; *100 aka *1XX Speed Dial Add/Delete/NotSet/Dial
;[system-speeddial]
; *1 <xx> <yyyy> - Set system speed dial <xx> to digits <yyyy>
; *1 <xx> 0      - Delete system speed dial <xx>
; *1 <xx>        - Review system speed dial <xx>
exten => _*1XXX.,1,Answer
exten => _*1XXX.,2,Set(${DB(SystemSpeedDial/${EXTEN:1:3}=${EXTEN:5})})
exten => _*1XXX.,3,Wait(1)
exten => _*1XXX.,4,Playback(speed-dial)
exten => _*1XXX.,5,SayDigits(${EXTEN:2:3})
exten => _*1XXX.,6,Playback(has-been-set-to)
exten => _*1XXX.,7,SayDigits(${EXTEN:5})
exten => _*1XXX.,8,Hangup
;
exten => _*1XX0,1,Answer
exten => _*1XX0,2,Set(${DB9SystemSpeedDial/${EXTEN:1:3})})
exten => _*1XX0,3,Wait(1)
exten => _*1XX0,4,Playback(speed-dial)
exten => _*1XX0,5,SayDigits(digits/${EXTEN:2:3})
exten => _*1XX0,6,Playback(has-been-cleared)
exten => _*1XX0,7,Hangup
;
exten => _*1XX,1,Answer
exten => _*1XX,2,Set(${DB(SystemSpeedDial=SystemSpeedDial/${EXTEN:1:3})})
exten => _*1XX,3,Wait(1)
exten => _*1XX,4,Playback(speed-dial)
exten => _*1XX,5,SayDigits(${EXTEN:2:3})
exten => _*1XX,6,Playback(is-set-to)
exten => _*1XX,7,SayDigits(${SystemSpeedDial})
exten => _*1XX,8,Hangup
exten => _*1XX,103,Playback(speed-dial)
exten => _*1XX,104,SayDigits(${EXTEN:2:3})
exten => _*1XX,105,Playback(is-not-set)
exten => _*1XX,106,Hangup
;
exten => _*1XX,1,Set(${DB(NumberToCall=SystemSpeedDial/${EXTEN})})
exten => _*1XX,2,Dial(${TRUNKGROUP}/${NumberToCall},20);
exten => _*1XX,3,Congestion
exten => _*1XX,102,Answer
exten => _*1XX,103,Wait(1)
exten => _*1XX,104,Playback(speed-dial)
exten => _*1XX,105,SayDigits(${EXTEN})
exten => _*1XX,106,Playback(is-not-set)
exten => _*1XX,107,Hangup
;