All pastes #9401 Raw Edit

Stuff

public text v1 · immutable
#9401 ·published 2005-04-12 12:17 UTC
rendered paste body
;
; Static extension configuration file, used by
; the pbx_config module. This is where you configure all your
; inbound and outbound calls in Asterisk.
;

;
; The "General" category is for certain variables.
;
[general]
;
; If static is set to no, or omitted, then the pbx_config will rewrite
; this file when extensions are modified.  Remember that all comments
; made in the file will be lost when that happens.
;
; XXX Not yet implemented XXX
;
static=yes
;
; if static=yes and writeprotect=no, you can save dialplan by
; CLI command 'save dialplan' too
;
writeprotect=no

; You can include other config files, use the #include command (without the ';')
; Note that this is different from the "include" command that includes contexts within
; other contexts. The #include command works in all asterisk configuration files.
;#include "filename.conf"

; The "Globals" category contains global variables that can be referenced
; in the dialplan with ${VARIABLE} or ${ENV(VARIABLE)} for Environmental variable
; ${${VARIABLE}} or ${text${VARIABLE}} or any hybrid
;
[globals]
CONSOLE=Console/dsp                             ; Console interface for demo
;CONSOLE=Zap/1
;CONSOLE=Phone/phone0
IAXINFO=guest                                   ; IAXtel username/password
;IAXINFO=myuser:mypass
TRUNK=Zap/1                                     ; Trunk interface
TRUNKMSD=1                                      ; MSD digits to strip (usually 1 or 0)
;TRUNK=IAX2/user:pass@provider

;
; Any category other than "General" and "Globals" represent
[intern]
exten => 69,1,SetMusicOnHold(gigatron)
;exten => 69,2,Answer
exten => 69,2,Dial(SIP/69,10,t)
;exten => 69,2,WaitMusicOnHold(60)
exten => 69,3,VoiceMail,u69


exten => 77,1,Dial(SIP/77,10,t)
exten => 80,1,Dial(SIP/80,10,t)
exten => 77,2,VoiceMail,u77
exten => 8500,1,VoicemailMain(69)
exten => 8501,1,VoicemailMain(77)

;exten => _0XXXXXXXXX,1,Dial(${TRUNK}/${EXTEN:1},50)


[sip]
include => default

exten => 69,1,Dial(SIP/69,20,tr)
exten => 77,1,Dial(SIP/77,20,tr)
exten => 80,1,Dial(SIP/80,20,tr)
exten => _9X.,1,Dial(Zap/1/${EXTEN:1})