pbx-local.conf Contains dialplan extensions for extensions and services “local” to the PBX.
In our SIP configuration, the ‘default’ context= for all extensions is the dialplan [phones]
[phones]
include => pbxlocal
include => conferences
include => branches
[pbxlocal]
include => pbxlocal_services
include => pbxlocal_extensions
[pbxlocal_extensions]
exten => _10X,1,Gosub(stdexten,${EXTEN},1(,${GLOBAL(CONSOLE)}))
[pbxlocal_extensions]
exten => _100,1,Gosub(stdexten,${EXTEN},1(,${GLOBAL(CONSOLE)}))
exten => _101,1,Gosub(stdexten,${EXTEN},1(,${GLOBAL(CONSOLE)}))
exten => _1XX,1,Gosub(stdexten,${EXTEN},1(,${GLOBAL(CONSOLE)}))
[pbxlocal_services]
exten => *901,1,Goto(diagnostics,s,1)
exten => *99,1,VoiceMailMain(${FILTER(0-9,${CALLERID(NUM)})})
exten => 110,1,Playback(demo-echotest)
same => n,Echo
same => n,Playback(demo-echodone)
exten => 500,1,Playback(demo-abouttotry); Let them know what's going on
same => n,Dial(IAX2/guest@pbx.digium.com/s@default) ; Call the Asterisk demo
same => n,Playback(demo-nogo) ; Couldn't connect to the demo site
same => n,Goto(s,instruct) ; Return to the start over message.
[conferences]
include => addcaller
exten => _6XX,1,Answer()
same => n,Set(CONFBRIDGE(user,announce_join_leave)=yes)
same => n,Set(CONFBRIDGE(user,startmuted)=yes)
same => n,ConfBridge(${EXTEN})
[addcaller]
exten => 1,1,Originate(SIP/otherpeer,exten,conferences,100,1)
– complete
[phones]
include => pbxlocal
include => conferences
include => branches
[pbxlocal]
include => pbxlocal_services
include => pbxlocal_extensions
[pbxlocal_extensions]
exten => _550X,1,Gosub(stdexten,${EXTEN},1(,${GLOBAL(CONSOLE)}))
[pbxlocal_services]
exten => *901,1,Goto(diagnostics,s,1)
exten => *99,1,VoiceMailMain(${FILTER(0-9,${CALLERID(NUM)})})
exten => 110,1,Playback(demo-echotest)
same => n,Echo
same => n,Playback(demo-echodone)
exten => 600,1,Playback(demo-echotest)
same => n,Echo
same => n,Playback(demo-echodone)
;
; Requires: Internet, IAX2 module
;
exten => 500,1,Playback(demo-abouttotry); Let them know what's going on
same => n,Dial(IAX2/guest@pbx.digium.com/s@default) ; Call the Asterisk demo
same => n,Playback(demo-nogo) ; Couldn't connect to the demo site
same => n,Goto(s,instruct) ; Return to the start over message.
[conferences]
include => addcaller
exten => _6XX,1,Answer()
same => n,Set(CONFBRIDGE(user,announce_join_leave)=yes)
same => n,Set(CONFBRIDGE(user,startmuted)=yes)
same => n,ConfBridge(${EXTEN})
[addcaller]
exten => 1,1,Originate(SIP/otherpeer,exten,conferences,100,1)