cat extensions.conf ; ;------------------------------------------------------------------------------ ; ;Polycom SoundPoint IP 300 $175.00 ;Polycom SoundPoint IP 500 $295.00 ;Contact G. Dureau, Avenue Computer, 504-523-7874 ; ;-------------------------------------------------------------------------------- ; ; Did you know that using the "t" and "T" option to the Dial command does NOT ; affect any kind if transfers except transfering using the # sign? "t" and ; "T" does not effect FLASH transfers on Zap channels, it also does not effect ; transfers using the TRANSFER button on your VoIP Phone. ; ; Did you know that almost nobody needs the "r" option to the Dial command? ; "r" is only needed if your VoIP device is broken and not sending the correct ; ring signal to Asterisk. Using "r" will also prevent you from hearing a ; busy signal when you call. "r" means "override everything and always make ; the caller hear a ringing sound no matter what they should be hearing." ; ;===================================================================== ; Sample extensions.conf file ;===================================================================== [globals] [extensions] ; ; Extension for evaulating echo latency. ; exten => 10,1,Playback(demo-echotest) ; Let them know what's going on exten => 10,2,Playback(beep) ; Let them know to start exten => 10,3,Echo ; Do the echo test exten => 10,4,Playback(demo-echodone) ; Let them know it's over exten => 10,5,Hangup ; ; Generate a Constant 1000Hz tone at 0dbm (mu-law) ; exten => 11,1,Milliwatt() exten => 11,2,Hangup ; ; Record a temporary GSM file ; exten => 12,1,Wait(2) exten => 12,2,Record(/tmp/asterisk-recording:gsm) exten => 12,3,Wait(2) exten => 12,4,Playback(/tmp/asterisk-recording) exten => 12,5,Wait(2) exten => 12,6,Hangup ; ; Say Current Date and Time ; exten => 13,1,DateTime() exten => 13,2,Wait(1) exten => 13,3,DateTime() exten => 13,4,Hangup ; ; Read back caller's number ; exten => 14,1,Wait(1) exten => 14,2,SayDigits(${CALLERIDNUM}) exten => 14,3,Wait(1) exten => 14,4,SayDigits(${CALLERIDNUM}) exten => 14,5,Hangup ; ; Access Voicemail ; exten => 15,1,VoicemailMain exten => 15,2,Hangup ; ; Sample Zap Phone ; exten => 20,1,Dial(Zap/2,20) ; Ring for 20 seconds exten => 20,2,Voicemail(u${EXTEN}) exten => 20,3,Hangup ; Unavail voicemail if extension doesn't answer exten => 20,102,Voicemail(b${EXTEN}) ; Busy Voicemail if extension is busy exten => 20,103,Hangup ; ; Sample SIP Phone ; exten => 21,1,Dial(SIP/21,20) ; Ring for 20 seconds exten => 21,2,Voicemail(u${EXTEN}) ; Unavail voicemail if extension doesn't answer exten => 21,3,Hangup exten => 21,102,Voicemail(b${EXTEN}) ; Busy Voicemail if extension is busy exten => 21,103,Hangup ; ; Sample SIP Phone2 ; exten => 25,1,Dial(SIP/21,20) ; Ring for 20 seconds exten => 25,2,Voicemail(u${EXTEN}) ; Unavail voicemail if extension doesn't answer exten => 25,3,Hangup exten => 25,102,Voicemail(b${EXTEN}) ; Busy Voicemail if extension is busy exten => 25,103,Hangup ; ; Sample Zap Fax ; exten => 22,1,Dial(Zap/3,20,d) ; Ring for 20 seconds, request a low latency call exten => 22,2,Hangup [incoming] ; ; Incoming calls with no destination land here (usually from the PSTN) ; exten => s,1,Answer exten => s,2,DigitTimeout(10) ; Set Digit Timeout to 10 seconds exten => s,3,ResponseTimeout(20) ; Set Response Timeout to 20 seconds exten => s,4,Background(vm-extension) ; Ask them for the extension they want ; ; If we detect a fax tone send call to extension 22 priority 1 ; Not all fax machines/fax modems send a fax tone when calling. ; If we get a call from one of those then we can't detect that it's a fax call. ; This only works for devices on Zap channels (Digium cards). ; exten => fax,1,Goto(22,1) ; ; Hang up the line if the caller doesn't do anything ; exten => t,1,Hangup ; ; Allow incoming calls from the outside to dial our internal extensions ; include => extensions [toll-trunks] ; ; Outbound 1-nxx-nxx-xxxx goes via: NuFone ; exten => _91NXXNXXXXXX,1,Dial(IAX/bobdobbs@nufone/${EXTEN:1}) exten => _91NXXNXXXXXX,2,Congestion [local-trunks] ; ; Outbound to nxx-xxxx goes via: PSTN ; exten => _9NXXXXXX,1,Dial(Zap/1/${EXTEN:1}) exten => _9NXXXXXX,2,Congestion ; ; Outbound to nxx-nxx-xxxx are considered local calls and go via: PSTN ; In some places calls to these numbers are toll calls and this exten should ; be in [toll-access] if that is the case.. ; exten => _9NXXNXXXXXX,1,Dial(Zap/1/${EXTEN:1}) exten => _9NXXNXXXXXX,2,Congestion [local-access] ; ; Extensions that are this context are allowed to only call local PSTN numbers and other extensions ; ignorepat => 9 ; Continue dialtone after dialing "9" only works on ZAP include => extensions include => local-trunks ; Access to Local numbers [toll-access] ; ; Extensions that are this context are allowed to call local and long distance PSTN numbers and other extensions ; ignorepat => 9 ; Continue dialtone after dialing "9" only works on ZAP include => local-access ; Everything local-access has include => toll-trunks ; Access to toll numbers