Update sample configurations to make virtual hosting more obvious.

(closes issue #11969)
 Reported by: pprindeville
 Patches: 
       acme-virtualpbx.1.6.patch uploaded by pprindeville (license 347)


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@110691 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.6.1
Tilghman Lesher 17 years ago
parent 7741ed8bcc
commit c6453ded22

@ -646,6 +646,56 @@ include => demo
; ;
;exten = 8700,1,Dial(${MARK},30,A(/path/to/my/announcemsg)) ;exten = 8700,1,Dial(${MARK},30,A(/path/to/my/announcemsg))
; ;
; example of a compartmentalized company called "acme"
;
; this is the context that your incoming IAX/SIP trunk dumps you in...
;[acme-incoming]
;exten => s,1,Wait(1)
;exten => s,n,Answer()
;exten => s,n(menu),Playback(acme/vm-brief-menu)
;exten => s,n(exten),Background(vm-enter-num-to-call)
;exten => s,n,WaitExten(5)
;exten => s,n(goodbye),Playback(vm-goodbye)
;exten => s,n(end),Hangup()
;
;include => acme-extens
;
;exten => i,1,Playback(vm-invalid)
;exten => i,n,Goto(s,exten) ; optionally, transfer to operator
;
;exten => t,1,Goto(s,goodbye)
;
; this is the context our internal SIP hardphones use (see sip.conf)
;
;[acme-internal]
;exten => s,1,Answer()
;exten => s,n(exten),Background(vm-enter-num-to-call)
;exten => s,n,WaitExten(5)
;exten => s,n(goodbye),Playback(vm-goodbye)
;exten => s,n(end),Hangup()
;
;include => trunkint
;include => trunkld
;include => trunklocal
;
;include => acme-extens
;
; you can test what your system sounds like to outside callers by dialing this
;exten => 777,1,DISA(no-password,acme-incoming)
;
; grouping of acme's extensions... never used directly, always included.
;
;[acme-extens]
;exten => 111,1,Gosub(stdexten,s,1(111,SIP/pete_1,acme))
;exten => 111,n,Goto(s,exten)
;
;exten => 112,1,Gosub(stdexten,s,1(112,SIP/nancy_1,acme))
;exten => 112,n,Goto(s,end)
;
; end of acme example
; For more information on applications, just type "core show applications" at your ; For more information on applications, just type "core show applications" at your
; friendly Asterisk CLI prompt. ; friendly Asterisk CLI prompt.
; ;

@ -305,3 +305,13 @@ european=Europe/Copenhagen|'vm-received' a d b 'digits/at' HM
;The intro can be customized on a per-context basis ;The intro can be customized on a per-context basis
;directoryintro=dir-company2 ;directoryintro=dir-company2
1234 => 5678,Company2 User,root@localhost 1234 => 5678,Company2 User,root@localhost
; example for our acme compartmentalized company
;
; Pete telecommutes from Chicago, so we'll customize timestamps for him.
;
;[acme]
;tz=eastern
;111 => 7383,Pete,pete@acme-widgets.com,,tz=central
;112 => 6262,Nancy,nancy@acme-widgets.com
;

Loading…
Cancel
Save