User manual

Release 2.0 Digium, Inc. Page 40
Chapter 3: Configuration
[Incoming]
exten => s,1,Answer()
exten => s,n,Set(VM_EXTEN=1000)
exten => s,n,Dial(zap/g1,20,t)
exten => s,n,Goto(s-${DIALSTATUS},1)
exten => s-NOANSWER,1,Voicemail(${VM_EXTEN},u)
exten => s-BUSY,1,Voicemail(${VM_EXTEN},b)
exten => _s-.,1,Goto(s-NOANSWER,1)
In this example there are two internal extensions (1000 and 2000), a
number to check voicemail (8500), a number to listen to musiconhold,
(8501), and a prefix to dial to get an outside line (9). It is configured for
incoming calls, and voicemail is routed to mailbox 1000.
Testing Your Configuration
1. Start Asterisk by typing:
asterisk
2. Connect to Asterisk and view the output by typing:
asterisk -vvvvr
3. Dial tone should be present on phones connected to the FXS ports.
Test your configuration by placing an outgoing call, placing a call
from extension 1 to 2, or receiving an incoming call. Successful
completion of these tasks indicates your configuration is working
properly.