User guide

exten => s,1,Answer() ; We answer the call
exten => s,2,DigitTimeout(10) ; Setting Timeout values in seconds
exten => s,3,ResponseTimeout(20)
exten => s,4,Background(vm-extension); Voice asking for an extension
exten => i,1,Goto(incoming_pstn,s,1) ; Ask again if invalid extension
exten => t,1,Hangup() ; Hang up if timeout
include => internal_calls ; Makes internal_calls extensions available
Note: The final and complete version of the extensions.conf file is available in Section 7.3 of this
document.
8.1.2 Making the PSTN available from the dialplan
In order to make the PSTN phone line available to all our VoIP clients, we first need to add a new
context to our extensions.conf file.
[outgoing_calls]
exten => _0.,1,Dial(Zap/1/${EXTEN:1})
exten => t,1,Hangup()
This means that that to reach the PSTN line you need to start by including the number “0.” The
command Dial() will bridge the phone call with the Zap channel number 1. The ${EXTEN:1} part of the
command means that the first number (in this case, the 0) will be removed when dialling out.
Adding a new context to the dialplan is not enough. We also need to make it available to our VoIP
clients. The easiest way to do this is to add the following line at the end of the [internal_calls] section:
include => outgoing_calls
8.2 Attaching an analogue phone to the PBX
In the first scenario we configured five VoIP clients in four locations, leaving the Telecentre without a
phone. An easy way to provide the Telecentre with a phone connection is too add a second (FXS)
module to the existing TDM400P card. Adding an FXS module to the second port of the TDM card
permits the connection of any analogue phone to the PBX.
Page 37 TRICALCAR | www.wilac.net/tricalcar – Version: February 2008